• 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 defs:wm8750

2  * wm8750.c -- WM8750 ALSA SoC audio driver
31 #include "wm8750.h"
34 * wm8750 register cache
477 printk(KERN_ERR "wm8750: could not get coeff for mclk %d @ rate %d\n",
486 struct wm8750_priv *wm8750 = snd_soc_codec_get_drvdata(codec);
494 wm8750->sysclk = freq;
565 struct wm8750_priv *wm8750 = snd_soc_codec_get_drvdata(codec);
568 int coeff = get_coeff(wm8750->sysclk, params_rate(params));
720 printk(KERN_ERR "wm8750: failed to create pcms\n");
757 static int wm8750_register(struct wm8750_priv *wm8750,
760 struct snd_soc_codec *codec = &wm8750->codec;
779 codec->reg_cache_size = ARRAY_SIZE(wm8750->reg_cache) + 1;
780 codec->reg_cache = &wm8750->reg_cache;
781 snd_soc_codec_set_drvdata(codec, wm8750);
783 memcpy(codec->reg_cache, wm8750_reg, sizeof(wm8750->reg_cache));
787 printk(KERN_ERR "wm8750: failed to set cache I/O: %d\n", ret);
793 printk(KERN_ERR "wm8750: failed to reset: %d\n", ret);
837 kfree(wm8750);
841 static void wm8750_unregister(struct wm8750_priv *wm8750)
843 wm8750_set_bias_level(&wm8750->codec, SND_SOC_BIAS_OFF);
845 snd_soc_unregister_codec(&wm8750->codec);
846 kfree(wm8750);
863 struct wm8750_priv *wm8750;
865 wm8750 = kzalloc(sizeof(struct wm8750_priv), GFP_KERNEL);
866 if (wm8750 == NULL)
869 codec = &wm8750->codec;
871 i2c_set_clientdata(i2c, wm8750);
875 return wm8750_register(wm8750, SND_SOC_I2C);
880 struct wm8750_priv *wm8750 = i2c_get_clientdata(client);
881 wm8750_unregister(wm8750);
886 { "wm8750", 0 },
907 struct wm8750_priv *wm8750;
909 wm8750 = kzalloc(sizeof(struct wm8750_priv), GFP_KERNEL);
910 if (wm8750 == NULL)
913 codec = &wm8750->codec;
917 dev_set_drvdata(&spi->dev, wm8750);
919 return wm8750_register(wm8750, SND_SOC_SPI);
924 struct wm8750_priv *wm8750 = dev_get_drvdata(&spi->dev);
925 wm8750_unregister(wm8750);
930 { "wm8750", 0 },