#ifndef __USBAUDIO_QUIRKS_H
#define __USBAUDIO_QUIRKS_H

struct audioformat;
struct snd_usb_endpoint;
struct snd_usb_substream;

int snd_usb_create_quirk(struct snd_usb_audio *chip,
			 struct usb_interface *iface,
			 struct usb_driver *driver,
			 const struct snd_usb_audio_quirk *quirk);

int snd_usb_apply_interface_quirk(struct snd_usb_audio *chip,
				  int iface,
				  int altno);

int snd_usb_apply_boot_quirk(struct usb_device *dev,
			     struct usb_interface *intf,
			     const struct snd_usb_audio_quirk *quirk,
			     unsigned int usb_id);

void snd_usb_set_format_quirk(struct snd_usb_substream *subs,
			      struct audioformat *fmt);

bool snd_usb_get_sample_rate_quirk(struct snd_usb_audio *chip);

int snd_usb_is_big_endian_format(struct snd_usb_audio *chip,
				 struct audioformat *fp);

void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep);

void snd_usb_set_interface_quirk(struct usb_device *dev);
void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe,
			   __u8 request, __u8 requesttype, __u16 value,
			   __u16 index, void *data, __u16 size);

int snd_usb_select_mode_quirk(struct snd_usb_substream *subs,
			      struct audioformat *fmt);

u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
					struct audioformat *fp,
					unsigned int sample_bytes);

#endif /* __USBAUDIO_QUIRKS_H */
/td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/sound/oss/sb_mixer.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/sound/oss/sb_mixer.c?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/sound/oss/sb_mixer.c?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/sound/oss/sb_mixer.c?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/sound/oss/sb_mixer.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>sound</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/oss?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>oss</a>/<a href='/cgit.cgi/linux/net-next.git/log/sound/oss/sb_mixer.c?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2'>sb_mixer.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/sound/oss/sb_mixer.c?h=nds-private-remove&amp;id=04cdf13e34e912dcab9a94f391e15b2c26dfd0a2&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>