mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 12:14:10 +08:00
ASoC: sof: pcm: use snd_pcm_direction_name()
We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/87mslzk51h.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7dfdcde201
commit
cda4aa0069
@ -100,7 +100,7 @@ sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_run
|
||||
dpcm_end_walk_at_be);
|
||||
if (ret < 0) {
|
||||
dev_err(sdev->dev, "error: dai %s has no valid %s path\n", dai->name,
|
||||
dir == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture");
|
||||
snd_pcm_direction_name(dir));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user