ASoC: Fix parameter for soc_unregister_ac97_dai_link
PATCH 1/1 ASoC: Fix parameter for soc_unregister_ac97_dai_link
soc_unregister_ac97_dai_link takes a pointer to a codec.
Reported-by Mike Frysinger <[email protected]>
Signed-off-by Axel Lin <[email protected]>
Cc [email protected] [2.6.37]
--- sound/soc/soc-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/soc-core.c +1 -1
@@ -1623,7 +1623,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)if (ret <0 ) {printk (KERN_ERR "asoc: failed to register AC97 %s\n" , card->name);while (--i >=0 ) -soc_unregister_ac97_dai_link (&card->rtd[i]); +soc_unregister_ac97_dai_link (card->rtd[i].codec); goto probe_dai_err; } }
Signature · 1 line
1.7.2
Quoted 1 line · Axel Lin
soc_unregister_ac97_dai_linktakes a pointer to a codec.
thanks ... seems to work for me
Acked-by Mike Frysinger <[email protected]>
-mike
Quoted 14 lines · Axel Lin
soc_unregister_ac97_dai_linktakes a pointer to a codec.Reported-by Mike Frysinger <[email protected]>Signed-off-by Axel Lin <[email protected]>Cc [email protected] [2.6.37]--- sound/soc/soc-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)sound/soc/soc-core.c +0
-0
sound/soc/soc-core.c static void snd_soc_instantiate_card(struct snd_soc_card *card) · line 1629
Quoted 8 lines
sound/soc/soc-core.c +1
-1@@ -1623,7 +1623,7 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)if (ret <0 ) {printk (KERN_ERR "asoc: failed to register AC97 %s\n" , card->name);while (--i >=0 ) -soc_unregister_ac97_dai_link (&card->rtd[i]); +soc_unregister_ac97_dai_link (card->rtd[i].codec); goto probe_dai_err; } }
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Quoted 5 lines · Axel Lin
soc_unregister_ac97_dai_linktakes a pointer to a codec.Reported-by Mike Frysinger <[email protected]>Signed-off-by Axel Lin <[email protected]>Cc [email protected] [2.6.37]
This only applies in stable - it is a backport of 7d8316d (ASoC: Fix AC'97 registration unwind) which should be going in during the merge window.
Acked-by Mark Brown <[email protected]>