Skip to content

Commit 1e63e3c

Browse files
tobluxtiwai
authored andcommitted
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>
1 parent 1d720a2 commit 1e63e3c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sound/pci/ac97/ac97_proc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,12 @@ static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffe
161161
"Mic select : %s\n"
162162
"ADC/DAC loopback : %s\n",
163163
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),
167167
val & 0x0200 ? "Mic" : "MIX",
168168
val & 0x0100 ? "Mic2" : "Mic1",
169-
val & 0x0080 ? "on" : "off");
169+
str_on_off(val & 0x0080));
170170
if (ac97->ext_id & AC97_EI_DRA)
171171
snd_iprintf(buffer, "Double rate slots: %s\n",
172172
double_rate_slots[(val >> 10) & 3]);

0 commit comments

Comments
 (0)