ALSA: usb-audio: fix feature unit parser for UAC2
authorDaniel Mack <daniel@caiaq.de>
Thu, 27 May 2010 18:15:14 +0000 (20:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 28 May 2010 05:48:17 +0000 (07:48 +0200)
commite8d0fee70b66694959eab10c41788b9279d73629
tree3e7e3754298f1e1ccb994149427980f1afb6d052
parent3ee317fe9cf08d81501b142bf0054c25e3ed5e7d
ALSA: usb-audio: fix feature unit parser for UAC2

Fix a small off-by-one bug which causes the feature unit to announce a
wrong number of channels. This leads to illegal requests sent to the
firmware eventually.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c