mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
ALSA: usb-audio: Fix mixer ctl regression of Native Instrument devices
The commit [da6d276957
: ALSA: usb-audio: Add resume support for Native Instruments controls] brought a regression where the Native Instrument audio devices don't get the correct value at update due to the missing shift at writing. This patch addresses it. Fixes:da6d276957
('ALSA: usb-audio: Add resume support for Native Instruments controls') Reported-and-tested-by: Owen Williams <owilliams@mixxx.org> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0a1f90a982
commit
c4a359a004
1 changed files with 1 additions and 1 deletions
|
@ -793,7 +793,7 @@ static int snd_nativeinstruments_control_put(struct snd_kcontrol *kcontrol,
|
|||
return 0;
|
||||
|
||||
kcontrol->private_value &= ~(0xff << 24);
|
||||
kcontrol->private_value |= newval;
|
||||
kcontrol->private_value |= (unsigned int)newval << 24;
|
||||
err = snd_ni_update_cur_val(list);
|
||||
return err < 0 ? err : 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue