From: Kuninori Morimoto Date: Tue, 30 Jul 2024 02:05:53 +0000 (+0000) Subject: ASoC: sof: intel: use snd_pcm_direction_name() X-Git-Tag: v6.12-rc1~169^2~1^2~106^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=baa779902020d8921cf652944309d1284a63811c;p=thirdparty%2Fkernel%2Flinux.git ASoC: sof: intel: use snd_pcm_direction_name() We already have snd_pcm_direction_name(). Let's use it. Signed-off-by: Kuninori Morimoto Link: https://patch.msgid.link/87le1jk51b.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c index 8213debde497c..3ac63ce67ab1c 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; }