Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
helper.h File Reference

Go to the source code of this file.

Macros

#define get_iface_desc(iface)   (&(iface)->desc)
 
#define get_endpoint(alt, ep)   (&(alt)->endpoint[ep].desc)
 
#define get_ep_desc(ep)   (&(ep)->desc)
 
#define get_cfg_desc(cfg)   (&(cfg)->desc)
 
#define snd_usb_get_speed(dev)   ((dev)->speed)
 

Functions

unsigned int snd_usb_combine_bytes (unsigned char *bytes, int size)
 
voidsnd_usb_find_desc (void *descstart, int desclen, void *after, u8 dtype)
 
voidsnd_usb_find_csint_desc (void *descstart, int desclen, void *after, u8 dsubtype)
 
int snd_usb_ctl_msg (struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype, __u16 value, __u16 index, void *data, __u16 size)
 
unsigned char snd_usb_parse_datainterval (struct snd_usb_audio *chip, struct usb_host_interface *alts)
 

Macro Definition Documentation

#define get_cfg_desc (   cfg)    (&(cfg)->desc)

Definition at line 24 of file helper.h.

#define get_endpoint (   alt,
  ep 
)    (&(alt)->endpoint[ep].desc)

Definition at line 22 of file helper.h.

#define get_ep_desc (   ep)    (&(ep)->desc)

Definition at line 23 of file helper.h.

#define get_iface_desc (   iface)    (&(iface)->desc)

Definition at line 21 of file helper.h.

#define snd_usb_get_speed (   dev)    ((dev)->speed)

Definition at line 28 of file helper.h.

Function Documentation

unsigned int snd_usb_combine_bytes ( unsigned char bytes,
int  size 
)

Definition at line 29 of file helper.c.

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

Definition at line 83 of file helper.c.

void* snd_usb_find_csint_desc ( void descstart,
int  desclen,
void after,
u8  dsubtype 
)

Definition at line 67 of file helper.c.

void* snd_usb_find_desc ( void descstart,
int  desclen,
void after,
u8  dtype 
)

Definition at line 44 of file helper.c.

unsigned char snd_usb_parse_datainterval ( struct snd_usb_audio chip,
struct usb_host_interface *  alts 
)

Definition at line 108 of file helper.c.