|
Takashi Iwai |
9daaa7 |
From 2c9119001dcb1dc7027257c5d8960d30f5ba58be Mon Sep 17 00:00:00 2001
|
|
Takashi Iwai |
9daaa7 |
From: Nicolas MURE <nicolas.mure2019@gmail.com>
|
|
Takashi Iwai |
9daaa7 |
Date: Mon, 1 Mar 2021 15:29:27 +0100
|
|
Takashi Iwai |
9daaa7 |
Subject: [PATCH] ALSA: usb-audio: Fix Pioneer DJM devices URB_CONTROL request direction to set samplerate
|
|
Takashi Iwai |
9daaa7 |
Git-commit: 2c9119001dcb1dc7027257c5d8960d30f5ba58be
|
|
Takashi Iwai |
9daaa7 |
Patch-mainline: v5.12-rc2
|
|
Takashi Iwai |
9daaa7 |
References: git-fixes
|
|
Takashi Iwai |
9daaa7 |
|
|
Takashi Iwai |
9daaa7 |
This commit only contains the fix about the `URB_CONTROL` request
|
|
Takashi Iwai |
9daaa7 |
direction to set the samplerate of Pioneer DJM devices (`URB_CONTROL out`).
|
|
Takashi Iwai |
9daaa7 |
|
|
Takashi Iwai |
9daaa7 |
Fixes: 3b85f5fc75d5 ("ALSA: usb-audio: Add DJM450 to Pioneer format quirk")
|
|
Takashi Iwai |
9daaa7 |
Signed-off-by: Nicolas MURE <nicolas.mure2019@gmail.com>
|
|
Takashi Iwai |
9daaa7 |
Link: https://lore.kernel.org/r/20210301142927.14552-1-nicolas.mure2019@gmail.com
|
|
Takashi Iwai |
9daaa7 |
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
Takashi Iwai |
9daaa7 |
|
|
Takashi Iwai |
9daaa7 |
---
|
|
Takashi Iwai |
9daaa7 |
sound/usb/quirks.c | 2 +-
|
|
Takashi Iwai |
9daaa7 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Takashi Iwai |
9daaa7 |
|
|
Takashi Iwai |
9daaa7 |
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
|
|
Takashi Iwai |
9daaa7 |
index 9ba4682ebc48..737b2729c0d3 100644
|
|
Takashi Iwai |
9daaa7 |
--- a/sound/usb/quirks.c
|
|
Takashi Iwai |
9daaa7 |
+++ b/sound/usb/quirks.c
|
|
Takashi Iwai |
9daaa7 |
@@ -1482,7 +1482,7 @@ static int pioneer_djm_set_format_quirk(struct snd_usb_substream *subs,
|
|
Takashi Iwai |
9daaa7 |
usb_set_interface(subs->dev, 0, 1);
|
|
Takashi Iwai |
9daaa7 |
// we should derive windex from fmt-sync_ep but it's not set
|
|
Takashi Iwai |
9daaa7 |
snd_usb_ctl_msg(subs->stream->chip->dev,
|
|
Takashi Iwai |
9daaa7 |
- usb_rcvctrlpipe(subs->stream->chip->dev, 0),
|
|
Takashi Iwai |
9daaa7 |
+ usb_sndctrlpipe(subs->stream->chip->dev, 0),
|
|
Takashi Iwai |
9daaa7 |
0x01, 0x22, 0x0100, windex, &sr, 0x0003);
|
|
Takashi Iwai |
9daaa7 |
return 0;
|
|
Takashi Iwai |
9daaa7 |
}
|
|
Takashi Iwai |
9daaa7 |
--
|
|
Takashi Iwai |
9daaa7 |
2.26.2
|
|
Takashi Iwai |
9daaa7 |
|