~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/usb/quirks.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 #ifndef __USBAUDIO_QUIRKS_H
  3 #define __USBAUDIO_QUIRKS_H
  4 
  5 struct audioformat;
  6 struct snd_usb_endpoint;
  7 struct snd_usb_substream;
  8 
  9 int snd_usb_create_quirk(struct snd_usb_audio *chip,
 10                          struct usb_interface *iface,
 11                          struct usb_driver *driver,
 12                          const struct snd_usb_audio_quirk *quirk);
 13 
 14 int snd_usb_apply_interface_quirk(struct snd_usb_audio *chip,
 15                                   int iface,
 16                                   int altno);
 17 
 18 int snd_usb_apply_boot_quirk(struct usb_device *dev,
 19                              struct usb_interface *intf,
 20                              const struct snd_usb_audio_quirk *quirk,
 21                              unsigned int usb_id);
 22 
 23 int snd_usb_apply_boot_quirk_once(struct usb_device *dev,
 24                                   struct usb_interface *intf,
 25                                   const struct snd_usb_audio_quirk *quirk,
 26                                   unsigned int usb_id);
 27 
 28 void snd_usb_set_format_quirk(struct snd_usb_substream *subs,
 29                               const struct audioformat *fmt);
 30 
 31 int snd_usb_is_big_endian_format(struct snd_usb_audio *chip,
 32                                  const struct audioformat *fp);
 33 
 34 void snd_usb_endpoint_start_quirk(struct snd_usb_endpoint *ep);
 35 
 36 void snd_usb_ctl_msg_quirk(struct usb_device *dev, unsigned int pipe,
 37                            __u8 request, __u8 requesttype, __u16 value,
 38                            __u16 index, void *data, __u16 size);
 39 
 40 int snd_usb_select_mode_quirk(struct snd_usb_audio *chip,
 41                               const struct audioformat *fmt);
 42 
 43 u64 snd_usb_interface_dsd_format_quirks(struct snd_usb_audio *chip,
 44                                         struct audioformat *fp,
 45                                         unsigned int sample_bytes);
 46 
 47 void snd_usb_audioformat_attributes_quirk(struct snd_usb_audio *chip,
 48                                           struct audioformat *fp,
 49                                           int stream);
 50 
 51 void snd_usb_init_quirk_flags(struct snd_usb_audio *chip);
 52 
 53 #endif /* __USBAUDIO_QUIRKS_H */
 54 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php