Skip to content

Commit 8022629

Browse files
morimotobroonie
authored andcommitted
ASoC: rsnd: tidyup direction name on rsnd_dai_connect()
commit 2c6b6a3 ("ASoC: rsnd: use snd_pcm_direction_name()") uses snd_pcm_direction_name() instead of original method to get string "Playback" or "Capture". But io->substream might be NULL in this timing. Let's re-use original method. Fixes: 2c6b6a3 ("ASoC: rsnd: use snd_pcm_direction_name()") Reported-by: Thuan Nguyen <[email protected]> Tested-by: Thuan Nguyen <[email protected]> Signed-off-by: Kuninori Morimoto <[email protected]> Message-ID: <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent ebba78e commit 8022629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/renesas/rcar/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ int rsnd_dai_connect(struct rsnd_mod *mod,
597597

598598
dev_dbg(dev, "%s is connected to io (%s)\n",
599599
rsnd_mod_name(mod),
600-
snd_pcm_direction_name(io->substream->stream));
600+
rsnd_io_is_play(io) ? "Playback" : "Capture");
601601

602602
return 0;
603603
}

0 commit comments

Comments
 (0)