Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ca0106_main.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/ac97_codec.h>
#include <sound/info.h>
#include "ca0106.h"

Go to the source code of this file.

Macros

#define SPI_REG(reg, value)   (((reg) << SPI_REG_SHIFT) | (value))
 
#define SND_CA0106_PM_OPS   NULL
 

Functions

 MODULE_AUTHOR ("James Courtier-Dutton <[email protected]>")
 
 MODULE_DESCRIPTION ("CA0106")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{Creative,SB CA0106 chip}}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for the CA0106 soundcard.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for the CA0106 soundcard.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable the CA0106 soundcard.")
 
 module_param_array (subsystem, uint, NULL, 0444)
 
 MODULE_PARM_DESC (subsystem,"Force card subsystem model.")
 
unsigned int snd_ca0106_ptr_read (struct snd_ca0106 *emu, unsigned int reg, unsigned int chn)
 
void snd_ca0106_ptr_write (struct snd_ca0106 *emu, unsigned int reg, unsigned int chn, unsigned int data)
 
int snd_ca0106_spi_write (struct snd_ca0106 *emu, unsigned int data)
 
int snd_ca0106_i2c_write (struct snd_ca0106 *emu, u32 reg, u32 value)
 
 MODULE_DEVICE_TABLE (pci, snd_ca0106_ids)
 
 module_pci_driver (ca0106_driver)
 

Macro Definition Documentation

#define SND_CA0106_PM_OPS   NULL

Definition at line 1959 of file ca0106_main.c.

#define SPI_REG (   reg,
  value 
)    (((reg) << SPI_REG_SHIFT) | (value))

Definition at line 1424 of file ca0106_main.c.

Function Documentation

MODULE_AUTHOR ( "James Courtier-Dutton <[email protected]>"  )
MODULE_DESCRIPTION ( "CA0106"  )
MODULE_DEVICE_TABLE ( pci  ,
snd_ca0106_ids   
)
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 ( subsystem  ,
uint  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for the CA0106 soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for the CA0106 soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"Enable the CA0106 soundcard."   
)
MODULE_PARM_DESC ( subsystem  ,
"Force card subsystem model."   
)
module_pci_driver ( ca0106_driver  )
MODULE_SUPPORTED_DEVICE ( "{{Creative,SB CA0106 chip}}"  )
int snd_ca0106_i2c_write ( struct snd_ca0106 emu,
u32  reg,
u32  value 
)

Definition at line 411 of file ca0106_main.c.

unsigned int snd_ca0106_ptr_read ( struct snd_ca0106 emu,
unsigned int  reg,
unsigned int  chn 
)

Definition at line 346 of file ca0106_main.c.

void snd_ca0106_ptr_write ( struct snd_ca0106 emu,
unsigned int  reg,
unsigned int  chn,
unsigned int  data 
)

Definition at line 362 of file ca0106_main.c.

int snd_ca0106_spi_write ( struct snd_ca0106 emu,
unsigned int  data 
)

Definition at line 378 of file ca0106_main.c.