Message ID | 20250107155641.4435-6-tiwai@suse.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | ALSA: Simplify with standard helpers | expand |
Hi, On Wed, Jan 8, 2025, at 00:56, Takashi Iwai wrote: > Use the standard helper str_on_off() to simplify the code. > Only code refactoring, no behavior change. > > Cc: Takashi Sakamoto <o-takashi@sakamocchi.jp> > Signed-off-by: Takashi Iwai <tiwai@suse.de> > --- > sound/firewire/fireface/ff-protocol-former.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) It was in my TODO list, good. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> # Akeome & Kotoyoro Takashi Sakamoto
diff --git a/sound/firewire/fireface/ff-protocol-former.c b/sound/firewire/fireface/ff-protocol-former.c index efd59e9d9935..0907d0a2296f 100644 --- a/sound/firewire/fireface/ff-protocol-former.c +++ b/sound/firewire/fireface/ff-protocol-former.c @@ -135,13 +135,13 @@ static void dump_clock_config(struct snd_ff *ff, struct snd_info_buffer *buffer) snd_iprintf(buffer, "Output S/PDIF format: %s (Emphasis: %s)\n", (data & 0x00000020) ? "Professional" : "Consumer", - (data & 0x00000040) ? "on" : "off"); + str_on_off(data & 0x00000040)); snd_iprintf(buffer, "Optical output interface format: %s\n", (data & 0x00000100) ? "S/PDIF" : "ADAT"); snd_iprintf(buffer, "Word output single speed: %s\n", - (data & 0x00002000) ? "on" : "off"); + str_on_off(data & 0x00002000)); snd_iprintf(buffer, "S/PDIF input interface: %s\n", (data & 0x00000200) ? "Optical" : "Coaxial");
Use the standard helper str_on_off() to simplify the code. Only code refactoring, no behavior change. Cc: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de> --- sound/firewire/fireface/ff-protocol-former.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)