summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas MURE <nicolas.mure2019@gmail.com>2021-03-01 15:29:27 +0100
committerTakashi Iwai <tiwai@suse.de>2021-03-01 15:44:53 +0100
commit2c9119001dcb1dc7027257c5d8960d30f5ba58be (patch)
tree4f0c42f90e93482034624e0607075360fbf66486
parent11302bb69e72d0526bc626ee5c451a3d22cde904 (diff)
downloadlinux-riscv-2c9119001dcb1dc7027257c5d8960d30f5ba58be.tar.gz
linux-riscv-2c9119001dcb1dc7027257c5d8960d30f5ba58be.tar.bz2
linux-riscv-2c9119001dcb1dc7027257c5d8960d30f5ba58be.zip
ALSA: usb-audio: Fix Pioneer DJM devices URB_CONTROL request direction to set samplerate
This commit only contains the fix about the `URB_CONTROL` request direction to set the samplerate of Pioneer DJM devices (`URB_CONTROL out`). Fixes: 3b85f5fc75d5 ("ALSA: usb-audio: Add DJM450 to Pioneer format quirk") Signed-off-by: Nicolas MURE <nicolas.mure2019@gmail.com> Link: https://lore.kernel.org/r/20210301142927.14552-1-nicolas.mure2019@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/usb/quirks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 9ba4682ebc48..737b2729c0d3 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1482,7 +1482,7 @@ static int pioneer_djm_set_format_quirk(struct snd_usb_substream *subs,
usb_set_interface(subs->dev, 0, 1);
// we should derive windex from fmt-sync_ep but it's not set
snd_usb_ctl_msg(subs->stream->chip->dev,
- usb_rcvctrlpipe(subs->stream->chip->dev, 0),
+ usb_sndctrlpipe(subs->stream->chip->dev, 0),
0x01, 0x22, 0x0100, windex, &sr, 0x0003);
return 0;
}