Skip to content

Commit

Permalink
ALSA: usb: move udh01_fb_quirk setting to quirks.c
Browse files Browse the repository at this point in the history
That's a quirk, after all, so move it where to all the other quirks
live.

Signed-off-by: Daniel Mack <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
zonque authored and tiwai committed Aug 22, 2016
1 parent e12ec25 commit 9abc134
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/usb/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,6 @@ struct snd_usb_endpoint *snd_usb_add_endpoint(struct snd_usb_audio *chip,
ep->syncinterval = 3;

ep->syncmaxsize = le16_to_cpu(get_endpoint(alts, 1)->wMaxPacketSize);

if (chip->usb_id == USB_ID(0x0644, 0x8038) /* TEAC UD-H01 */ &&
ep->syncmaxsize == 4)
ep->udh01_fb_quirk = 1;
}

list_add_tail(&ep->list, &chip->ep_list);
Expand Down
5 changes: 5 additions & 0 deletions sound/usb/quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9abc134

Please sign in to comment.