]> www.infradead.org Git - users/willy/linux.git/commitdiff
ALSA: pci: pcxhr: use snd_pcm_direction_name()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 30 Jul 2024 02:05:01 +0000 (02:05 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Aug 2024 10:49:50 +0000 (12:49 +0200)
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>
sound/pci/pcxhr/pcxhr_mix22.c

index f340458fd2e111dffc77e3cde0193d81dbc055f8..e1435afc49074fb27b32156d50f28b347c4877c4 100644 (file)
@@ -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 */