ASoC: soc-component: don't report of_xlate_dai_name failures
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 23 Jul 2020 14:20:20 +0000 (16:20 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jul 2020 14:22:32 +0000 (15:22 +0100)
commitcc4d8cebbf2a1239aab71a8077fbe20f24ec2165
tree335be060f9483a2490cc0b6138702ad7340d5133
parentd1e2a97b36131607d33ac3d02e569b494900f1bd
ASoC: soc-component: don't report of_xlate_dai_name failures

With commit e2329eeba45f ("ASoC: soc-component: add soc_component_err()")
every error different for ENOTSUPP or EPROBE_DEFER will log an error.

However, as explained in snd_soc_get_dai_name(), this callback may error
to indicate that the DAI is not matched by the component tested. If the
device provides other components, those may still match. Logging an error
in this case is misleading.

Don't use soc_component_ret() in snd_soc_component_of_xlate_dai_name()
to avoid spamming the log.

Fixes: e2329eeba45f ("ASoC: soc-component: add soc_component_err()")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20200723142020.1338740-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-component.c