Skip to content

Commit

Permalink
ALSA: usb-audio: Fix Scarlett 6i6 initialization typo
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Chris J Arges <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Chris J Arges authored and tiwai committed Dec 18, 2014
1 parent 7327643 commit c99b9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/mixer_scarlett.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down

0 comments on commit c99b9e8

Please sign in to comment.