ALSA: snd-usb-caiaq: Send the correct command when setting controls
authorMark Hills <mark@pogo.org.uk>
Wed, 4 Feb 2009 22:34:30 +0000 (22:34 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 5 Feb 2009 08:31:53 +0000 (09:31 +0100)
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>
sound/usb/caiaq/caiaq-control.c

index 6ac5489a0f22abdfaa2fc01c3c8e60d8e1ad42e5..1f9531d0fce42d2a73534176b13bda2629c5181a 100644 (file)
@@ -94,7 +94,7 @@ static int control_put(struct snd_kcontrol *kcontrol,
        if (pos & CNT_INTVAL) {
                dev->control_state[pos & ~CNT_INTVAL]
                        = 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));
        } else {
                if (ucontrol->value.integer.value[0])