Skip to content

Commit b48f2f7

Browse files
committed
ALSA: rme9652: Simplify with str_yes_no()
Use the standard helper for simplifying the code. Merely cleanup, no behavior change. Link: https://patch.msgid.link/20250109162318.9172-3-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 550033f commit b48f2f7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

sound/pci/rme9652/rme9652.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,7 @@ snd_rme9652_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buff
15611561
x, (unsigned long) rme9652->period_bytes);
15621562
snd_iprintf(buffer, "Hardware pointer (frames): %ld\n",
15631563
rme9652_hw_pointer(rme9652));
1564-
snd_iprintf(buffer, "Passthru: %s\n",
1565-
rme9652->passthru ? "yes" : "no");
1564+
snd_iprintf(buffer, "Passthru: %s\n", str_yes_no(rme9652->passthru));
15661565

15671566
if ((rme9652->control_register & (RME9652_Master | RME9652_wsel)) == 0) {
15681567
snd_iprintf(buffer, "Clock mode: autosync\n");
@@ -1685,7 +1684,7 @@ snd_rme9652_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buff
16851684
snd_iprintf(buffer, "\n");
16861685

16871686
snd_iprintf(buffer, "Timecode signal: %s\n",
1688-
(status & RME9652_tc_valid) ? "yes" : "no");
1687+
str_yes_no(status & RME9652_tc_valid));
16891688

16901689
/* thru modes */
16911690

0 commit comments

Comments
 (0)