aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410.c6
-rw-r--r--sound/soc/samsung/Kconfig4
-rw-r--r--sound/soc/samsung/Makefile4
-rw-r--r--sound/soc/samsung/tobermory.c (renamed from sound/soc/samsung/speyside_wm8962.c)66
4 files changed, 40 insertions, 40 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index d04b65448510..55c0e75f5edc 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -282,8 +282,8 @@ static struct platform_device lowland_device = {
282 .id = -1, 282 .id = -1,
283}; 283};
284 284
285static struct platform_device speyside_wm8962_device = { 285static struct platform_device tobermory_device = {
286 .name = "speyside-wm8962", 286 .name = "tobermory",
287 .id = -1, 287 .id = -1,
288}; 288};
289 289
@@ -338,7 +338,7 @@ static struct platform_device *crag6410_devices[] __initdata = {
338 &crag6410_lcd_powerdev, 338 &crag6410_lcd_powerdev,
339 &crag6410_backlight_device, 339 &crag6410_backlight_device,
340 &speyside_device, 340 &speyside_device,
341 &speyside_wm8962_device, 341 &tobermory_device,
342 &lowland_device, 342 &lowland_device,
343 &wallvdd_device, 343 &wallvdd_device,
344}; 344};
diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig
index 7aaaf8e8056f..09d636cc3658 100644
--- a/sound/soc/samsung/Kconfig
+++ b/sound/soc/samsung/Kconfig
@@ -193,8 +193,8 @@ config SND_SOC_SPEYSIDE
193 select SND_SOC_WM9081 193 select SND_SOC_WM9081
194 select SND_SOC_WM1250_EV1 194 select SND_SOC_WM1250_EV1
195 195
196config SND_SOC_SPEYSIDE_WM8962 196config SND_SOC_TOBERMORY
197 tristate "Audio support for Wolfson Speyside with WM8962" 197 tristate "Audio support for Wolfson Tobermory"
198 depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410 198 depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410
199 select SND_SAMSUNG_I2S 199 select SND_SAMSUNG_I2S
200 select SND_SOC_WM8962 200 select SND_SOC_WM8962
diff --git a/sound/soc/samsung/Makefile b/sound/soc/samsung/Makefile
index c9564e3547bb..9d03beb40c86 100644
--- a/sound/soc/samsung/Makefile
+++ b/sound/soc/samsung/Makefile
@@ -39,7 +39,7 @@ snd-soc-smdk-spdif-objs := smdk_spdif.o
39snd-soc-smdk-wm8580pcm-objs := smdk_wm8580pcm.o 39snd-soc-smdk-wm8580pcm-objs := smdk_wm8580pcm.o
40snd-soc-smdk-wm8994pcm-objs := smdk_wm8994pcm.o 40snd-soc-smdk-wm8994pcm-objs := smdk_wm8994pcm.o
41snd-soc-speyside-objs := speyside.o 41snd-soc-speyside-objs := speyside.o
42snd-soc-speyside-wm8962-objs := speyside_wm8962.o 42snd-soc-tobermory-objs := tobermory.o
43snd-soc-lowland-objs := lowland.o 43snd-soc-lowland-objs := lowland.o
44snd-soc-littlemill-objs := littlemill.o 44snd-soc-littlemill-objs := littlemill.o
45 45
@@ -62,6 +62,6 @@ obj-$(CONFIG_SND_SOC_GONI_AQUILA_WM8994) += snd-soc-goni-wm8994.o
62obj-$(CONFIG_SND_SOC_SMDK_WM8580_PCM) += snd-soc-smdk-wm8580pcm.o 62obj-$(CONFIG_SND_SOC_SMDK_WM8580_PCM) += snd-soc-smdk-wm8580pcm.o
63obj-$(CONFIG_SND_SOC_SMDK_WM8994_PCM) += snd-soc-smdk-wm8994pcm.o 63obj-$(CONFIG_SND_SOC_SMDK_WM8994_PCM) += snd-soc-smdk-wm8994pcm.o
64obj-$(CONFIG_SND_SOC_SPEYSIDE) += snd-soc-speyside.o 64obj-$(CONFIG_SND_SOC_SPEYSIDE) += snd-soc-speyside.o
65obj-$(CONFIG_SND_SOC_SPEYSIDE_WM8962) += snd-soc-speyside-wm8962.o 65obj-$(CONFIG_SND_SOC_TOBERMORY) += snd-soc-tobermory.o
66obj-$(CONFIG_SND_SOC_LOWLAND) += snd-soc-lowland.o 66obj-$(CONFIG_SND_SOC_LOWLAND) += snd-soc-lowland.o
67obj-$(CONFIG_SND_SOC_LITTLEMILL) += snd-soc-littlemill.o 67obj-$(CONFIG_SND_SOC_LITTLEMILL) += snd-soc-littlemill.o
diff --git a/sound/soc/samsung/speyside_wm8962.c b/sound/soc/samsung/tobermory.c
index c09648efab61..6f91c65c5a0e 100644
--- a/sound/soc/samsung/speyside_wm8962.c
+++ b/sound/soc/samsung/tobermory.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Speyside with WM8962 audio support 2 * Tobermory audio support
3 * 3 *
4 * Copyright 2011 Wolfson Microelectronics 4 * Copyright 2011 Wolfson Microelectronics
5 * 5 *
@@ -19,7 +19,7 @@
19 19
20static int sample_rate = 44100; 20static int sample_rate = 44100;
21 21
22static int speyside_wm8962_set_bias_level(struct snd_soc_card *card, 22static int tobermory_set_bias_level(struct snd_soc_card *card,
23 struct snd_soc_dapm_context *dapm, 23 struct snd_soc_dapm_context *dapm,
24 enum snd_soc_bias_level level) 24 enum snd_soc_bias_level level)
25{ 25{
@@ -56,7 +56,7 @@ static int speyside_wm8962_set_bias_level(struct snd_soc_card *card,
56 return 0; 56 return 0;
57} 57}
58 58
59static int speyside_wm8962_set_bias_level_post(struct snd_soc_card *card, 59static int tobermory_set_bias_level_post(struct snd_soc_card *card,
60 struct snd_soc_dapm_context *dapm, 60 struct snd_soc_dapm_context *dapm,
61 enum snd_soc_bias_level level) 61 enum snd_soc_bias_level level)
62{ 62{
@@ -92,7 +92,7 @@ static int speyside_wm8962_set_bias_level_post(struct snd_soc_card *card,
92 return 0; 92 return 0;
93} 93}
94 94
95static int speyside_wm8962_hw_params(struct snd_pcm_substream *substream, 95static int tobermory_hw_params(struct snd_pcm_substream *substream,
96 struct snd_pcm_hw_params *params) 96 struct snd_pcm_hw_params *params)
97{ 97{
98 sample_rate = params_rate(params); 98 sample_rate = params_rate(params);
@@ -100,11 +100,11 @@ static int speyside_wm8962_hw_params(struct snd_pcm_substream *substream,
100 return 0; 100 return 0;
101} 101}
102 102
103static struct snd_soc_ops speyside_wm8962_ops = { 103static struct snd_soc_ops tobermory_ops = {
104 .hw_params = speyside_wm8962_hw_params, 104 .hw_params = tobermory_hw_params,
105}; 105};
106 106
107static struct snd_soc_dai_link speyside_wm8962_dai[] = { 107static struct snd_soc_dai_link tobermory_dai[] = {
108 { 108 {
109 .name = "CPU", 109 .name = "CPU",
110 .stream_name = "CPU", 110 .stream_name = "CPU",
@@ -114,7 +114,7 @@ static struct snd_soc_dai_link speyside_wm8962_dai[] = {
114 .codec_name = "wm8962.1-001a", 114 .codec_name = "wm8962.1-001a",
115 .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF 115 .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
116 | SND_SOC_DAIFMT_CBM_CFM, 116 | SND_SOC_DAIFMT_CBM_CFM,
117 .ops = &speyside_wm8962_ops, 117 .ops = &tobermory_ops,
118 }, 118 },
119}; 119};
120 120
@@ -152,10 +152,10 @@ static struct snd_soc_dapm_route audio_paths[] = {
152 { "DMICDAT", NULL, "DMIC" }, 152 { "DMICDAT", NULL, "DMIC" },
153}; 153};
154 154
155static struct snd_soc_jack speyside_wm8962_headset; 155static struct snd_soc_jack tobermory_headset;
156 156
157/* Headset jack detection DAPM pins */ 157/* Headset jack detection DAPM pins */
158static struct snd_soc_jack_pin speyside_wm8962_headset_pins[] = { 158static struct snd_soc_jack_pin tobermory_headset_pins[] = {
159 { 159 {
160 .pin = "Headset Mic", 160 .pin = "Headset Mic",
161 .mask = SND_JACK_MICROPHONE, 161 .mask = SND_JACK_MICROPHONE,
@@ -166,7 +166,7 @@ static struct snd_soc_jack_pin speyside_wm8962_headset_pins[] = {
166 }, 166 },
167}; 167};
168 168
169static int speyside_wm8962_late_probe(struct snd_soc_card *card) 169static int tobermory_late_probe(struct snd_soc_card *card)
170{ 170{
171 struct snd_soc_codec *codec = card->rtd[0].codec; 171 struct snd_soc_codec *codec = card->rtd[0].codec;
172 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai; 172 struct snd_soc_dai *codec_dai = card->rtd[0].codec_dai;
@@ -179,28 +179,28 @@ static int speyside_wm8962_late_probe(struct snd_soc_card *card)
179 179
180 ret = snd_soc_jack_new(codec, "Headset", 180 ret = snd_soc_jack_new(codec, "Headset",
181 SND_JACK_HEADSET | SND_JACK_BTN_0, 181 SND_JACK_HEADSET | SND_JACK_BTN_0,
182 &speyside_wm8962_headset); 182 &tobermory_headset);
183 if (ret) 183 if (ret)
184 return ret; 184 return ret;
185 185
186 ret = snd_soc_jack_add_pins(&speyside_wm8962_headset, 186 ret = snd_soc_jack_add_pins(&tobermory_headset,
187 ARRAY_SIZE(speyside_wm8962_headset_pins), 187 ARRAY_SIZE(tobermory_headset_pins),
188 speyside_wm8962_headset_pins); 188 tobermory_headset_pins);
189 if (ret) 189 if (ret)
190 return ret; 190 return ret;
191 191
192 wm8962_mic_detect(codec, &speyside_wm8962_headset); 192 wm8962_mic_detect(codec, &tobermory_headset);
193 193
194 return 0; 194 return 0;
195} 195}
196 196
197static struct snd_soc_card speyside_wm8962 = { 197static struct snd_soc_card tobermory = {
198 .name = "Speyside WM8962", 198 .name = "Tobermory",
199 .dai_link = speyside_wm8962_dai, 199 .dai_link = tobermory_dai,
200 .num_links = ARRAY_SIZE(speyside_wm8962_dai), 200 .num_links = ARRAY_SIZE(tobermory_dai),
201 201
202 .set_bias_level = speyside_wm8962_set_bias_level, 202 .set_bias_level = tobermory_set_bias_level,
203 .set_bias_level_post = speyside_wm8962_set_bias_level_post, 203 .set_bias_level_post = tobermory_set_bias_level_post,
204 204
205 .controls = controls, 205 .controls = controls,
206 .num_controls = ARRAY_SIZE(controls), 206 .num_controls = ARRAY_SIZE(controls),
@@ -210,12 +210,12 @@ static struct snd_soc_card speyside_wm8962 = {
210 .num_dapm_routes = ARRAY_SIZE(audio_paths), 210 .num_dapm_routes = ARRAY_SIZE(audio_paths),
211 .fully_routed = true, 211 .fully_routed = true,
212 212
213 .late_probe = speyside_wm8962_late_probe, 213 .late_probe = tobermory_late_probe,
214}; 214};
215 215
216static __devinit int speyside_wm8962_probe(struct platform_device *pdev) 216static __devinit int tobermory_probe(struct platform_device *pdev)
217{ 217{
218 struct snd_soc_card *card = &speyside_wm8962; 218 struct snd_soc_card *card = &tobermory;
219 int ret; 219 int ret;
220 220
221 card->dev = &pdev->dev; 221 card->dev = &pdev->dev;
@@ -230,7 +230,7 @@ static __devinit int speyside_wm8962_probe(struct platform_device *pdev)
230 return 0; 230 return 0;
231} 231}
232 232
233static int __devexit speyside_wm8962_remove(struct platform_device *pdev) 233static int __devexit tobermory_remove(struct platform_device *pdev)
234{ 234{
235 struct snd_soc_card *card = platform_get_drvdata(pdev); 235 struct snd_soc_card *card = platform_get_drvdata(pdev);
236 236
@@ -239,19 +239,19 @@ static int __devexit speyside_wm8962_remove(struct platform_device *pdev)
239 return 0; 239 return 0;
240} 240}
241 241
242static struct platform_driver speyside_wm8962_driver = { 242static struct platform_driver tobermory_driver = {
243 .driver = { 243 .driver = {
244 .name = "speyside-wm8962", 244 .name = "tobermory",
245 .owner = THIS_MODULE, 245 .owner = THIS_MODULE,
246 .pm = &snd_soc_pm_ops, 246 .pm = &snd_soc_pm_ops,
247 }, 247 },
248 .probe = speyside_wm8962_probe, 248 .probe = tobermory_probe,
249 .remove = __devexit_p(speyside_wm8962_remove), 249 .remove = __devexit_p(tobermory_remove),
250}; 250};
251 251
252module_platform_driver(speyside_wm8962_driver); 252module_platform_driver(tobermory_driver);
253 253
254MODULE_DESCRIPTION("Speyside WM8962 audio support"); 254MODULE_DESCRIPTION("Tobermory audio support");
255MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>"); 255MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");
256MODULE_LICENSE("GPL"); 256MODULE_LICENSE("GPL");
257MODULE_ALIAS("platform:speyside-wm8962"); 257MODULE_ALIAS("platform:tobermory");