Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions
cmi8330.c File Reference
#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/pnp.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/wss.h>
#include <sound/opl3.h>
#include <sound/mpu401.h>
#include <sound/sb.h>
#include <sound/initval.h>

Go to the source code of this file.

Data Structures

struct  snd_cmi8330
 
struct  snd_cmi8330::snd_cmi8330_stream
 

Macros

#define PLAYBACK_ON_SB
 
#define CMI8330_RMUX3D   16
 
#define CMI8330_MUTEMUX   17
 
#define CMI8330_OUTPUTVOL   18
 
#define CMI8330_MASTVOL   19
 
#define CMI8330_LINVOL   20
 
#define CMI8330_CDINVOL   21
 
#define CMI8330_WAVVOL   22
 
#define CMI8330_RECMUX   23
 
#define CMI8330_WAVGAIN   24
 
#define CMI8330_LINGAIN   25
 
#define CMI8330_CDINGAIN   26
 
#define CMI_SB_STREAM   SNDRV_PCM_STREAM_PLAYBACK
 
#define CMI_AD_STREAM   SNDRV_PCM_STREAM_CAPTURE
 
#define is_isapnp_selected(dev)   0
 
#define PFX   "cmi8330: "
 
#define DEV_NAME   "cmi8330"
 

Typedefs

typedef int(* snd_pcm_open_callback_t )(struct snd_pcm_substream *)
 

Enumerations

enum  card_type {
  UNKNOWN = -1, DC10_old, DC10_new, DC10plus,
  DC30, DC30plus, LML33, LML33R10,
  BUZ, AVS6EYES, NUM_CARDS, F32_2 = 2048,
  F32_8 = 8192, CMI8330, CMI8329, MEDIA_FX,
  SSCAPE, SSCAPE_PNP, SSCAPE_VIVO
}
 

Functions

 MODULE_AUTHOR ("George Talusan <gstalusan@uwaterloo.ca>")
 
 MODULE_DESCRIPTION ("C-Media CMI8330/CMI8329")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{C-Media,CMI8330,isapnp:{CMI0001,@@@0001,@X@0001}}}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for CMI8330/CMI8329 soundcard.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for CMI8330/CMI8329 soundcard.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable CMI8330/CMI8329 soundcard.")
 
 module_param_array (sbport, long, NULL, 0444)
 
 MODULE_PARM_DESC (sbport,"Port # for CMI8330/CMI8329 SB driver.")
 
 module_param_array (sbirq, int, NULL, 0444)
 
 MODULE_PARM_DESC (sbirq,"IRQ # for CMI8330/CMI8329 SB driver.")
 
 module_param_array (sbdma8, int, NULL, 0444)
 
 MODULE_PARM_DESC (sbdma8,"DMA8 for CMI8330/CMI8329 SB driver.")
 
 module_param_array (sbdma16, int, NULL, 0444)
 
 MODULE_PARM_DESC (sbdma16,"DMA16 for CMI8330/CMI8329 SB driver.")
 
 module_param_array (wssport, long, NULL, 0444)
 
 MODULE_PARM_DESC (wssport,"Port # for CMI8330/CMI8329 WSS driver.")
 
 module_param_array (wssirq, int, NULL, 0444)
 
 MODULE_PARM_DESC (wssirq,"IRQ # for CMI8330/CMI8329 WSS driver.")
 
 module_param_array (wssdma, int, NULL, 0444)
 
 MODULE_PARM_DESC (wssdma,"DMA for CMI8330/CMI8329 WSS driver.")
 
 module_param_array (fmport, long, NULL, 0444)
 
 MODULE_PARM_DESC (fmport,"FM port # for CMI8330/CMI8329 driver.")
 
 module_param_array (mpuport, long, NULL, 0444)
 
 MODULE_PARM_DESC (mpuport,"MPU-401 port # for CMI8330/CMI8329 driver.")
 
 module_param_array (mpuirq, int, NULL, 0444)
 
 MODULE_PARM_DESC (mpuirq,"IRQ # for CMI8330/CMI8329 MPU-401 port.")
 

Macro Definition Documentation

#define CMI8330_CDINGAIN   26

Definition at line 135 of file cmi8330.c.

#define CMI8330_CDINVOL   21

Definition at line 130 of file cmi8330.c.

#define CMI8330_LINGAIN   25

Definition at line 134 of file cmi8330.c.

#define CMI8330_LINVOL   20

