diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-01-24 16:09:22 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-25 10:12:36 -0500 |
commit | 81d7da5404aad930a4e4f6111e4f16b752183018 (patch) | |
tree | b9a3d9d1bf3532d728e917b519cce68ea8a6bf03 | |
parent | 20a4e7fc7e213365ea3771d7bf1e10a6bab853be (diff) |
ASoC: Fix codec device id format used by some dai_links
The id part of an I2C device name is created with the "%d-%04x" format string.
So for example for an I2C device which is connected to the adapter with the id 0
and has its address set to 0x1a the id part of the devices name would be
"0-001a".
Currently some sound board drivers have the id part the codec_name field of
their dai_link structures set as if it had been created by a "%d-0x%x" format
string. For example "0-0x1a" instead of "0-001a".
As a result there is no match between the codec device and the dai_link and no
sound card is instantiated.
This patch fixes it.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
-rw-r--r-- | sound/soc/atmel/snd-soc-afeb9260.c | 2 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-ssm2602.c | 2 | ||||
-rw-r--r-- | sound/soc/samsung/neo1973_gta02_wm8753.c | 4 | ||||
-rw-r--r-- | sound/soc/samsung/neo1973_wm8753.c | 4 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_hermes.c | 2 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/sound/soc/atmel/snd-soc-afeb9260.c b/sound/soc/atmel/snd-soc-afeb9260.c index da2208e06b0d..5e4d499d8434 100644 --- a/sound/soc/atmel/snd-soc-afeb9260.c +++ b/sound/soc/atmel/snd-soc-afeb9260.c | |||
@@ -129,7 +129,7 @@ static struct snd_soc_dai_link afeb9260_dai = { | |||
129 | .cpu_dai_name = "atmel-ssc-dai.0", | 129 | .cpu_dai_name = "atmel-ssc-dai.0", |
130 | .codec_dai_name = "tlv320aic23-hifi", | 130 | .codec_dai_name = "tlv320aic23-hifi", |
131 | .platform_name = "atmel_pcm-audio", | 131 | .platform_name = "atmel_pcm-audio", |
132 | .codec_name = "tlv320aic23-codec.0-0x1a", | 132 | .codec_name = "tlv320aic23-codec.0-001a", |
133 | .init = afeb9260_tlv320aic23_init, | 133 | .init = afeb9260_tlv320aic23_init, |
134 | .ops = &afeb9260_ops, | 134 | .ops = &afeb9260_ops, |
135 | }; | 135 | }; |
diff --git a/sound/soc/blackfin/bf5xx-ssm2602.c b/sound/soc/blackfin/bf5xx-ssm2602.c index e902b24c1856..ad28663f5bbd 100644 --- a/sound/soc/blackfin/bf5xx-ssm2602.c +++ b/sound/soc/blackfin/bf5xx-ssm2602.c | |||
@@ -119,7 +119,7 @@ static struct snd_soc_dai_link bf5xx_ssm2602_dai = { | |||
119 | .cpu_dai_name = "bf5xx-i2s", | 119 | .cpu_dai_name = "bf5xx-i2s", |
120 | .codec_dai_name = "ssm2602-hifi", | 120 | .codec_dai_name = "ssm2602-hifi", |
121 | .platform_name = "bf5xx-pcm-audio", | 121 | .platform_name = "bf5xx-pcm-audio", |
122 | .codec_name = "ssm2602-codec.0-0x1b", | 122 | .codec_name = "ssm2602-codec.0-001b", |
123 | .ops = &bf5xx_ssm2602_ops, | 123 | .ops = &bf5xx_ssm2602_ops, |
124 | }; | 124 | }; |
125 | 125 | ||
diff --git a/sound/soc/samsung/neo1973_gta02_wm8753.c b/sound/soc/samsung/neo1973_gta02_wm8753.c index 3eec610c10f9..9e05e10b86a6 100644 --- a/sound/soc/samsung/neo1973_gta02_wm8753.c +++ b/sound/soc/samsung/neo1973_gta02_wm8753.c | |||
@@ -401,7 +401,7 @@ static struct snd_soc_dai_link neo1973_gta02_dai[] = { | |||
401 | .codec_dai_name = "wm8753-hifi", | 401 | .codec_dai_name = "wm8753-hifi", |
402 | .init = neo1973_gta02_wm8753_init, | 402 | .init = neo1973_gta02_wm8753_init, |
403 | .platform_name = "samsung-audio", | 403 | .platform_name = "samsung-audio", |
404 | .codec_name = "wm8753-codec.0-0x1a", | 404 | .codec_name = "wm8753-codec.0-001a", |
405 | .ops = &neo1973_gta02_hifi_ops, | 405 | .ops = &neo1973_gta02_hifi_ops, |
406 | }, | 406 | }, |
407 | { /* Voice via BT */ | 407 | { /* Voice via BT */ |
@@ -410,7 +410,7 @@ static struct snd_soc_dai_link neo1973_gta02_dai[] = { | |||
410 | .cpu_dai_name = "bluetooth-dai", | 410 | .cpu_dai_name = "bluetooth-dai", |
411 | .codec_dai_name = "wm8753-voice", | 411 | .codec_dai_name = "wm8753-voice", |
412 | .ops = &neo1973_gta02_voice_ops, | 412 | .ops = &neo1973_gta02_voice_ops, |
413 | .codec_name = "wm8753-codec.0-0x1a", | 413 | .codec_name = "wm8753-codec.0-001a", |
414 | .platform_name = "samsung-audio", | 414 | .platform_name = "samsung-audio", |
415 | }, | 415 | }, |
416 | }; | 416 | }; |
diff --git a/sound/soc/samsung/neo1973_wm8753.c b/sound/soc/samsung/neo1973_wm8753.c index c7a24514beb5..cf69e146890b 100644 --- a/sound/soc/samsung/neo1973_wm8753.c +++ b/sound/soc/samsung/neo1973_wm8753.c | |||
@@ -561,7 +561,7 @@ static struct snd_soc_dai_link neo1973_dai[] = { | |||
561 | .platform_name = "samsung-audio", | 561 | .platform_name = "samsung-audio", |
562 | .cpu_dai_name = "s3c24xx-i2s", | 562 | .cpu_dai_name = "s3c24xx-i2s", |
563 | .codec_dai_name = "wm8753-hifi", | 563 | .codec_dai_name = "wm8753-hifi", |
564 | .codec_name = "wm8753-codec.0-0x1a", | 564 | .codec_name = "wm8753-codec.0-001a", |
565 | .init = neo1973_wm8753_init, | 565 | .init = neo1973_wm8753_init, |
566 | .ops = &neo1973_hifi_ops, | 566 | .ops = &neo1973_hifi_ops, |
567 | }, | 567 | }, |
@@ -571,7 +571,7 @@ static struct snd_soc_dai_link neo1973_dai[] = { | |||
571 | .platform_name = "samsung-audio", | 571 | .platform_name = "samsung-audio", |
572 | .cpu_dai_name = "bluetooth-dai", | 572 | .cpu_dai_name = "bluetooth-dai", |
573 | .codec_dai_name = "wm8753-voice", | 573 | .codec_dai_name = "wm8753-voice", |
574 | .codec_name = "wm8753-codec.0-0x1a", | 574 | .codec_name = "wm8753-codec.0-001a", |
575 | .ops = &neo1973_voice_ops, | 575 | .ops = &neo1973_voice_ops, |
576 | }, | 576 | }, |
577 | }; | 577 | }; |
diff --git a/sound/soc/samsung/s3c24xx_simtec_hermes.c b/sound/soc/samsung/s3c24xx_simtec_hermes.c index bb4292e3596c..287a97164ab4 100644 --- a/sound/soc/samsung/s3c24xx_simtec_hermes.c +++ b/sound/soc/samsung/s3c24xx_simtec_hermes.c | |||
@@ -94,7 +94,7 @@ static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd) | |||
94 | static struct snd_soc_dai_link simtec_dai_aic33 = { | 94 | static struct snd_soc_dai_link simtec_dai_aic33 = { |
95 | .name = "tlv320aic33", | 95 | .name = "tlv320aic33", |
96 | .stream_name = "TLV320AIC33", | 96 | .stream_name = "TLV320AIC33", |
97 | .codec_name = "tlv320aic3x-codec.0-0x1a", | 97 | .codec_name = "tlv320aic3x-codec.0-001a", |
98 | .cpu_dai_name = "s3c24xx-i2s", | 98 | .cpu_dai_name = "s3c24xx-i2s", |
99 | .codec_dai_name = "tlv320aic3x-hifi", | 99 | .codec_dai_name = "tlv320aic3x-hifi", |
100 | .platform_name = "samsung-audio", | 100 | .platform_name = "samsung-audio", |
diff --git a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c index fbba4e367729..d2b14ba6f9e3 100644 --- a/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c +++ b/sound/soc/samsung/s3c24xx_simtec_tlv320aic23.c | |||
@@ -85,7 +85,7 @@ static int simtec_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd) | |||
85 | static struct snd_soc_dai_link simtec_dai_aic23 = { | 85 | static struct snd_soc_dai_link simtec_dai_aic23 = { |
86 | .name = "tlv320aic23", | 86 | .name = "tlv320aic23", |
87 | .stream_name = "TLV320AIC23", | 87 | .stream_name = "TLV320AIC23", |
88 | .codec_name = "tlv320aic3x-codec.0-0x1a", | 88 | .codec_name = "tlv320aic3x-codec.0-001a", |
89 | .cpu_dai_name = "s3c24xx-i2s", | 89 | .cpu_dai_name = "s3c24xx-i2s", |
90 | .codec_dai_name = "tlv320aic3x-hifi", | 90 | .codec_dai_name = "tlv320aic3x-hifi", |
91 | .platform_name = "samsung-audio", | 91 | .platform_name = "samsung-audio", |