From: Daniel Mack Date: Sun, 17 Mar 2013 12:07:26 +0000 (+0800) Subject: ALSA: snd-usb: add delay quirk for "Playback Design" products X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~12608^2~83 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0959f22ee66734c212fc733f7616ba321ef7f47f;p=mirror_ubuntu-artful-kernel.git ALSA: snd-usb: add delay quirk for "Playback Design" products "Playback Design" products need a 50ms delay after setting the USB interface. Signed-off-by: Daniel Mack Reported-by: Andreas Koch Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index f94397b42aa5..c263991b3b9d 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -350,6 +350,13 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt) fmt->iface, fmt->altsetting); subs->interface = fmt->iface; subs->altset_idx = fmt->altset_idx; + + /* + * "Playback Design" products need a 50ms delay after setting the + * USB interface. + */ + if (le16_to_cpu(dev->descriptor.idVendor) == 0x23ba) + mdelay(50); } subs->data_endpoint = snd_usb_add_endpoint(subs->stream->chip,