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

Go to the source code of this file.

Data Structures

struct  snd_usb_audio
 
struct  snd_usb_audio_quirk
 

Macros

#define USB_ID(vendor, product)   (((vendor) << 16) | (product))
 
#define USB_ID_VENDOR(id)   ((id) >> 16)
 
#define USB_ID_PRODUCT(id)   ((u16)(id))
 
#define QUIRK_NO_INTERFACE   -2
 
#define QUIRK_ANY_INTERFACE   -1
 
#define combine_word(s)   ((*(s)) | ((unsigned int)(s)[1] << 8))
 
#define combine_triple(s)   (combine_word(s) | ((unsigned int)(s)[2] << 16))
 
#define combine_quad(s)   (combine_triple(s) | ((unsigned int)(s)[3] << 24))
 

Enumerations

enum  quirk_type {
  QUIRK_IGNORE_INTERFACE, QUIRK_COMPOSITE, QUIRK_MIDI_STANDARD_INTERFACE, QUIRK_MIDI_FIXED_ENDPOINT,
  QUIRK_MIDI_YAMAHA, QUIRK_MIDI_MIDIMAN, QUIRK_MIDI_NOVATION, QUIRK_MIDI_RAW_BYTES,
  QUIRK_MIDI_EMAGIC, QUIRK_MIDI_CME, QUIRK_MIDI_AKAI, QUIRK_MIDI_US122L,
  QUIRK_MIDI_FTDI, QUIRK_AUDIO_STANDARD_INTERFACE, QUIRK_AUDIO_FIXED_ENDPOINT, QUIRK_AUDIO_EDIROL_UAXX,
  QUIRK_AUDIO_ALIGN_TRANSFER, QUIRK_AUDIO_STANDARD_MIXER, QUIRK_TYPE_COUNT
}
 

Macro Definition Documentation

#define combine_quad (   s)    (combine_triple(s) | ((unsigned int)(s)[3] << 24))

Definition at line 105 of file usbaudio.h.

#define combine_triple (   s)    (combine_word(s) | ((unsigned int)(s)[2] << 16))

Definition at line 104 of file usbaudio.h.

#define combine_word (   s)    ((*(s)) | ((unsigned int)(s)[1] << 8))

Definition at line 103 of file usbaudio.h.

#define QUIRK_ANY_INTERFACE   -1

Definition at line 70 of file usbaudio.h.

#define QUIRK_NO_INTERFACE   -2

Definition at line 69 of file usbaudio.h.

#define USB_ID (   vendor,
  product 
)    (((vendor) << 16) | (product))

Definition at line 25 of file usbaudio.h.

#define USB_ID_PRODUCT (   id)    ((u16)(id))

Definition at line 27 of file usbaudio.h.

#define USB_ID_VENDOR (   id)    ((id) >> 16)

Definition at line 26 of file usbaudio.h.

Enumeration Type Documentation

enum quirk_type
Enumerator:
QUIRK_IGNORE_INTERFACE 
QUIRK_COMPOSITE 
QUIRK_MIDI_STANDARD_INTERFACE 
QUIRK_MIDI_FIXED_ENDPOINT 
QUIRK_MIDI_YAMAHA 
QUIRK_MIDI_MIDIMAN 
QUIRK_MIDI_NOVATION 
QUIRK_MIDI_RAW_BYTES 
QUIRK_MIDI_EMAGIC 
QUIRK_MIDI_CME 
QUIRK_MIDI_AKAI 
QUIRK_MIDI_US122L 
QUIRK_MIDI_FTDI 
QUIRK_AUDIO_STANDARD_INTERFACE 
QUIRK_AUDIO_FIXED_ENDPOINT 
QUIRK_AUDIO_EDIROL_UAXX 
QUIRK_AUDIO_ALIGN_TRANSFER 
QUIRK_AUDIO_STANDARD_MIXER 
QUIRK_TYPE_COUNT 

Definition at line 72 of file usbaudio.h.