projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdac6e1
)
ALSA: oxygen: Fix right channel of capture volume mixer
author
Takashi Iwai
<tiwai@suse.de>
Fri, 12 Jan 2024 11:10:23 +0000
(12:10 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 12 Jan 2024 11:11:21 +0000
(12:11 +0100)
There was a typo in oxygen mixer code that didn't update the right
channel value properly for the capture volume. Let's fix it.
This trivial fix was originally reported on Bugzilla.
Fixes: a3601560496d ("[ALSA] oxygen: add front panel controls")
Cc: <stable@vger.kernel.org>
Link:
https://bugzilla.kernel.org/show_bug.cgi?id=156561
Link:
https://lore.kernel.org/r/20240112111023.6208-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/oxygen/oxygen_mixer.c
patch
|
blob
|
history
diff --git
a/sound/pci/oxygen/oxygen_mixer.c
b/sound/pci/oxygen/oxygen_mixer.c
index 46705ec77b4810ae0fd958749580937db8830ce3..eb3aca16359c58f6f5985ba44ef2173b3d5afc50 100644
(file)
--- a/
sound/pci/oxygen/oxygen_mixer.c
+++ b/
sound/pci/oxygen/oxygen_mixer.c
@@
-718,7
+718,7
@@
static int ac97_fp_rec_volume_put(struct snd_kcontrol *ctl,
oldreg = oxygen_read_ac97(chip, 1, AC97_REC_GAIN);
newreg = oldreg & ~0x0707;
newreg = newreg | (value->value.integer.value[0] & 7);
- newreg = newreg | ((value->value.integer.value[
0
] & 7) << 8);
+ newreg = newreg | ((value->value.integer.value[
1
] & 7) << 8);
change = newreg != oldreg;
if (change)
oxygen_write_ac97(chip, 1, AC97_REC_GAIN, newreg);