[alsa-devel] [PATCH] ASoC: arizona: Log the clock we're setting the DAI to use
Mark Brown
broonie at opensource.wolfsonmicro.com
Fri Dec 7 04:50:11 CET 2012
Useful for diagnostics.
Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
sound/soc/codecs/arizona.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c
index a7eb553..d5385dc 100644
--- a/sound/soc/codecs/arizona.c
+++ b/sound/soc/codecs/arizona.c
@@ -811,6 +811,9 @@ static int arizona_dai_set_sysclk(struct snd_soc_dai *dai,
return -EBUSY;
}
+ dev_dbg(codec->dev, "Setting AIF%d to %s\n", dai->id + 1,
+ arizona_dai_clk_str(clk_id));
+
memset(&routes, 0, sizeof(routes));
routes[0].sink = dai->driver->capture.stream_name;
routes[1].sink = dai->driver->playback.stream_name;
--
1.7.10.4
More information about the Alsa-devel
mailing list