Skip to content

Commit 42d2873

Browse files
tobluxtiwai
authored andcommitted
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>
1 parent acf5a2f commit 42d2873

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sound/pci/sonicvibes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,9 +1135,9 @@ static void snd_sonicvibes_proc_read(struct snd_info_entry *entry,
11351135
tmp == 0x00 ? "on-board ROM" :
11361136
tmp == 0x01 ? "PCI bus" : "on-board ROM + PCI bus");
11371137
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));
11411141
}
11421142

11431143
static void snd_sonicvibes_proc_init(struct sonicvibes *sonic)

0 commit comments

Comments
 (0)