Commit 60adbd8f authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: don't indicate error message for snd_soc_[pcm_]component_xxx()

All snd_soc_component_xxx() and snd_soc_pcm_component_xxx() itself
indicate error message if failed.
Its caller doesn't need to indicate duplicated error message.
This patch removes it.

All snd_soc_component_xxx() indicate error message if failed.
Its caller doesn't need to indicate duplicated error message.
This patch removes it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/878s6puta6.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 62462e01
...@@ -1203,11 +1203,9 @@ static int soc_probe_component(struct snd_soc_card *card, ...@@ -1203,11 +1203,9 @@ static int soc_probe_component(struct snd_soc_card *card,
} }
ret = snd_soc_component_probe(component); ret = snd_soc_component_probe(component);
if (ret < 0) { if (ret < 0)
dev_err(component->dev,
"ASoC: failed to probe component %d\n", ret);
goto err_probe; goto err_probe;
}
WARN(dapm->idle_bias_off && WARN(dapm->idle_bias_off &&
dapm->bias_level != SND_SOC_BIAS_OFF, dapm->bias_level != SND_SOC_BIAS_OFF,
"codec %s can not start from non-off bias with idle_bias_off==1\n", "codec %s can not start from non-off bias with idle_bias_off==1\n",
......
...@@ -2781,11 +2781,8 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) ...@@ -2781,11 +2781,8 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num)
snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &rtd->ops); snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &rtd->ops);
ret = snd_soc_pcm_component_new(rtd); ret = snd_soc_pcm_component_new(rtd);
if (ret < 0) { if (ret < 0)
dev_err(rtd->dev, "ASoC: pcm constructor failed for dailink %s: %d\n",
rtd->dai_link->name, ret);
return ret; return ret;
}
pcm->no_device_suspend = true; pcm->no_device_suspend = true;
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment