Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
aloop.c File Reference
#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/info.h>
#include <sound/initval.h>

Go to the source code of this file.

Data Structures

struct  loopback_cable
 
struct  loopback_setup
 
struct  loopback
 
struct  loopback_pcm
 

Macros

#define MAX_PCM_SUBSTREAMS   8
 
#define NO_PITCH   100000
 
#define CABLE_VALID_PLAYBACK   (1 << SNDRV_PCM_STREAM_PLAYBACK)
 
#define CABLE_VALID_CAPTURE   (1 << SNDRV_PCM_STREAM_CAPTURE)
 
#define CABLE_VALID_BOTH   (CABLE_VALID_PLAYBACK|CABLE_VALID_CAPTURE)
 
#define ACTIVE_IDX   2
 
#define FORMAT_IDX   3
 
#define RATE_IDX   4
 
#define CHANNELS_IDX   5
 
#define loopback_proc_new(loopback, cidx)   do { } while (0)
 
#define LOOPBACK_PM_OPS   NULL
 
#define SND_LOOPBACK_DRIVER   "snd_aloop"
 

Functions

 MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>")
 
 MODULE_DESCRIPTION ("A loopback soundcard")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{ALSA,Loopback soundcard}}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for loopback soundcard.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for loopback soundcard.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable this loopback soundcard.")
 
 module_param_array (pcm_substreams, int, NULL, 0444)
 
 MODULE_PARM_DESC (pcm_substreams,"PCM substreams # (1-8) for loopback driver.")
 
 module_param_array (pcm_notify, int, NULL, 0444)
 
 MODULE_PARM_DESC (pcm_notify,"Break capture when PCM format/rate/channels changes.")
 

Macro Definition Documentation

#define ACTIVE_IDX   2
#define CABLE_VALID_BOTH   (CABLE_VALID_PLAYBACK|CABLE_VALID_CAPTURE)

Definition at line 200 of file aloop.c.

#define CABLE_VALID_CAPTURE   (1 << SNDRV_PCM_STREAM_CAPTURE)

Definition at line 199 of file aloop.c.

#define CABLE_VALID_PLAYBACK   (1 << SNDRV_PCM_STREAM_PLAYBACK)

Definition at line 198 of file aloop.c.

#define CHANNELS_IDX   5
#define FORMAT_IDX   3
#define LOOPBACK_PM_OPS   NULL

Definition at line 1209 of file aloop.c.

#define loopback_proc_new (   loopback,
  cidx 
)    do { } while (0)

Definition at line 1129 of file aloop.c.

#define MAX_PCM_SUBSTREAMS   8

Definition at line 50 of file aloop.c.

#define NO_PITCH   100000

Definition at line 69 of file aloop.c.

#define RATE_IDX   4
#define SND_LOOPBACK_DRIVER   "snd_aloop"

Definition at line 1212 of file aloop.c.

Function Documentation

MODULE_AUTHOR ( "Jaroslav Kysela <[email protected]>"  )
MODULE_DESCRIPTION ( "A loopback soundcard"  )
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_param_array ( pcm_substreams  ,
int  ,
NULL  ,
0444   
)
module_param_array ( pcm_notify  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for loopback soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for loopback soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"Enable this loopback soundcard."   
)
MODULE_PARM_DESC ( pcm_substreams  ,
"PCM substreams # (1-8) for loopback driver."   
)
MODULE_PARM_DESC ( pcm_notify  ,
"Break capture when PCM format/rate/channels changes."   
)
MODULE_SUPPORTED_DEVICE ( "{{ALSA,Loopback soundcard}}"  )