diff options
author | Hebbar, Gururaja <gururaja.hebbar@ti.com> | 2012-08-27 09:26:39 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-27 14:12:08 -0400 |
commit | f08095a408bf6489b4a710d794ae6d5475a007ef (patch) | |
tree | 8ca802466c185cee5d9e371501781660903f19e9 /sound/soc/davinci/davinci-evm.c | |
parent | c24fdc886fde9ce7bda8115b9c2b338818796c65 (diff) |
ASoC: davinci: davinci-pcm does not need to be a plaform_driver
Same as the commit 518de86 (ASoC: tegra: register 'platform' from DAIs,
get rid of pdev). It makes davinci-pcm not a platform_driver but helper
to register "platform", so that the platform_device for davinci-pcm can
be saved completely.
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/davinci/davinci-evm.c')
-rw-r--r-- | sound/soc/davinci/davinci-evm.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index c80c20a89b11..4b37e2ac4685 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -159,7 +159,7 @@ static struct snd_soc_dai_link dm6446_evm_dai = { | |||
159 | .cpu_dai_name = "davinci-mcbsp", | 159 | .cpu_dai_name = "davinci-mcbsp", |
160 | .codec_dai_name = "tlv320aic3x-hifi", | 160 | .codec_dai_name = "tlv320aic3x-hifi", |
161 | .codec_name = "tlv320aic3x-codec.1-001b", | 161 | .codec_name = "tlv320aic3x-codec.1-001b", |
162 | .platform_name = "davinci-pcm-audio", | 162 | .platform_name = "davinci-mcbsp", |
163 | .init = evm_aic3x_init, | 163 | .init = evm_aic3x_init, |
164 | .ops = &evm_ops, | 164 | .ops = &evm_ops, |
165 | }; | 165 | }; |
@@ -170,7 +170,7 @@ static struct snd_soc_dai_link dm355_evm_dai = { | |||
170 | .cpu_dai_name = "davinci-mcbsp.1", | 170 | .cpu_dai_name = "davinci-mcbsp.1", |
171 | .codec_dai_name = "tlv320aic3x-hifi", | 171 | .codec_dai_name = "tlv320aic3x-hifi", |
172 | .codec_name = "tlv320aic3x-codec.1-001b", | 172 | .codec_name = "tlv320aic3x-codec.1-001b", |
173 | .platform_name = "davinci-pcm-audio", | 173 | .platform_name = "davinci-mcbsp.1", |
174 | .init = evm_aic3x_init, | 174 | .init = evm_aic3x_init, |
175 | .ops = &evm_ops, | 175 | .ops = &evm_ops, |
176 | }; | 176 | }; |
@@ -184,14 +184,15 @@ static struct snd_soc_dai_link dm365_evm_dai = { | |||
184 | .init = evm_aic3x_init, | 184 | .init = evm_aic3x_init, |
185 | .codec_name = "tlv320aic3x-codec.1-0018", | 185 | .codec_name = "tlv320aic3x-codec.1-0018", |
186 | .ops = &evm_ops, | 186 | .ops = &evm_ops, |
187 | .platform_name = "davinci-mcbsp", | ||
187 | #elif defined(CONFIG_SND_DM365_VOICE_CODEC) | 188 | #elif defined(CONFIG_SND_DM365_VOICE_CODEC) |
188 | .name = "Voice Codec - CQ93VC", | 189 | .name = "Voice Codec - CQ93VC", |
189 | .stream_name = "CQ93", | 190 | .stream_name = "CQ93", |
190 | .cpu_dai_name = "davinci-vcif", | 191 | .cpu_dai_name = "davinci-vcif", |
191 | .codec_dai_name = "cq93vc-hifi", | 192 | .codec_dai_name = "cq93vc-hifi", |
192 | .codec_name = "cq93vc-codec", | 193 | .codec_name = "cq93vc-codec", |
194 | .platform_name = "avinci-vcif", | ||
193 | #endif | 195 | #endif |
194 | .platform_name = "davinci-pcm-audio", | ||
195 | }; | 196 | }; |
196 | 197 | ||
197 | static struct snd_soc_dai_link dm6467_evm_dai[] = { | 198 | static struct snd_soc_dai_link dm6467_evm_dai[] = { |
@@ -200,7 +201,7 @@ static struct snd_soc_dai_link dm6467_evm_dai[] = { | |||
200 | .stream_name = "AIC3X", | 201 | .stream_name = "AIC3X", |
201 | .cpu_dai_name= "davinci-mcasp.0", | 202 | .cpu_dai_name= "davinci-mcasp.0", |
202 | .codec_dai_name = "tlv320aic3x-hifi", | 203 | .codec_dai_name = "tlv320aic3x-hifi", |
203 | .platform_name ="davinci-pcm-audio", | 204 | .platform_name = "davinci-mcasp.0", |
204 | .codec_name = "tlv320aic3x-codec.0-001a", | 205 | .codec_name = "tlv320aic3x-codec.0-001a", |
205 | .init = evm_aic3x_init, | 206 | .init = evm_aic3x_init, |
206 | .ops = &evm_ops, | 207 | .ops = &evm_ops, |
@@ -211,7 +212,7 @@ static struct snd_soc_dai_link dm6467_evm_dai[] = { | |||
211 | .cpu_dai_name= "davinci-mcasp.1", | 212 | .cpu_dai_name= "davinci-mcasp.1", |
212 | .codec_dai_name = "dit-hifi", | 213 | .codec_dai_name = "dit-hifi", |
213 | .codec_name = "spdif_dit", | 214 | .codec_name = "spdif_dit", |
214 | .platform_name = "davinci-pcm-audio", | 215 | .platform_name = "davinci-mcasp.1", |
215 | .ops = &evm_spdif_ops, | 216 | .ops = &evm_spdif_ops, |
216 | }, | 217 | }, |
217 | }; | 218 | }; |
@@ -222,7 +223,7 @@ static struct snd_soc_dai_link da830_evm_dai = { | |||
222 | .cpu_dai_name = "davinci-mcasp.1", | 223 | .cpu_dai_name = "davinci-mcasp.1", |
223 | .codec_dai_name = "tlv320aic3x-hifi", | 224 | .codec_dai_name = "tlv320aic3x-hifi", |
224 | .codec_name = "tlv320aic3x-codec.1-0018", | 225 | .codec_name = "tlv320aic3x-codec.1-0018", |
225 | .platform_name = "davinci-pcm-audio", | 226 | .platform_name = "davinci-mcasp.1", |
226 | .init = evm_aic3x_init, | 227 | .init = evm_aic3x_init, |
227 | .ops = &evm_ops, | 228 | .ops = &evm_ops, |
228 | }; | 229 | }; |
@@ -233,7 +234,7 @@ static struct snd_soc_dai_link da850_evm_dai = { | |||
233 | .cpu_dai_name= "davinci-mcasp.0", | 234 | .cpu_dai_name= "davinci-mcasp.0", |
234 | .codec_dai_name = "tlv320aic3x-hifi", | 235 | .codec_dai_name = "tlv320aic3x-hifi", |
235 | .codec_name = "tlv320aic3x-codec.1-0018", | 236 | .codec_name = "tlv320aic3x-codec.1-0018", |
236 | .platform_name = "davinci-pcm-audio", | 237 | .platform_name = "davinci-mcasp.0", |
237 | .init = evm_aic3x_init, | 238 | .init = evm_aic3x_init, |
238 | .ops = &evm_ops, | 239 | .ops = &evm_ops, |
239 | }; | 240 | }; |