Definition at line 129 of file cmi8330.c.

#define CMI8330_MASTVOL   19

Definition at line 128 of file cmi8330.c.

#define CMI8330_MUTEMUX   17

Definition at line 126 of file cmi8330.c.

#define CMI8330_OUTPUTVOL   18

Definition at line 127 of file cmi8330.c.

#define CMI8330_RECMUX   23

Definition at line 132 of file cmi8330.c.

#define CMI8330_RMUX3D   16

Definition at line 125 of file cmi8330.c.

#define CMI8330_WAVGAIN   24

Definition at line 133 of file cmi8330.c.

#define CMI8330_WAVVOL   22

Definition at line 131 of file cmi8330.c.

#define CMI_AD_STREAM   SNDRV_PCM_STREAM_CAPTURE

Definition at line 416 of file cmi8330.c.

#define CMI_SB_STREAM   SNDRV_PCM_STREAM_PLAYBACK

Definition at line 415 of file cmi8330.c.

#define DEV_NAME   "cmi8330"

Definition at line 671 of file cmi8330.c.

#define is_isapnp_selected (   dev)    0

Definition at line 512 of file cmi8330.c.

#define PFX   "cmi8330: "

Definition at line 515 of file cmi8330.c.

#define PLAYBACK_ON_SB

Definition at line 61 of file cmi8330.c.

Typedef Documentation

typedef int(* snd_pcm_open_callback_t)(struct snd_pcm_substream *)

Definition at line 156 of file cmi8330.c.

Enumeration Type Documentation

enum card_type
Enumerator:
UNKNOWN 
DC10_old 
DC10_new 
DC10plus 
DC30 
DC30plus 
LML33 
LML33R10 
BUZ 
AVS6EYES 
NUM_CARDS 
F32_2 
F32_8 
CMI8330 
CMI8329 
MEDIA_FX 
SSCAPE 
SSCAPE_PNP 
SSCAPE_VIVO 

Definition at line 158 of file cmi8330.c.

Function Documentation

MODULE_AUTHOR ( "George Talusan <gstalusan@uwaterloo.ca>"  )
MODULE_DESCRIPTION ( "C-Media CMI8330/CMI8329 )
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 ( sbport  ,
long  ,
NULL  ,
0444   
)
module_param_array ( sbirq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( sbdma8  ,
int  ,
NULL  ,
0444   
)
module_param_array ( sbdma16  ,
int  ,
NULL  ,
0444   
)
module_param_array ( wssport  ,
long  ,
NULL  ,
0444   
)
module_param_array ( wssirq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( wssdma  ,
int  ,
NULL  ,
0444   
)
module_param_array ( fmport  ,
long  ,
NULL  ,
0444   
)
module_param_array ( mpuport  ,
long  ,
NULL  ,
0444   
)
module_param_array ( mpuirq  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for CMI8330/CMI8329 soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for CMI8330/CMI8329 soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"Enable CMI8330/CMI8329 soundcard."   
)
MODULE_PARM_DESC ( sbport  ,
"Port # for CMI8330/CMI8329 SB driver."   
)
MODULE_PARM_DESC ( sbirq  ,
"IRQ # for CMI8330/CMI8329 SB driver."   
)
MODULE_PARM_DESC ( sbdma8  ,
"DMA8 for CMI8330/CMI8329 SB driver."   
)
MODULE_PARM_DESC ( sbdma16  ,
"DMA16 for CMI8330/CMI8329 SB driver."   
)
MODULE_PARM_DESC ( wssport  ,
"Port # for CMI8330/CMI8329 WSS driver."   
)
MODULE_PARM_DESC ( wssirq  ,
"IRQ # for CMI8330/CMI8329 WSS driver."   
)
MODULE_PARM_DESC ( wssdma  ,
"DMA for CMI8330/CMI8329 WSS driver."   
)
MODULE_PARM_DESC ( fmport  ,
"FM port # for CMI8330/CMI8329 driver."   
)
MODULE_PARM_DESC ( mpuport  ,
"MPU-401 port # for CMI8330/CMI8329 driver."   
)
MODULE_PARM_DESC ( mpuirq  ,
"IRQ # for CMI8330/CMI8329 MPU-401 port."   
)
MODULE_SUPPORTED_DEVICE ( "{{C-Media,CMI8330,isapnp:{CMI0001,@@@0001,@X@0001}}}"  )