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: sonicvibes: Use str_on_off() helper in snd_sonicvibes_proc_read()

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/20241210172428.139643-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Thorsten Blum and committed by
Takashi Iwai
42d28736 acf5a2f0

+3 -3
+3 -3
sound/pci/sonicvibes.c
··· 1135 1135 tmp == 0x00 ? "on-board ROM" : 1136 1136 tmp == 0x01 ? "PCI bus" : "on-board ROM + PCI bus"); 1137 1137 tmp = sonic->mpu_switch; 1138 - snd_iprintf(buffer, "Onboard synth : %s\n", tmp & 0x01 ? "on" : "off"); 1139 - snd_iprintf(buffer, "Ext. Rx to synth : %s\n", tmp & 0x02 ? "on" : "off"); 1140 - snd_iprintf(buffer, "MIDI to ext. Tx : %s\n", tmp & 0x04 ? "on" : "off"); 1138 + snd_iprintf(buffer, "Onboard synth : %s\n", str_on_off(tmp & 0x01)); 1139 + snd_iprintf(buffer, "Ext. Rx to synth : %s\n", str_on_off(tmp & 0x02)); 1140 + snd_iprintf(buffer, "MIDI to ext. Tx : %s\n", str_on_off(tmp & 0x04)); 1141 1141 } 1142 1142 1143 1143 static void snd_sonicvibes_proc_init(struct sonicvibes *sonic)