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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Aug 2015 23:32:14 +0000 (00:32 +0100)
commit7751e0e89bce8d805869116724ad1acb0b2e6f29
tree67bc950a6632e1383f92a252f07793a563575d1d
parenta2066716effdbaa16500427710c59db7e540fd5a
ALSA: usb-audio: fix missing input volume controls in MAYA44 USB(+)

commit ea114fc27dc0cb9a550b6add5426720feb66262a upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[bwh: Backported to 3.2:
 - Adjust context
 - Logging statement was different]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/usb/mixer.c