mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 18:43:59 +08:00
ALSA: snd-usb-caiaq: Send the correct command when setting controls
Fixes a bug where an incorrect command was sent which had no effect on the device. Signed-off-by: Mark Hills <mark@pogo.org.uk> Acked-by: Daniel Mack <daniel@caiaq.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
2165592b83
commit
705350f8bd
@ -94,7 +94,7 @@ static int control_put(struct snd_kcontrol *kcontrol,
|
|||||||
if (pos & CNT_INTVAL) {
|
if (pos & CNT_INTVAL) {
|
||||||
dev->control_state[pos & ~CNT_INTVAL]
|
dev->control_state[pos & ~CNT_INTVAL]
|
||||||
= ucontrol->value.integer.value[0];
|
= ucontrol->value.integer.value[0];
|
||||||
snd_usb_caiaq_send_command(dev, EP1_CMD_DIMM_LEDS,
|
snd_usb_caiaq_send_command(dev, EP1_CMD_WRITE_IO,
|
||||||
dev->control_state, sizeof(dev->control_state));
|
dev->control_state, sizeof(dev->control_state));
|
||||||
} else {
|
} else {
|
||||||
if (ucontrol->value.integer.value[0])
|
if (ucontrol->value.integer.value[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user