Lines Matching refs:wm8776
244 struct wm8776_priv *wm8776 = snd_soc_component_get_drvdata(component); in wm8776_hw_params() local
287 if (wm8776->sysclk[dai->driver->id] / params_rate(params) in wm8776_hw_params()
295 wm8776->sysclk[dai->driver->id], params_rate(params)); in wm8776_hw_params()
323 struct wm8776_priv *wm8776 = snd_soc_component_get_drvdata(component); in wm8776_set_sysclk() local
325 if (WARN_ON(dai->driver->id >= ARRAY_SIZE(wm8776->sysclk))) in wm8776_set_sysclk()
328 wm8776->sysclk[dai->driver->id] = freq; in wm8776_set_sysclk()
336 struct wm8776_priv *wm8776 = snd_soc_component_get_drvdata(component); in wm8776_set_bias_level() local
345 regcache_sync(wm8776->regmap); in wm8776_set_bias_level()
463 struct wm8776_priv *wm8776; in wm8776_spi_probe() local
466 wm8776 = devm_kzalloc(&spi->dev, sizeof(struct wm8776_priv), in wm8776_spi_probe()
468 if (wm8776 == NULL) in wm8776_spi_probe()
471 wm8776->regmap = devm_regmap_init_spi(spi, &wm8776_regmap); in wm8776_spi_probe()
472 if (IS_ERR(wm8776->regmap)) in wm8776_spi_probe()
473 return PTR_ERR(wm8776->regmap); in wm8776_spi_probe()
475 spi_set_drvdata(spi, wm8776); in wm8776_spi_probe()
496 struct wm8776_priv *wm8776; in wm8776_i2c_probe() local
499 wm8776 = devm_kzalloc(&i2c->dev, sizeof(struct wm8776_priv), in wm8776_i2c_probe()
501 if (wm8776 == NULL) in wm8776_i2c_probe()
504 wm8776->regmap = devm_regmap_init_i2c(i2c, &wm8776_regmap); in wm8776_i2c_probe()
505 if (IS_ERR(wm8776->regmap)) in wm8776_i2c_probe()
506 return PTR_ERR(wm8776->regmap); in wm8776_i2c_probe()
508 i2c_set_clientdata(i2c, wm8776); in wm8776_i2c_probe()