Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
device.c File Reference
#include <linux/moduleparam.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/gfp.h>
#include <linux/usb.h>
#include <sound/initval.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include "device.h"
#include "audio.h"
#include "midi.h"
#include "control.h"
#include "input.h"

Go to the source code of this file.

Enumerations

enum  {
  SAMPLERATE_44100 = 0, SAMPLERATE_48000 = 1, SAMPLERATE_96000 = 2, SAMPLERATE_192000 = 3,
  SAMPLERATE_88200 = 4, SAMPLERATE_INVALID = 0xff
}
 
enum  { DEPTH_NONE = 0, DEPTH_16 = 1, DEPTH_24 = 2, DEPTH_32 = 3 }
 

Functions

 MODULE_AUTHOR ("Daniel Mack <[email protected]>")
 
 MODULE_DESCRIPTION ("caiaq USB audio")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{Native Instruments, RigKontrol2},""{Native Instruments, RigKontrol3},""{Native Instruments, Kore Controller},""{Native Instruments, Kore Controller 2},""{Native Instruments, Audio Kontrol 1},""{Native Instruments, Audio 2 DJ},""{Native Instruments, Audio 4 DJ},""{Native Instruments, Audio 8 DJ},""{Native Instruments, Traktor Audio 2},""{Native Instruments, Session I/O},""{Native Instruments, GuitarRig mobile}""{Native Instruments, Traktor Kontrol X1}""{Native Instruments, Traktor Kontrol S4}""{Native Instruments, Maschine Controller}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for the caiaq sound device")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for the caiaq soundcard.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable the caiaq soundcard.")
 
int snd_usb_caiaq_send_command (struct snd_usb_caiaqdev *dev, unsigned char command, const unsigned char *buffer, int len)
 
int snd_usb_caiaq_set_audio_params (struct snd_usb_caiaqdev *dev, int rate, int depth, int bpp)
 
int snd_usb_caiaq_set_auto_msg (struct snd_usb_caiaqdev *dev, int digital, int analog, int erp)
 
 MODULE_DEVICE_TABLE (usb, snd_usb_id_table)
 
 module_usb_driver (snd_usb_driver)
 

Enumeration Type Documentation

anonymous enum
Enumerator:
SAMPLERATE_44100 
SAMPLERATE_48000 
SAMPLERATE_96000 
SAMPLERATE_192000 
SAMPLERATE_88200 
SAMPLERATE_INVALID 

Definition at line 68 of file device.c.

anonymous enum
Enumerator:
DEPTH_NONE 
DEPTH_16 
DEPTH_24 
DEPTH_32 

Definition at line 77 of file device.c.

Function Documentation

MODULE_AUTHOR ( "Daniel Mack <[email protected]>"  )
MODULE_DESCRIPTION ( "caiaq USB audio )
MODULE_DEVICE_TABLE ( usb  ,
snd_usb_id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( id  ,
charp  ,
NULL  ,
0444   
)
module_param_array ( enable  ,
bool  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for the caiaq sound device  
)
MODULE_PARM_DESC ( id  ,
"ID string for the caiaq soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"Enable the caiaq soundcard."   
)
MODULE_SUPPORTED_DEVICE ( )
module_usb_driver ( snd_usb_driver  )
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  bpp 
)

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.