Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
opti92x-ad1848.c File Reference
#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/delay.h>
#include <linux/pnp.h>
#include <linux/module.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <sound/core.h>
#include <sound/tlv.h>
#include <sound/wss.h>
#include <sound/mpu401.h>
#include <sound/opl3.h>
#include <sound/opl4.h>
#include <sound/initval.h>

Go to the source code of this file.

Data Structures

struct  snd_opti9xx
 

Macros

#define SNDRV_LEGACY_FIND_FREE_IOPORT
 
#define SNDRV_LEGACY_FIND_FREE_IRQ
 
#define SNDRV_LEGACY_FIND_FREE_DMA
 
#define OPTi9XX_HW_82C928   1
 
#define OPTi9XX_HW_82C929   2
 
#define OPTi9XX_HW_82C924   3
 
#define OPTi9XX_HW_82C925   4
 
#define OPTi9XX_HW_82C930   5
 
#define OPTi9XX_HW_82C931   6
 
#define OPTi9XX_HW_82C933   7
 
#define OPTi9XX_HW_LAST   OPTi9XX_HW_82C933
 
#define OPTi9XX_MC_REG(n)   n
 
#define DEV_NAME   "opti92x"
 
#define snd_opti9xx_write_mask(chip, reg, value, mask)
 
#define CHIP_NAME   "82C92x"
 

Functions

 MODULE_AUTHOR ("Massimo Piccioni <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("OPTi92X - AD1848")
 
 MODULE_SUPPORTED_DEVICE ("{{OPTi,82C924 (AD1848)},""{OPTi,82C925 (AD1848)},""{OAK,Mozart}}")
 
 module_param (index, int, 0444)
 
 MODULE_PARM_DESC (index,"Index value for opti9xx based soundcard.")
 
 module_param (id, charp, 0444)
 
 MODULE_PARM_DESC (id,"ID string for opti9xx based soundcard.")
 
 module_param (port, long, 0444)
 
 MODULE_PARM_DESC (port,"WSS port # for opti9xx driver.")
 
 module_param (mpu_port, long, 0444)
 
 MODULE_PARM_DESC (mpu_port,"MPU-401 port # for opti9xx driver.")
 
 module_param (fm_port, long, 0444)
 
 MODULE_PARM_DESC (fm_port,"FM port # for opti9xx driver.")
 
 module_param (irq, int, 0444)
 
 MODULE_PARM_DESC (irq,"WSS irq # for opti9xx driver.")
 
 module_param (mpu_irq, int, 0444)
 
 MODULE_PARM_DESC (mpu_irq,"MPU-401 irq # for opti9xx driver.")
 
 module_param (dma1, int, 0444)
 
 MODULE_PARM_DESC (dma1,"1st dma # for opti9xx driver.")
 

Macro Definition Documentation

#define CHIP_NAME   "82C92x"

Definition at line 1185 of file opti92x-ad1848.c.

#define DEV_NAME   "opti92x"

Definition at line 179 of file opti92x-ad1848.c.

#define OPTi9XX_HW_82C924   3

Definition at line 110 of file opti92x-ad1848.c.

#define OPTi9XX_HW_82C925   4

Definition at line 111 of file opti92x-ad1848.c.

#define OPTi9XX_HW_82C928   1

Definition at line 108 of file opti92x-ad1848.c.

#define OPTi9XX_HW_82C929   2

Definition at line 109 of file opti92x-ad1848.c.

#define OPTi9XX_HW_82C930   5

Definition at line 112 of file opti92x-ad1848.c.

#define OPTi9XX_HW_82C931   6

Definition at line 113 of file opti92x-ad1848.c.

#define OPTi9XX_HW_82C933   7

Definition at line 114 of file opti92x-ad1848.c.

#define OPTi9XX_HW_LAST   OPTi9XX_HW_82C933

Definition at line 115 of file opti92x-ad1848.c.

#define OPTi9XX_MC_REG (   n)    n

Definition at line 117 of file opti92x-ad1848.c.

#define snd_opti9xx_write_mask (   chip,
  reg,
  value,
  mask 
)
Value:
snd_opti9xx_write(chip, reg, \
(snd_opti9xx_read(chip, reg) & ~(mask)) | ((value) & (mask)))

Definition at line 334 of file opti92x-ad1848.c.

#define SNDRV_LEGACY_FIND_FREE_DMA

Definition at line 44 of file opti92x-ad1848.c.

#define SNDRV_LEGACY_FIND_FREE_IOPORT

Definition at line 42 of file opti92x-ad1848.c.

#define SNDRV_LEGACY_FIND_FREE_IRQ

Definition at line 43 of file opti92x-ad1848.c.

Function Documentation

MODULE_AUTHOR ( "Massimo Piccioni <[email protected]>"  )
MODULE_DESCRIPTION ( "OPTi92X - AD1848"  )
MODULE_LICENSE ( "GPL"  )
module_param ( index  ,
int  ,
0444   
)
module_param ( id  ,
charp  ,
0444   
)
module_param ( port  ,
long  ,
0444   
)
module_param ( mpu_port  ,
long  ,
0444   
)
module_param ( fm_port  ,
long  ,
0444   
)
module_param ( irq  ,
int  ,
0444   
)
module_param ( mpu_irq  ,
int  ,
0444   
)
module_param ( dma1  ,
int  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for opti9xx based soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for opti9xx based soundcard."   
)
MODULE_PARM_DESC ( port  ,
"WSS port # for opti9xx driver."   
)
MODULE_PARM_DESC ( mpu_port  ,
"MPU-401 port # for opti9xx driver."   
)
MODULE_PARM_DESC ( fm_port  ,
"FM port # for opti9xx driver."   
)
MODULE_PARM_DESC ( irq  ,
"WSS irq # for opti9xx driver."   
)
MODULE_PARM_DESC ( mpu_irq  ,
"MPU-401 irq # for opti9xx driver."   
)
MODULE_PARM_DESC ( dma1  ,
"1st dma # for opti9xx driver."   
)
MODULE_SUPPORTED_DEVICE ( "{{OPTi,82C924 (AD1848)},""{OPTi,82C925 (AD1848)},""{OAK,Mozart}}"  )