summaryrefslogtreecommitdiffstats
path: root/sound/usb/quirks.c
diff options
context:
space:
mode:
authorDaniel Mack2016-08-22 08:53:36 +0200
committerTakashi Iwai2016-08-22 11:39:42 +0200
commit9abc134167249ded16a8c776813121609610f119 (patch)
treea823e949ac7d66559780d1e9182ad9ec1537d9b4 /sound/usb/quirks.c
parentALSA: seq: obsolete change of address limit (diff)
downloadkernel-qcow2-linux-9abc134167249ded16a8c776813121609610f119.tar.gz
kernel-qcow2-linux-9abc134167249ded16a8c776813121609610f119.tar.xz
kernel-qcow2-linux-9abc134167249ded16a8c776813121609610f119.zip
ALSA: usb: move udh01_fb_quirk setting to quirks.c
That's a quirk, after all, so move it where to all the other quirks live. Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/quirks.c')
-rw-r--r--sound/usb/quirks.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index 6cf1f3597455..299813f30630 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1216,6 +1216,11 @@ void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep)
ep->chip->usb_id == USB_ID(0x0763, 0x2031)) &&
ep->type == SND_USB_ENDPOINT_TYPE_DATA)
ep->skip_packets = 16;
+
+ /* Work around devices that report unreasonable feedback data */
+ if (ep->chip->usb_id == USB_ID(0x0644, 0x8038) /* TEAC UD-H01 */ &&
+ ep->syncmaxsize == 4)
+ ep->udh01_fb_quirk = 1;
}
void snd_usb_set_interface_quirk(struct usb_device *dev)