aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorMark Hills <mark@pogo.org.uk>2009-02-04 17:34:30 -0500
committerTakashi Iwai <tiwai@suse.de>2009-02-05 03:31:53 -0500
commit705350f8bd6b44fda3f0dcc3e6f4b453da4378dd (patch)
treecef1a1fd5a1d788024e3ab0521b222b6ccc40864 /sound/usb
parent2165592b837e086f2b94835a2d81e6f3199c1319 (diff)
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>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/caiaq/caiaq-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/caiaq/caiaq-control.c b/sound/usb/caiaq/caiaq-control.c
index 6ac5489a0f22..1f9531d0fce4 100644
--- a/sound/usb/caiaq/caiaq-control.c
+++ b/sound/usb/caiaq/caiaq-control.c
@@ -94,7 +94,7 @@ static int control_put(struct snd_kcontrol *kcontrol,
94 if (pos & CNT_INTVAL) { 94 if (pos & CNT_INTVAL) {
95 dev->control_state[pos & ~CNT_INTVAL] 95 dev->control_state[pos & ~CNT_INTVAL]
96 = ucontrol->value.integer.value[0]; 96 = ucontrol->value.integer.value[0];
97 snd_usb_caiaq_send_command(dev, EP1_CMD_DIMM_LEDS, 97 snd_usb_caiaq_send_command(dev, EP1_CMD_WRITE_IO,
98 dev->control_state, sizeof(dev->control_state)); 98 dev->control_state, sizeof(dev->control_state));
99 } else { 99 } else {
100 if (ucontrol->value.integer.value[0]) 100 if (ucontrol->value.integer.value[0])