]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb: Only get AudioControl header for UAC1 class.
authorJorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Fri, 4 May 2018 01:24:01 +0000 (04:24 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 May 2018 07:39:27 +0000 (09:39 +0200)
commitc2e73265ce424b617fa45132d8c3c2d98ddbd4b0
tree7e5db70953debbda4600a94da29dfc971d426b69
parent2dd7a5f52f0cd246f268a40ebd5f7764348abc14
ALSA: usb: Only get AudioControl header for UAC1 class.

The control header needs to be read from buffer at this point only
in the case of UAC1 protocol. Move it inside the switch case as other
protocols such as the Basic Audio Device spec will have an empty buffer
that is latter filled as inferred.

Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk>
[Ruslan: updated with recently added sanity checks]
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/card.c