diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2024-07-30 05:05:53 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-01 16:54:50 +0300 |
commit | baa779902020d8921cf652944309d1284a63811c (patch) | |
tree | 794311af6edc8b6d94ba30b6e983426b92c14843 /sound/soc/sof/intel | |
parent | cda4aa0069b73e3404ee61864b4814ccc7b7a6ad (diff) | |
download | linux-baa779902020d8921cf652944309d1284a63811c.tar.xz |
ASoC: sof: intel: 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/87le1jk51b.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel')
-rw-r--r-- | sound/soc/sof/intel/hda-stream.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c index 8213debde497..3ac63ce67ab1 100644 --- a/sound/soc/sof/intel/hda-stream.c +++ b/sound/soc/sof/intel/hda-stream.c @@ -216,9 +216,7 @@ hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags) /* stream found ? */ if (!hext_stream) { - dev_err(sdev->dev, "error: no free %s streams\n", - direction == SNDRV_PCM_STREAM_PLAYBACK ? - "playback" : "capture"); + dev_err(sdev->dev, "error: no free %s streams\n", snd_pcm_direction_name(direction)); return hext_stream; } |