diff mbox

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

Message ID 1419325481-32094-1-git-send-email-jarkko.nikula@linux.intel.com (mailing list archive)
State Accepted
Commit 90cc7f1cbbde49c0919953928c225c036ece0d9c
Headers show

Commit Message

Jarkko Nikula Dec. 23, 2014, 9:04 a.m. UTC
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>
---
 sound/soc/soc-pcm.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Mark Brown Dec. 24, 2014, 11:59 a.m. UTC | #1
On Tue, Dec 23, 2014 at 11:04:41AM +0200, Jarkko Nikula wrote:
> 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.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index eb87d96e2cf0..0ae0e2a9eed7 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -746,7 +746,8 @@  static int soc_pcm_prepare(struct snd_pcm_substream *substream)
 							      codec_dai);
 			if (ret < 0) {
 				dev_err(codec_dai->dev,
-					"ASoC: DAI prepare error: %d\n", ret);
+					"ASoC: codec DAI prepare error: %d\n",
+					ret);
 				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) {
 		ret = cpu_dai->driver->ops->prepare(substream, cpu_dai);
 		if (ret < 0) {
-			dev_err(cpu_dai->dev, "ASoC: DAI prepare error: %d\n",
-				ret);
+			dev_err(cpu_dai->dev,
+				"ASoC: cpu DAI prepare error: %d\n", ret);
 			goto out;
 		}
 	}