Skip to content

Commit 925cb11

Browse files
morimotogregkh
authored andcommitted
ASoC: sof: pcm: use snd_pcm_direction_name()
[ Upstream commit cda4aa0 ] 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> Stable-dep-of: 17661c6 ("ASoC: SOF: ipc4-pcm: Continue the pipeline trigger in case of IPC timeout") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 86cc450 commit 925cb11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ sof_pcm_setup_connected_widgets(struct snd_sof_dev *sdev, struct snd_soc_pcm_run
100100
dpcm_end_walk_at_be);
101101
if (ret < 0) {
102102
dev_err(sdev->dev, "error: dai %s has no valid %s path\n", dai->name,
103-
dir == SNDRV_PCM_STREAM_PLAYBACK ? "playback" : "capture");
103+
snd_pcm_direction_name(dir));
104104
return ret;
105105
}
106106

0 commit comments

Comments
 (0)