Lines Matching refs:wm8711
163 struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec); in wm8711_hw_params() local
165 int i = get_coeff(wm8711->sysclk, params_rate(params)); in wm8711_hw_params()
227 struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec); in wm8711_set_dai_sysclk() local
235 wm8711->sysclk = freq; in wm8711_set_dai_sysclk()
303 struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec); in wm8711_set_bias_level() local
314 regcache_sync(wm8711->regmap); in wm8711_set_bias_level()
404 struct wm8711_priv *wm8711; in wm8711_spi_probe() local
407 wm8711 = devm_kzalloc(&spi->dev, sizeof(struct wm8711_priv), in wm8711_spi_probe()
409 if (wm8711 == NULL) in wm8711_spi_probe()
412 wm8711->regmap = devm_regmap_init_spi(spi, &wm8711_regmap); in wm8711_spi_probe()
413 if (IS_ERR(wm8711->regmap)) in wm8711_spi_probe()
414 return PTR_ERR(wm8711->regmap); in wm8711_spi_probe()
416 spi_set_drvdata(spi, wm8711); in wm8711_spi_probe()
445 struct wm8711_priv *wm8711; in wm8711_i2c_probe() local
448 wm8711 = devm_kzalloc(&client->dev, sizeof(struct wm8711_priv), in wm8711_i2c_probe()
450 if (wm8711 == NULL) in wm8711_i2c_probe()
453 wm8711->regmap = devm_regmap_init_i2c(client, &wm8711_regmap); in wm8711_i2c_probe()
454 if (IS_ERR(wm8711->regmap)) in wm8711_i2c_probe()
455 return PTR_ERR(wm8711->regmap); in wm8711_i2c_probe()
457 i2c_set_clientdata(client, wm8711); in wm8711_i2c_probe()