Daniel Mack | e577999 | 2010-03-04 19:46:13 +0100 | [diff] [blame] | 1 | #ifndef __USBAUDIO_QUIRKS_H |
| 2 | #define __USBAUDIO_QUIRKS_H |
| 3 | |
Daniel Mack | 2b58fd5 | 2012-09-04 10:23:07 +0200 | [diff] [blame] | 4 | struct audioformat; |
| 5 | struct snd_usb_endpoint; |
| 6 | struct snd_usb_substream; |
| 7 | |
Daniel Mack | e577999 | 2010-03-04 19:46:13 +0100 | [diff] [blame] | 8 | int snd_usb_create_quirk(struct snd_usb_audio *chip, |
| 9 | struct usb_interface *iface, |
| 10 | struct usb_driver *driver, |
| 11 | const struct snd_usb_audio_quirk *quirk); |
| 12 | |
| 13 | int snd_usb_apply_interface_quirk(struct snd_usb_audio *chip, |
| 14 | int iface, |
| 15 | int altno); |
| 16 | |
| 17 | int snd_usb_apply_boot_quirk(struct usb_device *dev, |
| 18 | struct usb_interface *intf, |
Takashi Iwai | 79289e2 | 2016-01-11 11:33:34 +0100 | [diff] [blame] | 19 | const struct snd_usb_audio_quirk *quirk, |
| 20 | unsigned int usb_id); |
Daniel Mack | e577999 | 2010-03-04 19:46:13 +0100 | [diff] [blame] | 21 | |
| 22 | void snd_usb_set_format_quirk(struct snd_usb_substream *subs, |
| 23 | struct audioformat *fmt); |
| 24 | |
Joe Turner | b62b998 | 2015-02-16 20:44:33 +0000 | [diff] [blame] | 25 | bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip); |
| 26 | |
Daniel Mack | e577999 | 2010-03-04 19:46:13 +0100 | [diff] [blame] | 27 | int snd_usb_is_big_endian_format(struct snd_usb_audio *chip, |
| 28 | struct audioformat *fp); |
| 29 | |
Daniel Mack | 2b58fd5 | 2012-09-04 10:23:07 +0200 | [diff] [blame] | 30 | void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep); |
| 31 | |
Daniel Mack | 21bb5aa | 2013-04-10 00:56:03 +0800 | [diff] [blame] | 32 | void snd_usb_set_interface_quirk(struct usb_device *dev); |
Daniel Mack | 2b58fd5 | 2012-09-04 10:23:07 +0200 | [diff] [blame] | 33 | void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe, |
| 34 | __u8 request, __u8 requesttype, __u16 value, |
| 35 | __u16 index, void *data, __u16 size); |
| 36 | |
Jurgen Kramer | 6874daa | 2014-11-28 17:32:54 +0100 | [diff] [blame] | 37 | int snd_usb_select_mode_quirk(struct snd_usb_substream *subs, |
| 38 | struct audioformat *fmt); |
| 39 | |
Daniel Mack | 126825e | 2013-04-17 00:01:40 +0800 | [diff] [blame] | 40 | u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip, |
| 41 | struct audioformat *fp, |
| 42 | unsigned int sample_bytes); |
| 43 | |
Daniel Mack | e577999 | 2010-03-04 19:46:13 +0100 | [diff] [blame] | 44 | #endif /* __USBAUDIO_QUIRKS_H */ |