diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2024-07-30 02:05:46 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-01 14:54:49 +0100 |
commit | cda4aa0069b73e3404ee61864b4814ccc7b7a6ad (patch) | |
tree | 6a83d15960337e6f9d5e2daa46749d7b3da96283 /sound/soc/sof/pcm.c | |
parent | 7dfdcde20179383d4acfee61692a22955d5a8217 (diff) |
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>
Diffstat (limited to 'sound/soc/sof/pcm.c')
-rw-r--r-- | sound/soc/sof/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c index baad4c1445aa..35a7462d8b69 100644 --- a/sound/soc/sof/pcm.c +++ b/sound/soc/sof/pcm.c @@ -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; } |