ALSA: usb-audio: Fix Scarlett 6i6 initialization typo
authorChris J Arges <chris.j.arges@canonical.com>
Wed, 17 Dec 2014 22:09:35 +0000 (16:09 -0600)
committerTakashi Iwai <tiwai@suse.de>
Thu, 18 Dec 2014 07:39:17 +0000 (08:39 +0100)
The num_controls field was incorrectly set to 0 causing 6i6 to not be
initialized. Set this to 9.

Reported-and-tested-by: Mark Roberts <sunifiram@gmail.com>
Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett.c

index 9109652b88b94345103e774004d8e6ff344ff5c1..7438e7c4a842da4aac34334f13575aa765e3c79d 100644 (file)
@@ -655,7 +655,7 @@ static struct scarlett_device_info s6i6_info = {
                .names = NULL
        },
 
-       .num_controls = 0,
+       .num_controls = 9,
        .controls = {
                { .num = 0, .type = SCARLETT_OUTPUTS, .name = "Monitor" },
                { .num = 1, .type = SCARLETT_OUTPUTS, .name = "Headphone" },