projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7d67e7
)
ALSA: sonicvibes: Simplify with str_off_on()
author
Takashi Iwai
<tiwai@suse.de>
Tue, 7 Jan 2025 15:56:32 +0000
(16:56 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 7 Jan 2025 16:34:48 +0000
(17:34 +0100)
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>
sound/pci/sonicvibes.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/sonicvibes.c
b/sound/pci/sonicvibes.c
index e510715a6c9570571f8f365b30f7b4dc436ddc0b..c30eaf1038e76ce026c139ce0765e91dbc565e8d 100644
(file)
--- a/
sound/pci/sonicvibes.c
+++ b/
sound/pci/sonicvibes.c
@@
-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",
- s
onic->srs_space & 0x80 ? "off" : "on"
);
+ s
tr_off_on(sonic->srs_space & 0x80)
);
snd_iprintf(buffer, "SRS Space : %s\n",
tmp == 0x00 ? "100%" :
tmp == 0x01 ? "75%" :