]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: fix control-request direction
authorJohan Hovold <johan@kernel.org>
Fri, 21 May 2021 13:37:42 +0000 (15:37 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 May 2021 14:19:22 +0000 (16:19 +0200)
commit0f6d53ce65cb3ae039a83a0069ac66b704ef5adc
tree99a46a052b6b6998f2962cfe59b9ea5144655132
parent265797507f512b99719293419670d1634a91a233
ALSA: usb-audio: fix control-request direction

The direction of the pipe argument must match the request-type direction
bit or control requests may fail depending on the host-controller-driver
implementation.

Fix the UAC2_CS_CUR request which erroneously used usb_sndctrlpipe().

Fixes: 1a9c55c3f00f ("ALSA: usb-audio: Check valid altsetting at parsing rates for UAC2/3")
Cc: stable@vger.kernel.org # 5.10
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210521133742.18098-1-johan@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/format.c