diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/usb/pcm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 946f89883ae0..26d6d63c50eb 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -311,6 +311,9 @@ static int search_roland_implicit_fb(struct usb_device *dev, int ifnum, return 0; } +/* Setup an implicit feedback endpoint from a quirk. Returns 0 if no quirk + * applies. Returns 1 if a quirk was found. + */ static int set_sync_ep_implicit_fb_quirk(struct snd_usb_substream *subs, struct usb_device *dev, struct usb_interface_descriptor *altsd, @@ -370,7 +373,7 @@ add_sync_ep: subs->data_endpoint->sync_master = subs->sync_endpoint; - return 0; + return 1; } static int set_sync_endpoint(struct snd_usb_substream *subs, @@ -395,6 +398,10 @@ static int set_sync_endpoint(struct snd_usb_substream *subs, if (err < 0) return err; + /* endpoint set by quirk */ + if (err > 0) + return 0; + if (altsd->bNumEndpoints < 2) return 0; |