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

Go to the source code of this file.

Data Structures

struct  snd_miro
 

Macros

#define SNDRV_LEGACY_FIND_FREE_IOPORT
 
#define SNDRV_LEGACY_FIND_FREE_IRQ
 
#define SNDRV_LEGACY_FIND_FREE_DMA
 
#define OPTi9XX_HW_DETECT   0
 
#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 snd_miro_info_capture   snd_ctl_boolean_mono_info
 
#define snd_miro_info_amp   snd_ctl_boolean_mono_info
 
#define MIRO_DOUBLE(ctl_name, ctl_index, get_right_reg, set_right_reg)
 
#define snd_miro_write_mask(chip, reg, value, mask)
 
#define DEV_NAME   "miro"
 

Functions

 MODULE_AUTHOR ("Martin Langer <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Miro miroSOUND PCM1 pro, PCM12, PCM20 Radio")
 
 MODULE_SUPPORTED_DEVICE ("{{Miro,miroSOUND PCM1 pro}, ""{Miro,miroSOUND PCM12}, ""{Miro,miroSOUND PCM20 Radio}}")
 
 module_param (index, int, 0444)
 
 MODULE_PARM_DESC (index,"Index value for miro soundcard.")
 
 module_param (id, charp, 0444)
 
 MODULE_PARM_DESC (id,"ID string for miro soundcard.")
 
 module_param (port, long, 0444)
 
 MODULE_PARM_DESC (port,"WSS port # for miro driver.")
 
 module_param (mpu_port, long, 0444)
 
 MODULE_PARM_DESC (mpu_port,"MPU-401 port # for miro driver.")
 
 module_param (fm_port, long, 0444)
 
 MODULE_PARM_DESC (fm_port,"FM Port # for miro driver.")
 
 module_param (irq, int, 0444)
 
 MODULE_PARM_DESC (irq,"WSS irq # for miro driver.")
 
 module_param (mpu_irq, int, 0444)
 
 MODULE_PARM_DESC (mpu_irq,"MPU-401 irq # for miro driver.")
 
 module_param (dma1, int, 0444)
 
 MODULE_PARM_DESC (dma1,"1st dma # for miro driver.")
 
 module_param (dma2, int, 0444)
 
 MODULE_PARM_DESC (dma2,"2nd dma # for miro driver.")
 
 module_param (wss, int, 0444)
 
 MODULE_PARM_DESC (wss,"wss mode")
 
 module_param (ide, int, 0444)
 
 MODULE_PARM_DESC (ide,"enable ide port")
 
int snd_aci_cmd (struct snd_miro_aci *aci, int write1, int write2, int write3)
 
 EXPORT_SYMBOL (snd_aci_cmd)
 
struct snd_miro_acisnd_aci_get_aci (void)
 
 EXPORT_SYMBOL (snd_aci_get_aci)
 

Macro Definition Documentation

#define DEV_NAME   "miro"

Definition at line 1502 of file miro.c.

#define MIRO_DOUBLE (   ctl_name,
  ctl_index,
  get_right_reg,
  set_right_reg 
)
Value:
.name = ctl_name, \
.index = ctl_index, \
.info = snd_miro_info_double, \
.get = snd_miro_get_double, \
.put = snd_miro_put_double, \
.private_value = get_right_reg | (set_right_reg << 8) \
}

Definition at line 400 of file miro.c.

#define OPTi9XX_HW_82C924   3

Definition at line 98 of file miro.c.

#define OPTi9XX_HW_82C925   4

Definition at line 99 of file miro.c.

#define OPTi9XX_HW_82C928   1

Definition at line 96 of file miro.c.

#define OPTi9XX_HW_82C929   2

Definition at line 97 of file miro.c.

#define OPTi9XX_HW_82C930   5

Definition at line 100 of file miro.c.

#define OPTi9XX_HW_82C931   6

Definition at line 101 of file miro.c.

#define OPTi9XX_HW_82C933   7

Definition at line 102 of file miro.c.

#define OPTi9XX_HW_DETECT   0

Definition at line 95 of file miro.c.

#define OPTi9XX_HW_LAST   OPTi9XX_HW_82C933

Definition at line 103 of file miro.c.

#define OPTi9XX_MC_REG (   n)    n

Definition at line 105 of file miro.c.

#define snd_miro_info_amp   snd_ctl_boolean_mono_info

Definition at line 369 of file miro.c.

#define snd_miro_info_capture   snd_ctl_boolean_mono_info

Definition at line 266 of file miro.c.

#define snd_miro_write_mask (   chip,
  reg,
  value,
  mask 
)
Value:
snd_miro_write(chip, reg, \
(snd_miro_read(chip, reg) & ~(mask)) | ((value) & (mask)))

Definition at line 879 of file miro.c.

#define SNDRV_LEGACY_FIND_FREE_DMA

Definition at line 42 of file miro.c.

#define SNDRV_LEGACY_FIND_FREE_IOPORT

Definition at line 40 of file miro.c.

#define SNDRV_LEGACY_FIND_FREE_IRQ

Definition at line 41 of file miro.c.

Function Documentation

EXPORT_SYMBOL ( snd_aci_cmd  )
EXPORT_SYMBOL ( snd_aci_get_aci  )
MODULE_AUTHOR ( "Martin Langer <[email protected]>"  )
MODULE_DESCRIPTION ( "Miro miroSOUND PCM1  pro,
PCM12  ,
PCM20 Radio"   
)
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_param ( dma2  ,
int  ,
0444   
)
module_param ( wss  ,
int  ,
0444   
)
module_param ( ide  ,
int  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for miro soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for miro soundcard."   
)
MODULE_PARM_DESC ( port  ,
"WSS port # for miro driver."   
)
MODULE_PARM_DESC ( mpu_port  ,
"MPU-401 port # for miro driver."   
)
MODULE_PARM_DESC ( fm_port  ,
"FM Port # for miro driver."   
)
MODULE_PARM_DESC ( irq  ,
"WSS irq # for miro driver."   
)
MODULE_PARM_DESC ( mpu_irq  ,
"MPU-401 irq # for miro driver."   
)
MODULE_PARM_DESC ( dma1  ,
"1st dma # for miro driver."   
)
MODULE_PARM_DESC ( dma2  ,
"2nd dma # for miro driver."   
)
MODULE_PARM_DESC ( wss  ,
"wss mode  
)
MODULE_PARM_DESC ( ide  ,
"enable ide port  
)
MODULE_SUPPORTED_DEVICE ( "{{Miro,miroSOUND PCM1 pro}, ""{Miro,miroSOUND PCM12}, ""{Miro,miroSOUND PCM20 Radio}}"  )
int snd_aci_cmd ( struct snd_miro_aci aci,
int  write1,
int  write2,
int  write3 
)

Definition at line 218 of file miro.c.

struct snd_miro_aci* snd_aci_get_aci ( void  )
read

Definition at line 254 of file miro.c.