diff options
author | SIMOND François <francois@lienweb.fr> | 2011-12-19 12:55:33 +0100 |
---|---|---|
committer | KalimochoAz <calimochoazucarado@gmail.com> | 2011-12-19 19:06:25 +0100 |
commit | 5cfdd8a3db2dc2abbd17b10f01f5fd82da406343 (patch) | |
tree | f1b45212e3368954dfded2e03285492a155c7059 /sound | |
parent | 9706706582cd73ecbae2f267f5a22c17865a9f42 (diff) | |
download | kernel_samsung_crespo-5cfdd8a3db2dc2abbd17b10f01f5fd82da406343.zip kernel_samsung_crespo-5cfdd8a3db2dc2abbd17b10f01f5fd82da406343.tar.gz kernel_samsung_crespo-5cfdd8a3db2dc2abbd17b10f01f5fd82da406343.tar.bz2 |
Voodoo Sound: update source code for ICS kernel sources
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/Kconfig.voodoo | 2 | ||||
-rw-r--r-- | sound/soc/codecs/wm8994_voodoo.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/codecs/Kconfig.voodoo b/sound/soc/codecs/Kconfig.voodoo index 23ca597..6672bed 100644 --- a/sound/soc/codecs/Kconfig.voodoo +++ b/sound/soc/codecs/Kconfig.voodoo @@ -1,6 +1,6 @@ menuconfig SND_VOODOO bool "Voodoo sound driver" - depends on SND_UNIVERSAL_WM8994 || SND_S3C24XX_SOC || SND_SOC_WM8994_P3 + depends on SND_UNIVERSAL_WM8994 || SND_S3C24XX_SOC || SND_SOC_WM8994_P3 || SND_SOC_SAMSUNG_HERRING_WM8994 default y help With this option enabled, the kernel compile an additionnal driver diff --git a/sound/soc/codecs/wm8994_voodoo.c b/sound/soc/codecs/wm8994_voodoo.c index d877d78..750702f 100644 --- a/sound/soc/codecs/wm8994_voodoo.c +++ b/sound/soc/codecs/wm8994_voodoo.c @@ -108,7 +108,7 @@ bool stereo_expansion = false; short unsigned int stereo_expansion_gain = 16; // keep here a pointer to the codec structure -struct snd_soc_codec *codec; +static struct snd_soc_codec *codec; #define DECLARE_BOOL_SHOW(name) \ static ssize_t name##_show(struct device *dev, \ @@ -158,7 +158,8 @@ static ssize_t headphone_eq_b##band##_gain_store(struct device *dev, \ } #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) -#define DECLARE_WM8994(codec) struct wm8994_priv *wm8994 = codec->drvdata; +#define DECLARE_WM8994(codec) struct wm8994_priv *wm8994 = \ + snd_soc_codec_get_drvdata(codec); #else #define DECLARE_WM8994(codec) struct wm8994_priv *wm8994 = codec->private_data; #endif @@ -1286,7 +1287,7 @@ static ssize_t show_wm8994_register_dump(struct device *dev, int r; for (r = 0; r <= 0x6; r++) - sprintf(buf, "0x%X 0x%X\n", r, wm8994_read(codec, r)); + sprintf(buf, "%s0x%X 0x%X\n", buf, r, wm8994_read(codec, r)); sprintf(buf, "%s0x%X 0x%X\n", buf, 0x15, wm8994_read(codec, 0x15)); |