Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
saa7134-alsa.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/initval.h>
#include <linux/interrupt.h>
#include "saa7134.h"
#include "saa7134-reg.h"

Go to the source code of this file.

Data Structures

struct  snd_card_saa7134
 
struct  snd_card_saa7134_pcm
 

Macros

#define MIXER_ADDR_UNSELECTED   -1
 
#define MIXER_ADDR_TVTUNER   0
 
#define MIXER_ADDR_LINE1   1
 
#define MIXER_ADDR_LINE2   2
 
#define MIXER_ADDR_LAST   2
 
#define dprintk(fmt, arg...)
 
#define SAA713x_VOLUME(xname, xindex, addr)
 
#define SAA713x_CAPSRC(xname, xindex, addr)
 

Typedefs

typedef struct snd_card_saa7134 snd_card_saa7134_t
 
typedef struct snd_card_saa7134_pcm snd_card_saa7134_pcm_t
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable debug messages [alsa]")
 
 module_param_array (index, int, NULL, 0444)
 
 module_param_array (enable, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for SAA7134 capture interface(s).")
 
 MODULE_PARM_DESC (enable,"Enable (or not) the SAA7134 capture interface(s).")
 
 late_initcall (saa7134_alsa_init)
 
 module_exit (saa7134_alsa_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Ricardo Cerqueira")
 

Macro Definition Documentation

#define dprintk (   fmt,
  arg... 
)
Value:
if (debug) \
printk(KERN_DEBUG "%s/alsa: " fmt, dev->name , ##arg)

Definition at line 59 of file saa7134-alsa.c.

#define MIXER_ADDR_LAST   2

Definition at line 47 of file saa7134-alsa.c.

#define MIXER_ADDR_LINE1   1

Definition at line 45 of file saa7134-alsa.c.

#define MIXER_ADDR_LINE2   2

Definition at line 46 of file saa7134-alsa.c.

#define MIXER_ADDR_TVTUNER   0

Definition at line 44 of file saa7134-alsa.c.

#define MIXER_ADDR_UNSELECTED   -1

Definition at line 43 of file saa7134-alsa.c.

#define SAA713x_CAPSRC (   xname,
  xindex,
  addr 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \
.info = snd_saa7134_capsrc_info, \
.get = snd_saa7134_capsrc_get, .put = snd_saa7134_capsrc_put, \
.private_value = addr }

Definition at line 942 of file saa7134-alsa.c.

#define SAA713x_VOLUME (   xname,
  xindex,
  addr 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \
.info = snd_saa7134_volume_info, \
.get = snd_saa7134_volume_get, .put = snd_saa7134_volume_put, \
.private_value = addr }

Definition at line 845 of file saa7134-alsa.c.

Typedef Documentation

Function Documentation

late_initcall ( saa7134_alsa_init  )
MODULE_AUTHOR ( "Ricardo Cerqueira"  )
module_exit ( saa7134_alsa_exit  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( enable  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( debug  ,
"enable debug messages "  [alsa] 
)
MODULE_PARM_DESC ( index  ,
"Index value for SAA7134 capture interface(s)."   
)
MODULE_PARM_DESC ( enable  ,
"Enable (or not) the SAA7134 capture interface(s)."   
)