mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
ASoC: rsnd: tidyup direction name on rsnd_dai_connect()
commit2c6b6a3e8b
("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:2c6b6a3e8b
("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>
This commit is contained in:
parent
ebba78e34d
commit
8022629548
@ -597,7 +597,7 @@ int rsnd_dai_connect(struct rsnd_mod *mod,
|
||||
|
||||
dev_dbg(dev, "%s is connected to io (%s)\n",
|
||||
rsnd_mod_name(mod),
|
||||
snd_pcm_direction_name(io->substream->stream));
|
||||
rsnd_io_is_play(io) ? "Playback" : "Capture");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user