Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
azt3328.c File Reference
#include <asm/io.h>
#include <linux/init.h>
#include <linux/bug.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/gameport.h>
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/rawmidi.h>
#include <sound/mpu401.h>
#include <sound/opl3.h>
#include <sound/initval.h>
#include <sound/ac97_codec.h>
#include "azt3328.h"

Go to the source code of this file.

Data Structures

struct  snd_azf3328_codec_data
 
struct  snd_azf3328
 

Macros

#define AZF_USE_AC97_LAYER   1
 
#define DEBUG_MISC   0
 
#define DEBUG_CALLS   0
 
#define DEBUG_MIXER   0
 
#define DEBUG_CODEC   0
 
#define DEBUG_TIMER   0
 
#define DEBUG_GAME   0
 
#define DEBUG_PM   0
 
#define MIXER_TESTING   0
 
#define snd_azf3328_dbgmisc(format, args...)
 
#define snd_azf3328_dbgcalls(format, args...)
 
#define snd_azf3328_dbgcallenter()
 
#define snd_azf3328_dbgcallleave()
 
#define snd_azf3328_dbgmixer(format, args...)
 
#define snd_azf3328_dbgcodec(format, args...)
 
#define snd_azf3328_dbgtimer(format, args...)
 
#define snd_azf3328_dbggame(format, args...)
 
#define snd_azf3328_dbgpm(format, args...)
 
#define AZF_MUTE_BIT   0x80
 
#define AZF_REG_MASK   0x3f
 
#define AZF_AC97_REG_UNSUPPORTED   0x8000
 
#define AZF_AC97_REG_REAL_IO_READ   0x4000
 
#define AZF_AC97_REG_REAL_IO_WRITE   0x2000
 
#define AZF_AC97_REG_REAL_IO_RW   (AZF_AC97_REG_REAL_IO_READ | AZF_AC97_REG_REAL_IO_WRITE)
 
#define AZF_AC97_REG_EMU_IO_READ   0x0400
 
#define AZF_AC97_REG_EMU_IO_WRITE   0x0200
 
#define AZF_AC97_REG_EMU_IO_RW   (AZF_AC97_REG_EMU_IO_READ | AZF_AC97_REG_EMU_IO_WRITE)
 
#define SND_AZF3328_PM_OPS   NULL
 

Enumerations

enum  snd_azf3328_codec_type { AZF_CODEC_PLAYBACK = 0, AZF_CODEC_CAPTURE = 1, AZF_CODEC_I2S_OUT = 2 }
 

Functions

 MODULE_AUTHOR ("Andreas Mohr <andi AT lisas.de>")
 
 MODULE_DESCRIPTION ("Aztech AZF3328 (PCI168)")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{Aztech,AZF3328}}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for AZF3328 soundcard.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for AZF3328 soundcard.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable AZF3328 soundcard.")
 
 module_param (seqtimer_scaling, int, 0444)
 
 MODULE_PARM_DESC (seqtimer_scaling,"Set 1024000Hz sequencer timer scale factor (lockup danger!). Default 128.")
 
 MODULE_DEVICE_TABLE (pci, snd_azf3328_ids)
 
 module_pci_driver (azf3328_driver)
 

Macro Definition Documentation

#define AZF_AC97_REG_EMU_IO_READ   0x0400

Definition at line 599 of file azt3328.c.

#define AZF_AC97_REG_EMU_IO_RW   (AZF_AC97_REG_EMU_IO_READ | AZF_AC97_REG_EMU_IO_WRITE)

Definition at line 601 of file azt3328.c.

#define AZF_AC97_REG_EMU_IO_WRITE   0x0200

Definition at line 600 of file azt3328.c.

#define AZF_AC97_REG_REAL_IO_READ   0x4000

Definition at line 595 of file azt3328.c.

#define AZF_AC97_REG_REAL_IO_RW   (AZF_AC97_REG_REAL_IO_READ | AZF_AC97_REG_REAL_IO_WRITE)

Definition at line 597 of file azt3328.c.

#define AZF_AC97_REG_REAL_IO_WRITE   0x2000

Definition at line 596 of file azt3328.c.

#define AZF_AC97_REG_UNSUPPORTED   0x8000

Definition at line 594 of file azt3328.c.

#define AZF_MUTE_BIT   0x80

Definition at line 526 of file azt3328.c.

#define AZF_REG_MASK   0x3f

Definition at line 593 of file azt3328.c.

#define AZF_USE_AC97_LAYER   1

Definition at line 203 of file azt3328.c.

#define DEBUG_CALLS   0

Definition at line 242 of file azt3328.c.

#define DEBUG_CODEC   0

Definition at line 244 of file azt3328.c.

#define DEBUG_GAME   0

Definition at line 246 of file azt3328.c.

#define DEBUG_MISC   0

Definition at line 241 of file azt3328.c.

#define DEBUG_MIXER   0

Definition at line 243 of file azt3328.c.

#define DEBUG_PM   0

Definition at line 247 of file azt3328.c.

#define DEBUG_TIMER   0

Definition at line 245 of file azt3328.c.

#define MIXER_TESTING   0

Definition at line 248 of file azt3328.c.

#define snd_azf3328_dbgcallenter ( )

Definition at line 262 of file azt3328.c.

#define snd_azf3328_dbgcallleave ( )

Definition at line 263 of file azt3328.c.

#define snd_azf3328_dbgcalls (   format,
  args... 
)

Definition at line 261 of file azt3328.c.

#define snd_azf3328_dbgcodec (   format,
  args... 
)

Definition at line 275 of file azt3328.c.

#define snd_azf3328_dbggame (   format,
  args... 
)

Definition at line 287 of file azt3328.c.

#define snd_azf3328_dbgmisc (   format,
  args... 
)

Definition at line 253 of file azt3328.c.

#define snd_azf3328_dbgmixer (   format,
  args... 
)

Definition at line 269 of file azt3328.c.

#define snd_azf3328_dbgpm (   format,
  args... 
)

Definition at line 293 of file azt3328.c.

#define snd_azf3328_dbgtimer (   format,
  args... 
)

Definition at line 281 of file azt3328.c.

#define SND_AZF3328_PM_OPS   NULL

Definition at line 2868 of file azt3328.c.

Enumeration Type Documentation

Enumerator:
AZF_CODEC_PLAYBACK 
AZF_CODEC_CAPTURE 
AZF_CODEC_I2S_OUT 

Definition at line 312 of file azt3328.c.

Function Documentation

MODULE_AUTHOR ( "Andreas Mohr <andi AT lisas.de>"  )
MODULE_DESCRIPTION ( "Aztech AZF3328 (PCI168)"  )
MODULE_DEVICE_TABLE ( pci  ,
snd_azf3328_ids   
)
MODULE_LICENSE ( "GPL"  )
module_param ( seqtimer_scaling  ,
int  ,
0444   
)
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( id  ,
charp  ,
NULL  ,
0444   
)
module_param_array ( enable  ,
bool  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for AZF3328 soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for AZF3328 soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"Enable AZF3328 soundcard."   
)
MODULE_PARM_DESC ( seqtimer_scaling  ,
"Set 1024000Hz sequencer timer scale factor (lockup danger!). Default 128."   
)
module_pci_driver ( azf3328_driver  )
MODULE_SUPPORTED_DEVICE ( "{{Aztech,AZF3328}}"  )