]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Use Class Specific EP for UAC3 devices.
authorJorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Fri, 11 May 2018 15:25:35 +0000 (16:25 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 May 2018 05:29:10 +0000 (07:29 +0200)
commit789536be6e9ed12a092420ac082d61ca296e619b
tree7ab505bdf74f8977c919b52934d4358f7c5faccc
parent0fe928d6ef70593524afd3239e0f6a46e92680cd
ALSA: usb-audio: Use Class Specific EP for UAC3 devices.

bmAtributes offset doesn't exist in the UAC3 CS_EP descriptor.
Hence, checking for pitch control as if it was UAC2 doesn't make
any sense. Use the defined UAC3 offsets instead.

Fixes: fa81571fdd23 ("ALSA: usb: initial USB Audio Device Class 3.0 support")
Signed-off-by: Jorge Sanjuan <jorge.sanjuan@codethink.co.uk>
Reviewed-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c