mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 21:40:37 -04:00
ALSA: sonicvibes: Simplify with str_off_on()
Use the standard helper str_off_on() to simplify the code. Only code refactoring, no behavior change. Link: https://patch.msgid.link/20250107155641.4435-3-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -1118,7 +1118,7 @@ static void snd_sonicvibes_proc_read(struct snd_info_entry *entry,
|
||||
|
||||
tmp = sonic->srs_space & 0x0f;
|
||||
snd_iprintf(buffer, "SRS 3D : %s\n",
|
||||
sonic->srs_space & 0x80 ? "off" : "on");
|
||||
str_off_on(sonic->srs_space & 0x80));
|
||||
snd_iprintf(buffer, "SRS Space : %s\n",
|
||||
tmp == 0x00 ? "100%" :
|
||||
tmp == 0x01 ? "75%" :
|
||||
|
||||
Reference in New Issue
Block a user