| From 51f78d3b9110f678c0cb08c550758849dd357edb Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Wed, 15 Jul 2015 07:15:10 +0000 |
| Subject: [PATCH 298/326] ASoC: rsnd: show debug message for SSI/SRC/DVC |
| connection |
| |
| It can help for connection debug |
| |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Tested-by: Keita Kobayashi <keita.kobayashi.ym@renesas.com> |
| Signed-off-by: Mark Brown <broonie@kernel.org> |
| (cherry picked from commit 84e95355602c59865be8a3bd18cd2f0b3863b4cb) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| sound/soc/sh/rcar/core.c | 7 +++++++ |
| 1 file changed, 7 insertions(+) |
| |
| diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c |
| index 0f9323f2c049..8919afabe48f 100644 |
| --- a/sound/soc/sh/rcar/core.c |
| +++ b/sound/soc/sh/rcar/core.c |
| @@ -332,11 +332,18 @@ u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io) |
| static int rsnd_dai_connect(struct rsnd_mod *mod, |
| struct rsnd_dai_stream *io) |
| { |
| + struct rsnd_priv *priv = rsnd_mod_to_priv(mod); |
| + struct device *dev = rsnd_priv_to_dev(priv); |
| + |
| if (!mod) |
| return -EIO; |
| |
| io->mod[mod->type] = mod; |
| |
| + dev_dbg(dev, "%s[%d] is connected to io (%s)\n", |
| + rsnd_mod_name(mod), rsnd_mod_id(mod), |
| + rsnd_io_is_play(io) ? "Playback" : "Capture"); |
| + |
| return 0; |
| } |
| |
| -- |
| 2.6.2 |
| |