]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - sound/usb/quirks.h
Merge branch 'drm-tda998x-fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
[mirror_ubuntu-artful-kernel.git] / sound / usb / quirks.h
1 #ifndef __USBAUDIO_QUIRKS_H
2 #define __USBAUDIO_QUIRKS_H
3
4 struct audioformat;
5 struct snd_usb_endpoint;
6 struct snd_usb_substream;
7
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,
19 const struct snd_usb_audio_quirk *quirk);
20
21 void snd_usb_set_format_quirk(struct snd_usb_substream *subs,
22 struct audioformat *fmt);
23
24 bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip);
25
26 int snd_usb_is_big_endian_format(struct snd_usb_audio *chip,
27 struct audioformat *fp);
28
29 void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep);
30
31 void snd_usb_set_interface_quirk(struct usb_device *dev);
32 void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe,
33 __u8 request, __u8 requesttype, __u16 value,
34 __u16 index, void *data, __u16 size);
35
36 int snd_usb_select_mode_quirk(struct snd_usb_substream *subs,
37 struct audioformat *fmt);
38
39 u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
40 struct audioformat *fp,
41 unsigned int sample_bytes);
42
43 #endif /* __USBAUDIO_QUIRKS_H */