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

ALSA: firewire: Simplify with str_on_off()

Use the standard helper str_on_off() to simplify the code.
Only code refactoring, no behavior change.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://patch.msgid.link/20250107155641.4435-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2 -2
+2 -2
sound/firewire/fireface/ff-protocol-former.c
··· 135 135 136 136 snd_iprintf(buffer, "Output S/PDIF format: %s (Emphasis: %s)\n", 137 137 (data & 0x00000020) ? "Professional" : "Consumer", 138 - (data & 0x00000040) ? "on" : "off"); 138 + str_on_off(data & 0x00000040)); 139 139 140 140 snd_iprintf(buffer, "Optical output interface format: %s\n", 141 141 (data & 0x00000100) ? "S/PDIF" : "ADAT"); 142 142 143 143 snd_iprintf(buffer, "Word output single speed: %s\n", 144 - (data & 0x00002000) ? "on" : "off"); 144 + str_on_off(data & 0x00002000)); 145 145 146 146 snd_iprintf(buffer, "S/PDIF input interface: %s\n", 147 147 (data & 0x00000200) ? "Optical" : "Coaxial");