• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/soc/codecs/

Lines Matching refs:wm8753

2  * wm8753.c  --  WM8753 ALSA Soc Audio driver
53 #include "wm8753.h"
63 * wm8753 register cache
95 * read wm8753 register cache
107 * write wm8753 register cache
707 "wm8753: unsupported N = %u\n", Ndiv);
854 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec);
863 wm8753->sysclk = freq;
866 wm8753->pcmclk = freq;
917 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec);
937 if (params_rate(params) * 384 == wm8753->pcmclk)
1151 struct wm8753_priv *wm8753 = snd_soc_codec_get_drvdata(codec);
1157 coeff = get_coeff(wm8753->sysclk, params_rate(params));
1159 printk(KERN_ERR "wm8753 invalid MCLK or rate\n");
1298 * is connected between the wm8753 and a BT codec or GSM modem.
1539 /* charge wm8753 caps */
1571 printk(KERN_ERR "wm8753: failed to create pcms\n");
1623 static int wm8753_register(struct wm8753_priv *wm8753)
1626 struct snd_soc_codec *codec = &wm8753->codec;
1647 codec->reg_cache_size = ARRAY_SIZE(wm8753->reg_cache) + 1;
1648 codec->reg_cache = &wm8753->reg_cache;
1649 snd_soc_codec_set_drvdata(codec, wm8753);
1651 memcpy(codec->reg_cache, wm8753_reg, sizeof(wm8753->reg_cache));
1710 kfree(wm8753);
1714 static void wm8753_unregister(struct wm8753_priv *wm8753)
1716 wm8753_set_bias_level(&wm8753->codec, SND_SOC_BIAS_OFF);
1717 run_delayed_work(&wm8753->codec.delayed_work);
1719 snd_soc_unregister_codec(&wm8753->codec);
1720 kfree(wm8753);
1730 struct wm8753_priv *wm8753;
1732 wm8753 = kzalloc(sizeof(struct wm8753_priv), GFP_KERNEL);
1733 if (wm8753 == NULL)
1736 codec = &wm8753->codec;
1739 i2c_set_clientdata(i2c, wm8753);
1743 return wm8753_register(wm8753);
1748 struct wm8753_priv *wm8753 = i2c_get_clientdata(client);
1749 wm8753_unregister(wm8753);
1754 { "wm8753", 0 },
1761 .name = "wm8753",
1798 struct wm8753_priv *wm8753;
1800 wm8753 = kzalloc(sizeof(struct wm8753_priv), GFP_KERNEL);
1801 if (wm8753 == NULL)
1804 codec = &wm8753->codec;
1809 dev_set_drvdata(&spi->dev, wm8753);
1811 return wm8753_register(wm8753);
1816 struct wm8753_priv *wm8753 = dev_get_drvdata(&spi->dev);
1817 wm8753_unregister(wm8753);
1823 .name = "wm8753",