Skip to content

Commit 2be952e

Browse files
committed
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent e6a4fcf commit 2be952e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/firewire/fireface/ff-protocol-former.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ static void dump_clock_config(struct snd_ff *ff, struct snd_info_buffer *buffer)
135135

136136
snd_iprintf(buffer, "Output S/PDIF format: %s (Emphasis: %s)\n",
137137
(data & 0x00000020) ? "Professional" : "Consumer",
138-
(data & 0x00000040) ? "on" : "off");
138+
str_on_off(data & 0x00000040));
139139

140140
snd_iprintf(buffer, "Optical output interface format: %s\n",
141141
(data & 0x00000100) ? "S/PDIF" : "ADAT");
142142

143143
snd_iprintf(buffer, "Word output single speed: %s\n",
144-
(data & 0x00002000) ? "on" : "off");
144+
str_on_off(data & 0x00002000));
145145

146146
snd_iprintf(buffer, "S/PDIF input interface: %s\n",
147147
(data & 0x00000200) ? "Optical" : "Coaxial");

0 commit comments

Comments
 (0)