aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/s3c24xx
diff options
context:
space:
mode:
authorJassi Brar <jassi.brar@samsung.com>2010-11-22 01:37:16 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-11-23 09:08:00 -0500
commitd98ce6cf0303dc8edc9fdc18f84e4d7dafbb61a2 (patch)
tree46bac9cb0427596788588fef48d8419b67bd4d47 /sound/soc/s3c24xx
parent03e6a88897f923ae2608569e66afba4766e1abf7 (diff)
ASoC: SMDK64XX: Rename for other platforms
We plan to use the same ASoC Machine driver for most of latest SMDK platforms. So rename the 64XX specific driver to generic named. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/s3c24xx')
-rw-r--r--sound/soc/s3c24xx/Kconfig6
-rw-r--r--sound/soc/s3c24xx/Makefile4
-rw-r--r--sound/soc/s3c24xx/smdk_wm8580.c (renamed from sound/soc/s3c24xx/smdk64xx_wm8580.c)64
3 files changed, 37 insertions, 37 deletions
diff --git a/sound/soc/s3c24xx/Kconfig b/sound/soc/s3c24xx/Kconfig
index 15f5f9103a0c..396f678d1af5 100644
--- a/sound/soc/s3c24xx/Kconfig
+++ b/sound/soc/s3c24xx/Kconfig
@@ -60,13 +60,13 @@ config SND_S3C24XX_SOC_JIVE_WM8750
60 help 60 help
61 Sat Y if you want to add support for SoC audio on the Jive. 61 Sat Y if you want to add support for SoC audio on the Jive.
62 62
63config SND_S3C64XX_SOC_WM8580 63config SND_SOC_SMDK_WM8580
64 tristate "SoC I2S Audio support for WM8580 on SMDK64XX" 64 tristate "SoC I2S Audio support for WM8580 on SMDK"
65 depends on SND_S3C24XX_SOC && MACH_SMDK6410 65 depends on SND_S3C24XX_SOC && MACH_SMDK6410
66 select SND_SOC_WM8580 66 select SND_SOC_WM8580
67 select SND_SAMSUNG_I2S 67 select SND_SAMSUNG_I2S
68 help 68 help
69 Say Y if you want to add support for SoC audio on the SMDK6410. 69 Say Y if you want to add support for SoC audio on the SMDKs.
70 70
71config SND_S3C24XX_SOC_SMDK2443_WM9710 71config SND_S3C24XX_SOC_SMDK2443_WM9710
72 tristate "SoC AC97 Audio support for SMDK2443 - WM9710" 72 tristate "SoC AC97 Audio support for SMDK2443 - WM9710"
diff --git a/sound/soc/s3c24xx/Makefile b/sound/soc/s3c24xx/Makefile
index dac41eefafc4..7eee57fe0d61 100644
--- a/sound/soc/s3c24xx/Makefile
+++ b/sound/soc/s3c24xx/Makefile
@@ -28,7 +28,7 @@ snd-soc-s3c24xx-simtec-objs := s3c24xx_simtec.o
28snd-soc-s3c24xx-simtec-hermes-objs := s3c24xx_simtec_hermes.o 28snd-soc-s3c24xx-simtec-hermes-objs := s3c24xx_simtec_hermes.o
29snd-soc-s3c24xx-simtec-tlv320aic23-objs := s3c24xx_simtec_tlv320aic23.o 29snd-soc-s3c24xx-simtec-tlv320aic23-objs := s3c24xx_simtec_tlv320aic23.o
30snd-soc-rx1950-uda1380-objs := rx1950_uda1380.o 30snd-soc-rx1950-uda1380-objs := rx1950_uda1380.o
31snd-soc-smdk64xx-wm8580-objs := smdk64xx_wm8580.o 31snd-soc-smdk-wm8580-objs := smdk_wm8580.o
32snd-soc-smdk-wm9713-objs := smdk_wm9713.o 32snd-soc-smdk-wm9713-objs := smdk_wm9713.o
33snd-soc-s3c64xx-smartq-wm8987-objs := smartq_wm8987.o 33snd-soc-s3c64xx-smartq-wm8987-objs := smartq_wm8987.o
34snd-soc-goni-wm8994-objs := goni_wm8994.o 34snd-soc-goni-wm8994-objs := goni_wm8994.o
@@ -44,7 +44,7 @@ obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC) += snd-soc-s3c24xx-simtec.o
44obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_HERMES) += snd-soc-s3c24xx-simtec-hermes.o 44obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_HERMES) += snd-soc-s3c24xx-simtec-hermes.o
45obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_TLV320AIC23) += snd-soc-s3c24xx-simtec-tlv320aic23.o 45obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_TLV320AIC23) += snd-soc-s3c24xx-simtec-tlv320aic23.o
46obj-$(CONFIG_SND_S3C24XX_SOC_RX1950_UDA1380) += snd-soc-rx1950-uda1380.o 46obj-$(CONFIG_SND_S3C24XX_SOC_RX1950_UDA1380) += snd-soc-rx1950-uda1380.o
47obj-$(CONFIG_SND_S3C64XX_SOC_WM8580) += snd-soc-smdk64xx-wm8580.o 47obj-$(CONFIG_SND_SOC_SMDK_WM8580) += snd-soc-smdk-wm8580.o
48obj-$(CONFIG_SND_SOC_SMDK_WM9713) += snd-soc-smdk-wm9713.o 48obj-$(CONFIG_SND_SOC_SMDK_WM9713) += snd-soc-smdk-wm9713.o
49obj-$(CONFIG_SND_S3C64XX_SOC_SMARTQ) += snd-soc-s3c64xx-smartq-wm8987.o 49obj-$(CONFIG_SND_S3C64XX_SOC_SMARTQ) += snd-soc-s3c64xx-smartq-wm8987.o
50obj-$(CONFIG_SND_SOC_SMDK_SPDIF) += snd-soc-smdk-spdif.o 50obj-$(CONFIG_SND_SOC_SMDK_SPDIF) += snd-soc-smdk-spdif.o
diff --git a/sound/soc/s3c24xx/smdk64xx_wm8580.c b/sound/soc/s3c24xx/smdk_wm8580.c
index 1b3a97697cbf..b1b3d12abcb9 100644
--- a/sound/soc/s3c24xx/smdk64xx_wm8580.c
+++ b/sound/soc/s3c24xx/smdk_wm8580.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * smdk64xx_wm8580.c 2 * smdk_wm8580.c
3 * 3 *
4 * Copyright (c) 2009 Samsung Electronics Co. Ltd 4 * Copyright (c) 2009 Samsung Electronics Co. Ltd
5 * Author: Jaswinder Singh <jassi.brar@samsung.com> 5 * Author: Jaswinder Singh <jassi.brar@samsung.com>
@@ -27,10 +27,10 @@
27 * SMDK6410: Set CFG1 1-3 Off, CFG2 1-4 On 27 * SMDK6410: Set CFG1 1-3 Off, CFG2 1-4 On
28 */ 28 */
29 29
30/* SMDK64XX has a 12MHZ crystal attached to WM8580 */ 30/* SMDK has a 12MHZ crystal attached to WM8580 */
31#define SMDK64XX_WM8580_FREQ 12000000 31#define SMDK_WM8580_FREQ 12000000
32 32
33static int smdk64xx_hw_params(struct snd_pcm_substream *substream, 33static int smdk_hw_params(struct snd_pcm_substream *substream,
34 struct snd_pcm_hw_params *params) 34 struct snd_pcm_hw_params *params)
35{ 35{
36 struct snd_soc_pcm_runtime *rtd = substream->private_data; 36 struct snd_soc_pcm_runtime *rtd = substream->private_data;
@@ -102,7 +102,7 @@ static int smdk64xx_hw_params(struct snd_pcm_substream *substream,
102 return ret; 102 return ret;
103 103
104 ret = snd_soc_dai_set_pll(codec_dai, WM8580_PLLA, 0, 104 ret = snd_soc_dai_set_pll(codec_dai, WM8580_PLLA, 0,
105 SMDK64XX_WM8580_FREQ, pll_out); 105 SMDK_WM8580_FREQ, pll_out);
106 if (ret < 0) 106 if (ret < 0)
107 return ret; 107 return ret;
108 108
@@ -115,20 +115,20 @@ static int smdk64xx_hw_params(struct snd_pcm_substream *substream,
115} 115}
116 116
117/* 117/*
118 * SMDK64XX WM8580 DAI operations. 118 * SMDK WM8580 DAI operations.
119 */ 119 */
120static struct snd_soc_ops smdk64xx_ops = { 120static struct snd_soc_ops smdk_ops = {
121 .hw_params = smdk64xx_hw_params, 121 .hw_params = smdk_hw_params,
122}; 122};
123 123
124/* SMDK64xx Playback widgets */ 124/* SMDK Playback widgets */
125static const struct snd_soc_dapm_widget wm8580_dapm_widgets_pbk[] = { 125static const struct snd_soc_dapm_widget wm8580_dapm_widgets_pbk[] = {
126 SND_SOC_DAPM_HP("Front", NULL), 126 SND_SOC_DAPM_HP("Front", NULL),
127 SND_SOC_DAPM_HP("Center+Sub", NULL), 127 SND_SOC_DAPM_HP("Center+Sub", NULL),
128 SND_SOC_DAPM_HP("Rear", NULL), 128 SND_SOC_DAPM_HP("Rear", NULL),
129}; 129};
130 130
131/* SMDK64xx Capture widgets */ 131/* SMDK Capture widgets */
132static const struct snd_soc_dapm_widget wm8580_dapm_widgets_cpt[] = { 132static const struct snd_soc_dapm_widget wm8580_dapm_widgets_cpt[] = {
133 SND_SOC_DAPM_MIC("MicIn", NULL), 133 SND_SOC_DAPM_MIC("MicIn", NULL),
134 SND_SOC_DAPM_LINE("LineIn", NULL), 134 SND_SOC_DAPM_LINE("LineIn", NULL),
@@ -159,12 +159,12 @@ static const struct snd_soc_dapm_route audio_map_rx[] = {
159 {"Rear", NULL, "VOUT3R"}, 159 {"Rear", NULL, "VOUT3R"},
160}; 160};
161 161
162static int smdk64xx_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd) 162static int smdk_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd)
163{ 163{
164 struct snd_soc_codec *codec = rtd->codec; 164 struct snd_soc_codec *codec = rtd->codec;
165 struct snd_soc_dapm_context *dapm = &codec->dapm; 165 struct snd_soc_dapm_context *dapm = &codec->dapm;
166 166
167 /* Add smdk64xx specific Capture widgets */ 167 /* Add smdk specific Capture widgets */
168 snd_soc_dapm_new_controls(dapm, wm8580_dapm_widgets_cpt, 168 snd_soc_dapm_new_controls(dapm, wm8580_dapm_widgets_cpt,
169 ARRAY_SIZE(wm8580_dapm_widgets_cpt)); 169 ARRAY_SIZE(wm8580_dapm_widgets_cpt));
170 170
@@ -182,12 +182,12 @@ static int smdk64xx_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd)
182 return 0; 182 return 0;
183} 183}
184 184
185static int smdk64xx_wm8580_init_paifrx(struct snd_soc_pcm_runtime *rtd) 185static int smdk_wm8580_init_paifrx(struct snd_soc_pcm_runtime *rtd)
186{ 186{
187 struct snd_soc_codec *codec = rtd->codec; 187 struct snd_soc_codec *codec = rtd->codec;
188 struct snd_soc_dapm_context *dapm = &codec->dapm; 188 struct snd_soc_dapm_context *dapm = &codec->dapm;
189 189
190 /* Add smdk64xx specific Playback widgets */ 190 /* Add smdk specific Playback widgets */
191 snd_soc_dapm_new_controls(dapm, wm8580_dapm_widgets_pbk, 191 snd_soc_dapm_new_controls(dapm, wm8580_dapm_widgets_pbk,
192 ARRAY_SIZE(wm8580_dapm_widgets_pbk)); 192 ARRAY_SIZE(wm8580_dapm_widgets_pbk));
193 193
@@ -200,7 +200,7 @@ static int smdk64xx_wm8580_init_paifrx(struct snd_soc_pcm_runtime *rtd)
200 return 0; 200 return 0;
201} 201}
202 202
203static struct snd_soc_dai_link smdk64xx_dai[] = { 203static struct snd_soc_dai_link smdk_dai[] = {
204{ /* Primary Playback i/f */ 204{ /* Primary Playback i/f */
205 .name = "WM8580 PAIF RX", 205 .name = "WM8580 PAIF RX",
206 .stream_name = "Playback", 206 .stream_name = "Playback",
@@ -208,8 +208,8 @@ static struct snd_soc_dai_link smdk64xx_dai[] = {
208 .codec_dai_name = "wm8580-hifi-playback", 208 .codec_dai_name = "wm8580-hifi-playback",
209 .platform_name = "samsung-audio", 209 .platform_name = "samsung-audio",
210 .codec_name = "wm8580-codec.0-001b", 210 .codec_name = "wm8580-codec.0-001b",
211 .init = smdk64xx_wm8580_init_paifrx, 211 .init = smdk_wm8580_init_paifrx,
212 .ops = &smdk64xx_ops, 212 .ops = &smdk_ops,
213}, 213},
214{ /* Primary Capture i/f */ 214{ /* Primary Capture i/f */
215 .name = "WM8580 PAIF TX", 215 .name = "WM8580 PAIF TX",
@@ -218,37 +218,37 @@ static struct snd_soc_dai_link smdk64xx_dai[] = {
218 .codec_dai_name = "wm8580-hifi-capture", 218 .codec_dai_name = "wm8580-hifi-capture",
219 .platform_name = "samsung-audio", 219 .platform_name = "samsung-audio",
220 .codec_name = "wm8580-codec.0-001b", 220 .codec_name = "wm8580-codec.0-001b",
221 .init = smdk64xx_wm8580_init_paiftx, 221 .init = smdk_wm8580_init_paiftx,
222 .ops = &smdk64xx_ops, 222 .ops = &smdk_ops,
223}, 223},
224}; 224};
225 225
226static struct snd_soc_card smdk64xx = { 226static struct snd_soc_card smdk = {
227 .name = "SMDK64xx 5.1", 227 .name = "SMDK-I2S",
228 .dai_link = smdk64xx_dai, 228 .dai_link = smdk_dai,
229 .num_links = ARRAY_SIZE(smdk64xx_dai), 229 .num_links = ARRAY_SIZE(smdk_dai),
230}; 230};
231 231
232static struct platform_device *smdk64xx_snd_device; 232static struct platform_device *smdk_snd_device;
233 233
234static int __init smdk64xx_audio_init(void) 234static int __init smdk_audio_init(void)
235{ 235{
236 int ret; 236 int ret;
237 237
238 smdk64xx_snd_device = platform_device_alloc("soc-audio", -1); 238 smdk_snd_device = platform_device_alloc("soc-audio", -1);
239 if (!smdk64xx_snd_device) 239 if (!smdk_snd_device)
240 return -ENOMEM; 240 return -ENOMEM;
241 241
242 platform_set_drvdata(smdk64xx_snd_device, &smdk64xx); 242 platform_set_drvdata(smdk_snd_device, &smdk);
243 ret = platform_device_add(smdk64xx_snd_device); 243 ret = platform_device_add(smdk_snd_device);
244 244
245 if (ret) 245 if (ret)
246 platform_device_put(smdk64xx_snd_device); 246 platform_device_put(smdk_snd_device);
247 247
248 return ret; 248 return ret;
249} 249}
250module_init(smdk64xx_audio_init); 250module_init(smdk_audio_init);
251 251
252MODULE_AUTHOR("Jaswinder Singh, jassi.brar@samsung.com"); 252MODULE_AUTHOR("Jaswinder Singh, jassi.brar@samsung.com");
253MODULE_DESCRIPTION("ALSA SoC SMDK64XX WM8580"); 253MODULE_DESCRIPTION("ALSA SoC SMDK WM8580");
254MODULE_LICENSE("GPL"); 254MODULE_LICENSE("GPL");