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)
commit51cb8e206afd463e66f16869e5ddc95bef107142
tree99a46a052b6b6998f2962cfe59b9ea5144655132
parent05ca447630334c323c9e2b788b61133ab75d60d3
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: 93db51d06b32 ("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