Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: AC97: Use str_on_off() helper in snd_ac97_proc_read_main()

Remove hard-coded strings by using the str_on_off() helper function.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20241228233849.686755-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Thorsten Blum and committed by
Takashi Iwai
1e63e3c4 1d720a2d

+4 -4
+4 -4
sound/pci/ac97/ac97_proc.c
··· 161 161 "Mic select : %s\n" 162 162 "ADC/DAC loopback : %s\n", 163 163 val & 0x8000 ? "post" : "pre", 164 - val & 0x4000 ? "on" : "off", 165 - val & 0x2000 ? "on" : "off", 166 - val & 0x1000 ? "on" : "off", 164 + str_on_off(val & 0x4000), 165 + str_on_off(val & 0x2000), 166 + str_on_off(val & 0x1000), 167 167 val & 0x0200 ? "Mic" : "MIX", 168 168 val & 0x0100 ? "Mic2" : "Mic1", 169 - val & 0x0080 ? "on" : "off"); 169 + str_on_off(val & 0x0080)); 170 170 if (ac97->ext_id & AC97_EI_DRA) 171 171 snd_iprintf(buffer, "Double rate slots: %s\n", 172 172 double_rate_slots[(val >> 10) & 3]);