aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/clock.c
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-04-09 12:56:03 -0400
committerTakashi Iwai <tiwai@suse.de>2013-04-10 03:21:43 -0400
commit21bb5aafce4350e243f9be3d981c0beb2e2c5ab4 (patch)
tree41dfd36deccedeff13266cb71b0b79b69c830130 /sound/usb/clock.c
parent78daea29f2e5312bce9d7781a5400026b71ed29b (diff)
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/clock.c')
-rw-r--r--sound/usb/clock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c
index ae35e7d22e73..b0ec3643eb62 100644
--- a/sound/usb/clock.c
+++ b/sound/usb/clock.c
@@ -32,6 +32,7 @@
32#include "card.h" 32#include "card.h"
33#include "helper.h" 33#include "helper.h"
34#include "clock.h" 34#include "clock.h"
35#include "quirks.h"
35 36
36static struct uac_clock_source_descriptor * 37static struct uac_clock_source_descriptor *
37 snd_usb_find_clock_source(struct usb_host_interface *ctrl_iface, 38 snd_usb_find_clock_source(struct usb_host_interface *ctrl_iface,
@@ -392,7 +393,9 @@ static int set_sample_rate_v2(struct snd_usb_audio *chip, int iface,
392 * interface is active. */ 393 * interface is active. */
393 if (rate != prev_rate) { 394 if (rate != prev_rate) {
394 usb_set_interface(dev, iface, 0); 395 usb_set_interface(dev, iface, 0);
396 snd_usb_set_interface_quirk(dev);
395 usb_set_interface(dev, iface, fmt->altsetting); 397 usb_set_interface(dev, iface, fmt->altsetting);
398 snd_usb_set_interface_quirk(dev);
396 } 399 }
397 400
398 return 0; 401 return 0;