]> 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)
commitbd3597434cef4f6c08286d56a50163ef7f9e31f2
tree99a46a052b6b6998f2962cfe59b9ea5144655132
parentd974eb5f3b454699427a02b8865464c8d32e7231
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: f74a1bb084dc ("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