Skip to content

Commit 391203f

Browse files
morimotogregkh
authored andcommitted
ASoC: rsnd: tidyup direction name on rsnd_dai_connect()
[ Upstream commit 8022629 ] 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 <thuan.nguyen-hong@banvien.com.vn> Tested-by: Thuan Nguyen <thuan.nguyen-hong@banvien.com.vn> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Message-ID: <87zfbmwq6v.wl-kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1d282dc commit 391203f

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)