diff options
author | Daniel Mack <zonque@gmail.com> | 2013-04-09 18:56:03 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-10 09:21:43 +0200 |
commit | 21bb5aafce4350e243f9be3d981c0beb2e2c5ab4 (patch) | |
tree | 41dfd36deccedeff13266cb71b0b79b69c830130 /sound/usb/pcm.c | |
parent | ALSA: hda - Apply codec delay to wallclock. (diff) | |
download | linux-21bb5aafce4350e243f9be3d981c0beb2e2c5ab4.tar.xz linux-21bb5aafce4350e243f9be3d981c0beb2e2c5ab4.zip |
ALSA: snd-usb: Playback Design: use usb_set_inferface quirk from more locations
It turns out the devices from Playback Design need the delay quirk
after usb_set_interface from clocks.c as well. Make it a proper
quirks function and factor out the code to quirks.c.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/pcm.c')
-rw-r--r-- | sound/usb/pcm.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 754cb5bb1f79..815a37d2e3e0 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -349,12 +349,7 @@ static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt) 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); + snd_usb_set_interface_quirk(dev); } subs->data_endpoint = snd_usb_add_endpoint(subs->stream->chip, |