Lines Matching full:wm8776
3 * wm8776.c -- WM8776 ALSA SoC Audio driver
29 #include "wm8776.h"
33 WM8776, enumerator
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()
379 .name = "wm8776-hifi-playback",
393 .name = "wm8776-hifi-capture",
442 { .compatible = "wlf,wm8776", },
462 struct wm8776_priv *wm8776; in wm8776_spi_probe() local
465 wm8776 = devm_kzalloc(&spi->dev, sizeof(struct wm8776_priv), in wm8776_spi_probe()
467 if (wm8776 == NULL) in wm8776_spi_probe()
470 wm8776->regmap = devm_regmap_init_spi(spi, &wm8776_regmap); in wm8776_spi_probe()
471 if (IS_ERR(wm8776->regmap)) in wm8776_spi_probe()
472 return PTR_ERR(wm8776->regmap); in wm8776_spi_probe()
474 spi_set_drvdata(spi, wm8776); in wm8776_spi_probe()
484 .name = "wm8776",
494 struct wm8776_priv *wm8776; in wm8776_i2c_probe() local
497 wm8776 = devm_kzalloc(&i2c->dev, sizeof(struct wm8776_priv), in wm8776_i2c_probe()
499 if (wm8776 == NULL) in wm8776_i2c_probe()
502 wm8776->regmap = devm_regmap_init_i2c(i2c, &wm8776_regmap); in wm8776_i2c_probe()
503 if (IS_ERR(wm8776->regmap)) in wm8776_i2c_probe()
504 return PTR_ERR(wm8776->regmap); in wm8776_i2c_probe()
506 i2c_set_clientdata(i2c, wm8776); in wm8776_i2c_probe()
516 { "wm8776", WM8776 },
523 .name = "wm8776",
537 printk(KERN_ERR "Failed to register wm8776 I2C driver: %d\n", in wm8776_modinit()
544 printk(KERN_ERR "Failed to register wm8776 SPI driver: %d\n", in wm8776_modinit()
563 MODULE_DESCRIPTION("ASoC WM8776 driver");