Lines Matching full:wm8711
3 * wm8711.c -- WM8711 ALSA SoC Audio driver
29 #include "wm8711.h"
38 * wm8711 register cache
39 * We can't read the WM8711 register space when we are
160 struct wm8711_priv *wm8711 = snd_soc_component_get_drvdata(component); in wm8711_hw_params() local
162 int i = get_coeff(wm8711->sysclk, params_rate(params)); in wm8711_hw_params()
224 struct wm8711_priv *wm8711 = snd_soc_component_get_drvdata(component); in wm8711_set_dai_sysclk() local
232 wm8711->sysclk = freq; in wm8711_set_dai_sysclk()
300 struct wm8711_priv *wm8711 = snd_soc_component_get_drvdata(component); in wm8711_set_bias_level() local
311 regcache_sync(wm8711->regmap); in wm8711_set_bias_level()
339 .name = "wm8711-hifi",
384 { .compatible = "wlf,wm8711", },
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()
426 .name = "wm8711",
436 struct wm8711_priv *wm8711; in wm8711_i2c_probe() local
439 wm8711 = devm_kzalloc(&client->dev, sizeof(struct wm8711_priv), in wm8711_i2c_probe()
441 if (wm8711 == NULL) in wm8711_i2c_probe()
444 wm8711->regmap = devm_regmap_init_i2c(client, &wm8711_regmap); in wm8711_i2c_probe()
445 if (IS_ERR(wm8711->regmap)) in wm8711_i2c_probe()
446 return PTR_ERR(wm8711->regmap); in wm8711_i2c_probe()
448 i2c_set_clientdata(client, wm8711); in wm8711_i2c_probe()
457 { "wm8711" },
464 .name = "wm8711",
478 printk(KERN_ERR "Failed to register WM8711 I2C driver: %d\n", in wm8711_modinit()
485 printk(KERN_ERR "Failed to register WM8711 SPI driver: %d\n", in wm8711_modinit()
504 MODULE_DESCRIPTION("ASoC WM8711 driver");