projects
/
wrapfs-3.2.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fccf66f
)
ALSA: usb-audio: add quirk for Samsung USBC Headset (AKG)
author
Macpaul Lin
<macpaul.lin@mediatek.com>
Tue, 23 Jun 2020 11:03:23 +0000
(19:03 +0800)
committer
Sasha Levin
<sashal@kernel.org>
Tue, 30 Jun 2020 19:35:56 +0000
(15:35 -0400)
commit
a32a1fc99807244d920d274adc46ba04b538cc8a
upstream.
We've found Samsung USBC Headset (AKG) (VID: 0x04e8, PID: 0xa051)
need a tiny delay after each class compliant request.
Otherwise the device might not be able to be recognized each times.
Signed-off-by: Chihhao Chen <chihhao.chen@mediatek.com>
Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Cc: stable@vger.kernel.org
Link:
https://lore.kernel.org/r/1592910203-24035-1-git-send-email-macpaul.lin@mediatek.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/quirks.c
patch
|
blob
|
history
diff --git
a/sound/usb/quirks.c
b/sound/usb/quirks.c
index b5e9fe04861899531b58f0fd04b0b68681ea6aeb..d7d900ebcf37fb61d57bd6772c3ca0e9305fef29 100644
(file)
--- a/
sound/usb/quirks.c
+++ b/
sound/usb/quirks.c
@@
-1647,6
+1647,14
@@
void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe,
chip->usb_id == USB_ID(0x0951, 0x16ad)) &&
(requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS)
usleep_range(1000, 2000);
+
+ /*
+ * Samsung USBC Headset (AKG) need a tiny delay after each
+ * class compliant request. (Model number: AAM625R or AAM627R)
+ */
+ if (chip->usb_id == USB_ID(0x04e8, 0xa051) &&
+ (requesttype & USB_TYPE_MASK) == USB_TYPE_CLASS)
+ usleep_range(5000, 6000);
}
/*