Lines Matching full:wm8728

3  * wm8728.c  --  WM8728 ALSA SoC Audio driver
28 #include "wm8728.h"
31 * We can't read the WM8728 register space so we cache them instead.
163 struct wm8728_priv *wm8728 = snd_soc_component_get_drvdata(component); in wm8728_set_bias_level() local
176 regcache_sync(wm8728->regmap); in wm8728_set_bias_level()
201 .name = "wm8728-hifi",
227 { .compatible = "wlf,wm8728", },
245 struct wm8728_priv *wm8728; in wm8728_spi_probe() local
248 wm8728 = devm_kzalloc(&spi->dev, sizeof(struct wm8728_priv), in wm8728_spi_probe()
250 if (wm8728 == NULL) in wm8728_spi_probe()
253 wm8728->regmap = devm_regmap_init_spi(spi, &wm8728_regmap); in wm8728_spi_probe()
254 if (IS_ERR(wm8728->regmap)) in wm8728_spi_probe()
255 return PTR_ERR(wm8728->regmap); in wm8728_spi_probe()
257 spi_set_drvdata(spi, wm8728); in wm8728_spi_probe()
267 .name = "wm8728",
277 struct wm8728_priv *wm8728; in wm8728_i2c_probe() local
280 wm8728 = devm_kzalloc(&i2c->dev, sizeof(struct wm8728_priv), in wm8728_i2c_probe()
282 if (wm8728 == NULL) in wm8728_i2c_probe()
285 wm8728->regmap = devm_regmap_init_i2c(i2c, &wm8728_regmap); in wm8728_i2c_probe()
286 if (IS_ERR(wm8728->regmap)) in wm8728_i2c_probe()
287 return PTR_ERR(wm8728->regmap); in wm8728_i2c_probe()
289 i2c_set_clientdata(i2c, wm8728); in wm8728_i2c_probe()
298 { "wm8728" },
305 .name = "wm8728",
319 printk(KERN_ERR "Failed to register wm8728 I2C driver: %d\n", in wm8728_modinit()
326 printk(KERN_ERR "Failed to register wm8728 SPI driver: %d\n", in wm8728_modinit()
345 MODULE_DESCRIPTION("ASoC WM8728 driver");