ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+)
authorClemens Ladisch <clemens@ladisch.de>
Wed, 3 Jun 2015 09:36:51 +0000 (11:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 3 Jun 2015 09:58:15 +0000 (11:58 +0200)
commitea114fc27dc0cb9a550b6add5426720feb66262a
tree5e105a6859798038204b1327738cd407f87a216f
parent044bddb9ca8d49edb91bc22b9940a463b0dbb97f
ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+)

The driver worked around an error in the MAYA44 USB(+)'s mixer unit
descriptor by aborting before parsing the missing field.  However,
aborting parsing too early prevented parsing of the other units
connected to this unit, so the capture mixer controls would be missing.

Fix this by moving the check for this descriptor error after the parsing
of the unit's input pins.

Reported-by: nightmixes <nightmixes@gmail.com>
Tested-by: nightmixes <nightmixes@gmail.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c