Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ua101.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/usb/audio.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include "../usbaudio.h"
#include "../midi.h"

Go to the source code of this file.

Data Structures

struct  ua101
 
struct  ua101::ua101_stream
 
struct  ua101::ua101_stream::ua101_urb
 

Macros

#define MIN_QUEUE_LENGTH   12
 
#define MAX_QUEUE_LENGTH   30
 
#define DEFAULT_QUEUE_LENGTH   21
 
#define MAX_PACKET_SIZE   672 /* hardware specific */
 
#define MAX_MEMORY_BUFFERS
 

Enumerations

enum  { INTF_PLAYBACK, INTF_CAPTURE, INTF_MIDI, INTF_COUNT }
 
enum  {
  USB_CAPTURE_RUNNING, USB_PLAYBACK_RUNNING, ALSA_CAPTURE_OPEN, ALSA_PLAYBACK_OPEN,
  ALSA_CAPTURE_RUNNING, ALSA_PLAYBACK_RUNNING, CAPTURE_URB_COMPLETED, PLAYBACK_URB_COMPLETED,
  DISCONNECTED
}
 

Functions

 MODULE_DESCRIPTION ("Edirol UA-101/1000 driver")
 
 MODULE_AUTHOR ("Clemens Ladisch <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_SUPPORTED_DEVICE ("{{Edirol,UA-101},{Edirol,UA-1000}}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"card index")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"enable card")
 
 module_param (queue_length, uint, 0644)
 
 MODULE_PARM_DESC (queue_length,"USB queue length in microframes, "__stringify(MIN_QUEUE_LENGTH)"-"__stringify(MAX_QUEUE_LENGTH))
 
 MODULE_DEVICE_TABLE (usb, ua101_ids)
 
 module_usb_driver (ua101_driver)
 

Macro Definition Documentation

#define DEFAULT_QUEUE_LENGTH   21

Definition at line 47 of file ua101.c.

#define MAX_MEMORY_BUFFERS
Value:

Definition at line 50 of file ua101.c.

#define MAX_PACKET_SIZE   672 /* hardware specific */

Definition at line 49 of file ua101.c.

#define MAX_QUEUE_LENGTH   30

Definition at line 41 of file ua101.c.

#define MIN_QUEUE_LENGTH   12

Definition at line 39 of file ua101.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
INTF_PLAYBACK 
INTF_CAPTURE 
INTF_MIDI 
INTF_COUNT 

Definition at line 68 of file ua101.c.

anonymous enum
Enumerator:
USB_CAPTURE_RUNNING 
USB_PLAYBACK_RUNNING 
ALSA_CAPTURE_OPEN 
ALSA_PLAYBACK_OPEN 
ALSA_CAPTURE_RUNNING 
ALSA_PLAYBACK_RUNNING 
CAPTURE_URB_COMPLETED 
PLAYBACK_URB_COMPLETED 
DISCONNECTED 

Definition at line 77 of file ua101.c.

Function Documentation

MODULE_AUTHOR ( "Clemens Ladisch <[email protected]>"  )
MODULE_DESCRIPTION ( "Edirol UA-101/1000 driver )
MODULE_DEVICE_TABLE ( usb  ,
ua101_ids   
)
MODULE_LICENSE ( "GPL v2 )
module_param ( queue_length  ,
uint  ,
0644   
)
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  ,
"card index  
)
MODULE_PARM_DESC ( id  ,
"ID string  
)
MODULE_PARM_DESC ( enable  ,
"enable card  
)
MODULE_PARM_DESC ( queue_length  ,
"USB queue length in  microframes,
__stringifyMIN_QUEUE_LENGTH)"-"__stringify(MAX_QUEUE_LENGTH 
)
MODULE_SUPPORTED_DEVICE ( "{{Edirol,UA-101},{Edirol,UA-1000}}"  )
module_usb_driver ( ua101_driver  )