Skip to contentSkip to conversation

ASoC: Report error codes for card DAI instantiation failures

PATCH In review Mark Brown 2 participants 2 messages Sep 21, 2010 – Sep 22, 2010

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: Report error codes for card DAI instantiation failures

Also clean up the error print a bit.

---
 sound/soc/soc-core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/soc/soc-core.c +2 -1
index 7c64e03..5c58651 100644
@@ -1568,7 +1568,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
 	for (i = 0; i < card->num_links; i++) {
 		ret = soc_probe_dai_link(card, i);
 		if (ret < 0) {
-			printk(KERN_ERR "asoc: failed to instanciate card %s\n", card->name);
+			pr_err("asoc: failed to instantiate card %s: %d\n",
+			       card->name, ret);
 			goto probe_dai_err;
 		}
 	}
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Mark Brown

Also clean up the error print a bit.

---
 sound/soc/soc-core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/soc/soc-core.c +0 -0
index 7c64e03..5c58651 100644

sound/soc/soc-core.c static void snd_soc_instantiate_card(struct snd_soc_card *card) · line 1575

Quoted 9 lines
sound/soc/soc-core.c +2 -1
@@ -1568,7 +1568,8 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card)
 	for (i = 0; i < card->num_links; i++) {
 		ret = soc_probe_dai_link(card, i);
 		if (ret < 0) {
-			printk(KERN_ERR "asoc: failed to instanciate card %s\n", card->name);
+			pr_err("asoc: failed to instantiate card %s: %d\n",
+			       card->name, ret);
 			goto probe_dai_err;
 		}
 	}
Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk