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

Go to the source code of this file.

Data Structures

struct  caiaq_device_spec
 
struct  snd_usb_caiaqdev
 
struct  snd_usb_caiaq_cb_info
 

Macros

#define USB_VID_NATIVEINSTRUMENTS   0x17cc
 
#define USB_PID_RIGKONTROL2   0x1969
 
#define USB_PID_RIGKONTROL3   0x1940
 
#define USB_PID_KORECONTROLLER   0x4711
 
#define USB_PID_KORECONTROLLER2   0x4712
 
#define USB_PID_AK1   0x0815
 
#define USB_PID_AUDIO2DJ   0x041c
 
#define USB_PID_AUDIO4DJ   0x0839
 
#define USB_PID_AUDIO8DJ   0x1978
 
#define USB_PID_SESSIONIO   0x1915
 
#define USB_PID_GUITARRIGMOBILE   0x0d8d
 
#define USB_PID_TRAKTORKONTROLX1   0x2305
 
#define USB_PID_TRAKTORKONTROLS4   0xbaff
 
#define USB_PID_TRAKTORAUDIO2   0x041d
 
#define USB_PID_MASCHINECONTROLLER   0x0808
 
#define EP1_BUFSIZE   64
 
#define EP4_BUFSIZE   512
 
#define CAIAQ_USB_STR_LEN   0xff
 
#define MAX_STREAMS   32
 
#define MODNAME   "snd-usb-caiaq"
 
#define log(x...)   snd_printk(KERN_WARNING MODNAME" log: " x)
 
#define debug(x...)   do { } while(0)
 
#define EP1_CMD_GET_DEVICE_INFO   0x1
 
#define EP1_CMD_READ_ERP   0x2
 
#define EP1_CMD_READ_ANALOG   0x3
 
#define EP1_CMD_READ_IO   0x4
 
#define EP1_CMD_WRITE_IO   0x5
 
#define EP1_CMD_MIDI_READ   0x6
 
#define EP1_CMD_MIDI_WRITE   0x7
 
#define EP1_CMD_AUDIO_PARAMS   0x9
 
#define EP1_CMD_AUTO_MSG   0xb
 
#define EP1_CMD_DIMM_LEDS   0xc
 
#define caiaqdev(c)   ((struct snd_usb_caiaqdev*)(c)->private_data)
 

Functions

struct caiaq_device_spec __attribute__ ((packed))
 
int snd_usb_caiaq_set_audio_params (struct snd_usb_caiaqdev *dev, int rate, int depth, int bbp)
 
int snd_usb_caiaq_set_auto_msg (struct snd_usb_caiaqdev *dev, int digital, int analog, int erp)
 
int snd_usb_caiaq_send_command (struct snd_usb_caiaqdev *dev, unsigned char command, const unsigned char *buffer, int len)
 

Variables

unsigned short fw_version
 
unsigned char hw_subtype
 
unsigned char num_erp
 
unsigned char num_analog_in
 
unsigned char num_digital_in
 
unsigned char num_digital_out
 
unsigned char num_analog_audio_out
 
unsigned char num_analog_audio_in
 
unsigned char num_digital_audio_out
 
unsigned char num_digital_audio_in
 
unsigned char num_midi_out
 
unsigned char num_midi_in
 
unsigned char data_alignment
 
struct snd_usb_caiaqdev __attribute__
 

Macro Definition Documentation

#define CAIAQ_USB_STR_LEN   0xff

Definition at line 25 of file device.h.

#define caiaqdev (   c)    ((struct snd_usb_caiaqdev*)(c)->private_data)

Definition at line 131 of file device.h.

#define debug (   x...)    do { } while(0)

Definition at line 36 of file device.h.

#define EP1_BUFSIZE   64

Definition at line 23 of file device.h.

#define EP1_CMD_AUDIO_PARAMS   0x9

Definition at line 46 of file device.h.

#define EP1_CMD_AUTO_MSG   0xb

Definition at line 47 of file device.h.

#define EP1_CMD_DIMM_LEDS   0xc

Definition at line 48 of file device.h.

#define EP1_CMD_GET_DEVICE_INFO   0x1

Definition at line 39 of file device.h.

#define EP1_CMD_MIDI_READ   0x6

Definition at line 44 of file device.h.

#define EP1_CMD_MIDI_WRITE   0x7

Definition at line 45 of file device.h.

#define EP1_CMD_READ_ANALOG   0x3

Definition at line 41 of file device.h.

#define EP1_CMD_READ_ERP   0x2

Definition at line 40 of file device.h.

#define EP1_CMD_READ_IO   0x4

Definition at line 42 of file device.h.

#define EP1_CMD_WRITE_IO   0x5

Definition at line 43 of file device.h.

#define EP4_BUFSIZE   512

Definition at line 24 of file device.h.

#define log (   x...)    snd_printk(KERN_WARNING MODNAME" log: " x)

Definition at line 31 of file device.h.

#define MAX_STREAMS   32

Definition at line 26 of file device.h.

#define MODNAME   "snd-usb-caiaq"

Definition at line 30 of file device.h.

#define USB_PID_AK1   0x0815

Definition at line 12 of file device.h.

#define USB_PID_AUDIO2DJ   0x041c

Definition at line 13 of file device.h.

#define USB_PID_AUDIO4DJ   0x0839

Definition at line 14 of file device.h.

#define USB_PID_AUDIO8DJ   0x1978

Definition at line 15 of file device.h.

#define USB_PID_GUITARRIGMOBILE   0x0d8d

Definition at line 17 of file device.h.

#define USB_PID_KORECONTROLLER   0x4711

Definition at line 10 of file device.h.

#define USB_PID_KORECONTROLLER2   0x4712

Definition at line 11 of file device.h.

#define USB_PID_MASCHINECONTROLLER   0x0808

Definition at line 21 of file device.h.

#define USB_PID_RIGKONTROL2   0x1969

Definition at line 8 of file device.h.

#define USB_PID_RIGKONTROL3   0x1940

Definition at line 9 of file device.h.

#define USB_PID_SESSIONIO   0x1915

Definition at line 16 of file device.h.

#define USB_PID_TRAKTORAUDIO2   0x041d

Definition at line 20 of file device.h.

#define USB_PID_TRAKTORKONTROLS4   0xbaff

Definition at line 19 of file device.h.

#define USB_PID_TRAKTORKONTROLX1   0x2305

Definition at line 18 of file device.h.

#define USB_VID_NATIVEINSTRUMENTS   0x17cc

Definition at line 6 of file device.h.

Function Documentation

struct caiaq_device_spec __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

int snd_usb_caiaq_send_command ( struct snd_usb_caiaqdev dev,
unsigned char  command,
const unsigned char buffer,
int  len 
)

Definition at line 215 of file device.c.

int snd_usb_caiaq_set_audio_params ( struct snd_usb_caiaqdev dev,
int  rate,
int  depth,
int  bbp 
)

Definition at line 237 of file device.c.

int snd_usb_caiaq_set_auto_msg ( struct snd_usb_caiaqdev dev,
int  digital,
int  analog,
int  erp 
)

Definition at line 284 of file device.c.

Variable Documentation

unsigned char data_alignment

Definition at line 77 of file device.h.

unsigned short fw_version

Definition at line 65 of file device.h.

unsigned char hw_subtype

Definition at line 66 of file device.h.

unsigned char num_analog_audio_in

Definition at line 72 of file device.h.

unsigned char num_analog_audio_out

Definition at line 71 of file device.h.

unsigned char num_analog_in

Definition at line 68 of file device.h.

unsigned char num_digital_audio_in

Definition at line 74 of file device.h.

unsigned char num_digital_audio_out

Definition at line 73 of file device.h.

unsigned char num_digital_in

Definition at line 69 of file device.h.

unsigned char num_digital_out

Definition at line 70 of file device.h.

unsigned char num_erp

Definition at line 67 of file device.h.

unsigned char num_midi_in

Definition at line 76 of file device.h.

unsigned char num_midi_out

Definition at line 75 of file device.h.