Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cx23885-alsa.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/vmalloc.h>
#include <linux/dma-mapping.h>
#include <linux/pci.h>
#include <asm/delay.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/control.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "cx23885.h"
#include "cx23885-reg.h"

Go to the source code of this file.

Macros

#define AUDIO_SRAM_CHANNEL   SRAM_CH07
 
#define dprintk(level, fmt, arg...)
 
#define dprintk_core(level, fmt, arg...)
 
#define AUD_INT_DN_RISCI1   (1 << 0)
 
#define AUD_INT_UP_RISCI1   (1 << 1)
 
#define AUD_INT_RDS_DN_RISCI1   (1 << 2)
 
#define AUD_INT_DN_RISCI2   (1 << 4) /* yes, 3 is skipped */
 
#define AUD_INT_UP_RISCI2   (1 << 5)
 
#define AUD_INT_RDS_DN_RISCI2   (1 << 6)
 
#define AUD_INT_DN_SYNC   (1 << 12)
 
#define AUD_INT_UP_SYNC   (1 << 13)
 
#define AUD_INT_RDS_DN_SYNC   (1 << 14)
 
#define AUD_INT_OPC_ERR   (1 << 16)
 
#define AUD_INT_BER_IRQ   (1 << 20)
 
#define AUD_INT_MCHG_IRQ   (1 << 21)
 
#define GP_COUNT_CONTROL_RESET   0x3
 
#define DEFAULT_FIFO_SIZE   4096
 

Functions

 module_param (disable_analog_audio, int, 0644)
 
 MODULE_PARM_DESC (disable_analog_audio,"disable analog audio ALSA driver")
 
 module_param (audio_debug, int, 0644)
 
 MODULE_PARM_DESC (audio_debug,"enable debug messages [analog audio]")
 
int cx23885_audio_irq (struct cx23885_dev *dev, u32 status, u32 mask)
 
struct cx23885_audio_devcx23885_audio_register (struct cx23885_dev *dev)
 
void cx23885_audio_unregister (struct cx23885_dev *dev)
 

Macro Definition Documentation

#define AUD_INT_BER_IRQ   (1 << 20)

Definition at line 81 of file cx23885-alsa.c.

#define AUD_INT_DN_RISCI1   (1 << 0)

Definition at line 71 of file cx23885-alsa.c.

#define AUD_INT_DN_RISCI2   (1 << 4) /* yes, 3 is skipped */

Definition at line 74 of file cx23885-alsa.c.

#define AUD_INT_DN_SYNC   (1 << 12)

Definition at line 77 of file cx23885-alsa.c.

#define AUD_INT_MCHG_IRQ   (1 << 21)

Definition at line 82 of file cx23885-alsa.c.

#define AUD_INT_OPC_ERR   (1 << 16)

Definition at line 80 of file cx23885-alsa.c.

#define AUD_INT_RDS_DN_RISCI1   (1 << 2)

Definition at line 73 of file cx23885-alsa.c.

#define AUD_INT_RDS_DN_RISCI2   (1 << 6)

Definition at line 76 of file cx23885-alsa.c.

#define AUD_INT_RDS_DN_SYNC   (1 << 14)

Definition at line 79 of file cx23885-alsa.c.

#define AUD_INT_UP_RISCI1   (1 << 1)

Definition at line 72 of file cx23885-alsa.c.

#define AUD_INT_UP_RISCI2   (1 << 5)

Definition at line 75 of file cx23885-alsa.c.

#define AUD_INT_UP_SYNC   (1 << 13)

Definition at line 78 of file cx23885-alsa.c.

#define AUDIO_SRAM_CHANNEL   SRAM_CH07

Definition at line 46 of file cx23885-alsa.c.

#define DEFAULT_FIFO_SIZE   4096

Definition at line 220 of file cx23885-alsa.c.

#define dprintk (   level,
  fmt,
  arg... 
)
Value:
if (audio_debug >= level) \
printk(KERN_INFO "%s: " fmt, chip->dev->name , ## arg)

Definition at line 48 of file cx23885-alsa.c.

#define dprintk_core (   level,
  fmt,
  arg... 
)
Value:
if (audio_debug >= level) \
printk(KERN_DEBUG "%s: " fmt, chip->dev->name , ## arg)

Definition at line 51 of file cx23885-alsa.c.

#define GP_COUNT_CONTROL_RESET   0x3

Definition at line 83 of file cx23885-alsa.c.

Function Documentation

int cx23885_audio_irq ( struct cx23885_dev dev,
u32  status,
u32  mask 
)

Definition at line 165 of file cx23885-alsa.c.

struct cx23885_audio_dev* cx23885_audio_register ( struct cx23885_dev dev)
read

Definition at line 475 of file cx23885-alsa.c.

void cx23885_audio_unregister ( struct cx23885_dev dev)

Definition at line 530 of file cx23885-alsa.c.

module_param ( disable_analog_audio  ,
int  ,
0644   
)
module_param ( audio_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( disable_analog_audio  ,
"disable analog audio ALSA driver  
)
MODULE_PARM_DESC ( audio_debug  ,
"enable debug messages "  [analog audio] 
)