Lines Matching defs:wm8753

3  * wm8753.c  --  WM8753 ALSA Soc Audio driver
47 #include "wm8753.h"
59 * wm8753 register cache
228 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
230 ucontrol->value.enumerated.item[0] = wm8753->dai_func;
238 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
241 if (wm8753->dai_func == ucontrol->value.enumerated.item[0])
249 wm8753->dai_func = ucontrol->value.enumerated.item[0];
251 if (((ioctl >> 2) & 0x3) == wm8753->dai_func)
254 ioctl = (ioctl & 0x1f3) | (wm8753->dai_func << 2);
258 wm8753_hifi_write_dai_fmt(component, wm8753->hifi_fmt);
259 wm8753_voice_write_dai_fmt(component, wm8753->voice_fmt);
718 "wm8753: unsupported N = %u\n", Ndiv);
865 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
874 wm8753->sysclk = freq;
877 wm8753->pcmclk = freq;
925 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
945 if (params_rate(params) * 384 == wm8753->pcmclk)
1156 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1162 coeff = get_coeff(wm8753->sysclk, params_rate(params));
1164 printk(KERN_ERR "wm8753 invalid MCLK or rate\n");
1236 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1239 switch (wm8753->dai_func) {
1263 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1265 wm8753->hifi_fmt = fmt;
1273 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1276 if (wm8753->dai_func != 0)
1293 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1295 wm8753->voice_fmt = fmt;
1304 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1308 if (mute && wm8753->dai_func == 1) {
1323 struct wm8753_priv *wm8753 =
1327 regmap_update_bits(wm8753->regmap, WM8753_PWR1, 0x0180, 0x0100);
1333 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1343 flush_delayed_work(&wm8753->charge_work);
1349 schedule_delayed_work(&wm8753->charge_work,
1357 cancel_delayed_work_sync(&wm8753->charge_work);
1376 * is connected between the wm8753 and a BT codec or GSM modem.
1405 { .name = "wm8753-hifi",
1423 { .name = "wm8753-voice",
1444 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1446 regcache_sync(wm8753->regmap);
1453 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component);
1456 INIT_DELAYED_WORK(&wm8753->charge_work, wm8753_charge_work);
1464 wm8753->dai_func = 0;
1498 { .compatible = "wlf,wm8753", },
1518 struct wm8753_priv *wm8753;
1521 wm8753 = devm_kzalloc(&spi->dev, sizeof(struct wm8753_priv),
1523 if (wm8753 == NULL)
1526 spi_set_drvdata(spi, wm8753);
1528 wm8753->regmap = devm_regmap_init_spi(spi, &wm8753_regmap);
1529 if (IS_ERR(wm8753->regmap)) {
1530 ret = PTR_ERR(wm8753->regmap);
1546 .name = "wm8753",
1556 struct wm8753_priv *wm8753;
1559 wm8753 = devm_kzalloc(&i2c->dev, sizeof(struct wm8753_priv),
1561 if (wm8753 == NULL)
1564 i2c_set_clientdata(i2c, wm8753);
1566 wm8753->regmap = devm_regmap_init_i2c(i2c, &wm8753_regmap);
1567 if (IS_ERR(wm8753->regmap)) {
1568 ret = PTR_ERR(wm8753->regmap);
1583 { "wm8753" },
1590 .name = "wm8753",
1604 printk(KERN_ERR "Failed to register wm8753 I2C driver: %d\n",
1611 printk(KERN_ERR "Failed to register wm8753 SPI driver: %d\n",