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

Go to the source code of this file.

Data Structures

struct  snd_cmi8328
 

Macros

#define SNDRV_LEGACY_FIND_FREE_IOPORT
 
#define SNDRV_LEGACY_FIND_FREE_IRQ
 
#define SNDRV_LEGACY_FIND_FREE_DMA
 
#define CMI8328_MAX   ARRAY_SIZE(cmi8328_ports)
 
#define CFG1   0x61
 
#define CFG1_SB_DISABLE   (1 << 0)
 
#define CFG1_GAMEPORT   (1 << 1)
 
#define CFG2   0x62
 
#define CFG2_MPU_ENABLE   (1 << 2)
 
#define CFG3   0x63
 

Functions

 MODULE_AUTHOR ("Ondrej Zary <[email protected]>")
 
 MODULE_DESCRIPTION ("C-Media CMI8328")
 
 MODULE_LICENSE ("GPL")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for CMI8328 soundcard.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for CMI8328 soundcard.")
 
 module_param_array (port, long, NULL, 0444)
 
 MODULE_PARM_DESC (port,"Port # for CMI8328 driver.")
 
 module_param_array (irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (irq,"IRQ # for CMI8328 driver.")
 
 module_param_array (dma1, int, NULL, 0444)
 
 MODULE_PARM_DESC (dma1,"DMA1 for CMI8328 driver.")
 
 module_param_array (dma2, int, NULL, 0444)
 
 MODULE_PARM_DESC (dma2,"DMA2 for CMI8328 driver.")
 
 module_param_array (mpuport, long, NULL, 0444)
 
 MODULE_PARM_DESC (mpuport,"MPU-401 port # for CMI8328 driver.")
 
 module_param_array (mpuirq, int, NULL, 0444)
 
 MODULE_PARM_DESC (mpuirq,"IRQ # for CMI8328 MPU-401 port.")
 
int array_find (int array[], int item)
 
int array_find_l (long array[], long item)
 

Macro Definition Documentation

#define CFG1   0x61

Definition at line 84 of file cmi8328.c.

#define CFG1_GAMEPORT   (1 << 1)

Definition at line 86 of file cmi8328.c.

#define CFG1_SB_DISABLE   (1 << 0)

Definition at line 85 of file cmi8328.c.

#define CFG2   0x62

Definition at line 94 of file cmi8328.c.

#define CFG2_MPU_ENABLE   (1 << 2)

Definition at line 95 of file cmi8328.c.

#define CFG3   0x63

Definition at line 104 of file cmi8328.c.

#define CMI8328_MAX   ARRAY_SIZE(cmi8328_ports)

Definition at line 35 of file cmi8328.c.

#define SNDRV_LEGACY_FIND_FREE_DMA

Definition at line 22 of file cmi8328.c.

#define SNDRV_LEGACY_FIND_FREE_IOPORT

Definition at line 20 of file cmi8328.c.

#define SNDRV_LEGACY_FIND_FREE_IRQ

Definition at line 21 of file cmi8328.c.

Function Documentation

int array_find ( int  array[],
int  item 
)

Definition at line 193 of file cmi8328.c.

int array_find_l ( long  array[],
long  item 
)

Definition at line 204 of file cmi8328.c.

MODULE_AUTHOR ( "Ondrej Zary <[email protected]>"  )
MODULE_DESCRIPTION ( "C-Media CMI8328"  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( id  ,
charp  ,
NULL  ,
0444   
)
module_param_array ( port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( irq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( dma1  ,
int  ,
NULL  ,
0444   
)
module_param_array ( dma2  ,
int  ,
NULL  ,
0444   
)
module_param_array ( mpuport  ,
long  ,
NULL  ,
0444   
)
module_param_array ( mpuirq  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for CMI8328 soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for CMI8328 soundcard."   
)
MODULE_PARM_DESC ( port  ,
"Port # for CMI8328 driver."   
)
MODULE_PARM_DESC ( irq  ,
"IRQ # for CMI8328 driver."   
)
MODULE_PARM_DESC ( dma1  ,
"DMA1 for CMI8328 driver."   
)
MODULE_PARM_DESC ( dma2  ,
"DMA2 for CMI8328 driver."   
)
MODULE_PARM_DESC ( mpuport  ,
"MPU-401 port # for CMI8328 driver."   
)
MODULE_PARM_DESC ( mpuirq  ,
"IRQ # for CMI8328 MPU-401 port."   
)