ASoC: pcm: Fix vague codec and cpu DAI prepare error messages

Both codec and cpu DAI prepare print the same error message making it a bit
more difficult to grep quickly from sources. Fix this by telling it
explicitly.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Jarkko Nikula 2014-12-23 11:04:41 +02:00 committed by Mark Brown
parent 97bf6af1f9
commit 90cc7f1cbb

View file

@ -746,7 +746,8 @@ static int soc_pcm_prepare(struct snd_pcm_substream *substream)
codec_dai); codec_dai);
if (ret < 0) { if (ret < 0) {
dev_err(codec_dai->dev, dev_err(codec_dai->dev,
"ASoC: DAI prepare error: %d\n", ret); "ASoC: codec DAI prepare error: %d\n",
ret);
goto out; goto out;
} }
} }
@ -755,8 +756,8 @@ static int soc_pcm_prepare(struct snd_pcm_substream *substream)
if (cpu_dai->driver->ops && cpu_dai->driver->ops->prepare) { if (cpu_dai->driver->ops && cpu_dai->driver->ops->prepare) {
ret = cpu_dai->driver->ops->prepare(substream, cpu_dai); ret = cpu_dai->driver->ops->prepare(substream, cpu_dai);
if (ret < 0) { if (ret < 0) {
dev_err(cpu_dai->dev, "ASoC: DAI prepare error: %d\n", dev_err(cpu_dai->dev,
ret); "ASoC: cpu DAI prepare error: %d\n", ret);
goto out; goto out;
} }
} }