Skip to content

Commit a111aee

Browse files
tobluxtiwai
authored andcommitted
ALSA: sb: Use str_enabled_disabled() helper in info_read()
Remove hard-coded strings by using the str_enabled_disabled() helper function. Suggested-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250109230521.237162-2-thorsten.blum@linux.dev Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 1bc1965 commit a111aee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sound/isa/sb/sb16_csp.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/init.h>
1414
#include <linux/slab.h>
1515
#include <linux/module.h>
16+
#include <linux/string_choices.h>
1617
#include <sound/core.h>
1718
#include <sound/control.h>
1819
#include <sound/info.h>
@@ -1157,8 +1158,8 @@ static void info_read(struct snd_info_entry *entry, struct snd_info_buffer *buff
11571158
((p->acc_rates & SNDRV_SB_CSP_RATE_44100) ? "44100Hz" : ""));
11581159
}
11591160
if (p->mode == SNDRV_SB_CSP_MODE_QSOUND) {
1160-
snd_iprintf(buffer, "QSound decoder %sabled\n",
1161-
p->q_enabled ? "en" : "dis");
1161+
snd_iprintf(buffer, "QSound decoder %s\n",
1162+
str_enabled_disabled(p->q_enabled));
11621163
} else {
11631164
snd_iprintf(buffer, "PCM format ID: 0x%x (%s/%s) [%s/%s] [%s/%s]\n",
11641165
p->acc_format,

0 commit comments

Comments
 (0)