diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2024-07-30 02:05:01 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-08-01 12:49:50 +0200 |
commit | 7ca1d0ed1ad006b874a4ec94a004d194ab0cfb5f (patch) | |
tree | 05558db59ff4882651f286abec670b2142a30876 | |
parent | e469e2045f1b78418f39a2461a9fdf73c2789a1a (diff) |
ALSA: pci: pcxhr: 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/87v80nk52q.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/pcxhr/pcxhr_mix22.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/pcxhr/pcxhr_mix22.c b/sound/pci/pcxhr/pcxhr_mix22.c index f340458fd2e1..e1435afc4907 100644 --- a/sound/pci/pcxhr/pcxhr_mix22.c +++ b/sound/pci/pcxhr/pcxhr_mix22.c @@ -535,7 +535,7 @@ int hr222_update_analog_audio_level(struct snd_pcxhr *chip, { dev_dbg(chip->card->dev, "hr222_update_analog_audio_level(%s chan=%d)\n", - is_capture ? "capture" : "playback", channel); + snd_pcm_direction_name(is_capture), channel); if (is_capture) { int level_l, level_r, level_mic; /* we have to update all levels */ |