aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-06-24 07:10:44 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-08 01:30:37 -0400
commita9ba615134ad32254fae84f16e1751854755135c (patch)
treeaf253bdc450833158c1cac1bc71a484e9ec070bb /sound/soc/samsung
parent322a8b034003c0d46d39af85bf24fee27b902f48 (diff)
ASoC: Rename WM8915 to WM8996
For marketing reasons the part will be called WM8996. In order to avoid user confusion rename the driver to reflect this. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r--sound/soc/samsung/Kconfig2
-rw-r--r--sound/soc/samsung/speyside.c32
2 files changed, 17 insertions, 17 deletions
diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig
index 54b0e4b7faf..b99091fc34e 100644
--- a/sound/soc/samsung/Kconfig
+++ b/sound/soc/samsung/Kconfig
@@ -183,7 +183,7 @@ config SND_SOC_SPEYSIDE
183 tristate "Audio support for Wolfson Speyside" 183 tristate "Audio support for Wolfson Speyside"
184 depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410 184 depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410
185 select SND_SAMSUNG_I2S 185 select SND_SAMSUNG_I2S
186 select SND_SOC_WM8915 186 select SND_SOC_WM8996
187 select SND_SOC_WM9081 187 select SND_SOC_WM9081
188 188
189config SND_SOC_SPEYSIDE_WM8962 189config SND_SOC_SPEYSIDE_WM8962
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c
index d6dee4d0203..590e9274b06 100644
--- a/sound/soc/samsung/speyside.c
+++ b/sound/soc/samsung/speyside.c
@@ -14,10 +14,10 @@
14#include <sound/jack.h> 14#include <sound/jack.h>
15#include <linux/gpio.h> 15#include <linux/gpio.h>
16 16
17#include "../codecs/wm8915.h" 17#include "../codecs/wm8996.h"
18#include "../codecs/wm9081.h" 18#include "../codecs/wm9081.h"
19 19
20#define WM8915_HPSEL_GPIO 214 20#define WM8996_HPSEL_GPIO 214
21 21
22static int speyside_set_bias_level(struct snd_soc_card *card, 22static int speyside_set_bias_level(struct snd_soc_card *card,
23 struct snd_soc_dapm_context *dapm, 23 struct snd_soc_dapm_context *dapm,
@@ -31,12 +31,12 @@ static int speyside_set_bias_level(struct snd_soc_card *card,
31 31
32 switch (level) { 32 switch (level) {
33 case SND_SOC_BIAS_STANDBY: 33 case SND_SOC_BIAS_STANDBY:
34 ret = snd_soc_dai_set_sysclk(codec_dai, WM8915_SYSCLK_MCLK2, 34 ret = snd_soc_dai_set_sysclk(codec_dai, WM8996_SYSCLK_MCLK2,
35 32768, SND_SOC_CLOCK_IN); 35 32768, SND_SOC_CLOCK_IN);
36 if (ret < 0) 36 if (ret < 0)
37 return ret; 37 return ret;
38 38
39 ret = snd_soc_dai_set_pll(codec_dai, WM8915_FLL_MCLK2, 39 ret = snd_soc_dai_set_pll(codec_dai, WM8996_FLL_MCLK2,
40 0, 0, 0); 40 0, 0, 0);
41 if (ret < 0) { 41 if (ret < 0) {
42 pr_err("Failed to stop FLL\n"); 42 pr_err("Failed to stop FLL\n");
@@ -65,7 +65,7 @@ static int speyside_set_bias_level_post(struct snd_soc_card *card,
65 case SND_SOC_BIAS_PREPARE: 65 case SND_SOC_BIAS_PREPARE:
66 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) { 66 if (card->dapm.bias_level == SND_SOC_BIAS_STANDBY) {
67 ret = snd_soc_dai_set_pll(codec_dai, 0, 67 ret = snd_soc_dai_set_pll(codec_dai, 0,
68 WM8915_FLL_MCLK2, 68 WM8996_FLL_MCLK2,
69 32768, 48000 * 256); 69 32768, 48000 * 256);
70 if (ret < 0) { 70 if (ret < 0) {
71 pr_err("Failed to start FLL\n"); 71 pr_err("Failed to start FLL\n");
@@ -73,7 +73,7 @@ static int speyside_set_bias_level_post(struct snd_soc_card *card,
73 } 73 }
74 74
75 ret = snd_soc_dai_set_sysclk(codec_dai, 75 ret = snd_soc_dai_set_sysclk(codec_dai,
76 WM8915_SYSCLK_FLL, 76 WM8996_SYSCLK_FLL,
77 48000 * 256, 77 48000 * 256,
78 SND_SOC_CLOCK_IN); 78 SND_SOC_CLOCK_IN);
79 if (ret < 0) 79 if (ret < 0)
@@ -149,26 +149,26 @@ static void speyside_set_polarity(struct snd_soc_codec *codec,
149 int polarity) 149 int polarity)
150{ 150{
151 speyside_jack_polarity = !polarity; 151 speyside_jack_polarity = !polarity;
152 gpio_direction_output(WM8915_HPSEL_GPIO, speyside_jack_polarity); 152 gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity);
153 153
154 /* Re-run DAPM to make sure we're using the correct mic bias */ 154 /* Re-run DAPM to make sure we're using the correct mic bias */
155 snd_soc_dapm_sync(&codec->dapm); 155 snd_soc_dapm_sync(&codec->dapm);
156} 156}
157 157
158static int speyside_wm8915_init(struct snd_soc_pcm_runtime *rtd) 158static int speyside_wm8996_init(struct snd_soc_pcm_runtime *rtd)
159{ 159{
160 struct snd_soc_dai *dai = rtd->codec_dai; 160 struct snd_soc_dai *dai = rtd->codec_dai;
161 struct snd_soc_codec *codec = rtd->codec; 161 struct snd_soc_codec *codec = rtd->codec;
162 int ret; 162 int ret;
163 163
164 ret = snd_soc_dai_set_sysclk(dai, WM8915_SYSCLK_MCLK2, 32768, 0); 164 ret = snd_soc_dai_set_sysclk(dai, WM8996_SYSCLK_MCLK2, 32768, 0);
165 if (ret < 0) 165 if (ret < 0)
166 return ret; 166 return ret;
167 167
168 ret = gpio_request(WM8915_HPSEL_GPIO, "HP_SEL"); 168 ret = gpio_request(WM8996_HPSEL_GPIO, "HP_SEL");
169 if (ret != 0) 169 if (ret != 0)
170 pr_err("Failed to request HP_SEL GPIO: %d\n", ret); 170 pr_err("Failed to request HP_SEL GPIO: %d\n", ret);
171 gpio_direction_output(WM8915_HPSEL_GPIO, speyside_jack_polarity); 171 gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity);
172 172
173 ret = snd_soc_jack_new(codec, "Headset", 173 ret = snd_soc_jack_new(codec, "Headset",
174 SND_JACK_HEADSET | SND_JACK_BTN_0, 174 SND_JACK_HEADSET | SND_JACK_BTN_0,
@@ -182,7 +182,7 @@ static int speyside_wm8915_init(struct snd_soc_pcm_runtime *rtd)
182 if (ret) 182 if (ret)
183 return ret; 183 return ret;
184 184
185 wm8915_detect(codec, &speyside_headset, speyside_set_polarity); 185 wm8996_detect(codec, &speyside_headset, speyside_set_polarity);
186 186
187 return 0; 187 return 0;
188} 188}
@@ -205,16 +205,16 @@ static struct snd_soc_dai_link speyside_dai[] = {
205 .name = "CPU", 205 .name = "CPU",
206 .stream_name = "CPU", 206 .stream_name = "CPU",
207 .cpu_dai_name = "samsung-i2s.0", 207 .cpu_dai_name = "samsung-i2s.0",
208 .codec_dai_name = "wm8915-aif1", 208 .codec_dai_name = "wm8996-aif1",
209 .platform_name = "samsung-audio", 209 .platform_name = "samsung-audio",
210 .codec_name = "wm8915.1-001a", 210 .codec_name = "wm8996.1-001a",
211 .init = speyside_wm8915_init, 211 .init = speyside_wm8996_init,
212 .ops = &speyside_ops, 212 .ops = &speyside_ops,
213 }, 213 },
214 { 214 {
215 .name = "Baseband", 215 .name = "Baseband",
216 .stream_name = "Baseband", 216 .stream_name = "Baseband",
217 .cpu_dai_name = "wm8915-aif2", 217 .cpu_dai_name = "wm8996-aif2",
218 .codec_dai_name = "wm1250-ev1", 218 .codec_dai_name = "wm1250-ev1",
219 .codec_name = "wm1250-ev1.1-0027", 219 .codec_name = "wm1250-ev1.1-0027",
220 .ops = &speyside_ops, 220 .ops = &speyside_ops,