Skip to content

Commit a63419b

Browse files
stephan-ghbroonie
authored andcommitted
ASoC: qcom: common: Avoid printing errors for -EPROBE_DEFER
qcom_snd_parse_of() tends to produce lots of error messages during bootup: MultiMedia1: error getting cpu dai name This happens because the DAIs are not probed until the ADSP remoteproc has booted, which takes a while. Until it is ready, snd_soc_of_get_dai_name() returns -EDEFER_PROBE to retry probing later. This is perfectly normal, so cleanup the kernel log a bit by not printing in case of -EPROBE_DEFER. Signed-off-by: Stephan Gerhold <[email protected]> Tested-by: Srinivas Kandagatla <[email protected]> Reviewed-by: Srinivas Kandagatla <[email protected]> Cc: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 118205d commit a63419b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

sound/soc/qcom/common.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
8888

8989
ret = snd_soc_of_get_dai_name(cpu, &link->cpus->dai_name);
9090
if (ret) {
91-
dev_err(card->dev, "%s: error getting cpu dai name\n", link->name);
91+
if (ret != -EPROBE_DEFER)
92+
dev_err(card->dev, "%s: error getting cpu dai name: %d\n",
93+
link->name, ret);
9294
goto err;
9395
}
9496

@@ -108,7 +110,9 @@ int qcom_snd_parse_of(struct snd_soc_card *card)
108110
if (codec) {
109111
ret = snd_soc_of_get_dai_link_codecs(dev, codec, link);
110112
if (ret < 0) {
111-
dev_err(card->dev, "%s: codec dai not found\n", link->name);
113+
if (ret != -EPROBE_DEFER)
114+
dev_err(card->dev, "%s: codec dai not found: %d\n",
115+
link->name, ret);
112116
goto err;
113117
}
114118

0 commit comments

Comments
 (0)