Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
saa7134-tvaudio.c File Reference
#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/delay.h>
#include <linux/freezer.h>
#include <asm/div64.h>
#include "saa7134-reg.h"
#include "saa7134.h"

Go to the source code of this file.

Data Structures

struct  mainscan
 

Macros

#define dprintk(fmt, arg...)
 
#define d2printk(fmt, arg...)
 
#define print_regb(reg)
 
#define SCAN_INITIAL_DELAY   1000
 
#define SCAN_SAMPLE_DELAY   200
 
#define SCAN_SUBCARRIER_DELAY   2000
 
#define TVAUDIO   ARRAY_SIZE(tvaudio)
 
#define SAA7134_MUTE_MASK   0xbb
 
#define SAA7134_MUTE_ANALOG   0x04
 
#define SAA7134_MUTE_I2S   0x40
 
#define DSP_RETRY   32
 
#define DSP_DELAY   16
 
#define SAA7135_DSP_RWCLEAR_RERR   1
 

Functions

 module_param (audio_debug, int, 0644)
 
 MODULE_PARM_DESC (audio_debug,"enable debug messages [tv audio]")
 
 module_param (audio_ddep, int, 0644)
 
 MODULE_PARM_DESC (audio_ddep,"audio ddep overwrite")
 
 module_param (audio_clock_override, int, 0644)
 
 module_param (audio_clock_tweak, int, 0644)
 
 MODULE_PARM_DESC (audio_clock_tweak,"Audio clock tick fine tuning for cards with audio crystal that's slightly off (range [-1024 .. 1024])")
 
int saa_dsp_writel (struct saa7134_dev *dev, int reg, u32 value)
 
void saa7134_enable_i2s (struct saa7134_dev *dev)
 
int saa7134_tvaudio_rx2mode (u32 rx)
 
void saa7134_tvaudio_setmute (struct saa7134_dev *dev)
 
void saa7134_tvaudio_setinput (struct saa7134_dev *dev, struct saa7134_input *in)
 
void saa7134_tvaudio_setvolume (struct saa7134_dev *dev, int level)
 
int saa7134_tvaudio_getstereo (struct saa7134_dev *dev)
 
void saa7134_tvaudio_init (struct saa7134_dev *dev)
 
int saa7134_tvaudio_init2 (struct saa7134_dev *dev)
 
int saa7134_tvaudio_close (struct saa7134_dev *dev)
 
int saa7134_tvaudio_fini (struct saa7134_dev *dev)
 
int saa7134_tvaudio_do_scan (struct saa7134_dev *dev)
 
 EXPORT_SYMBOL (saa_dsp_writel)
 
 EXPORT_SYMBOL (saa7134_tvaudio_setmute)
 

Macro Definition Documentation

#define d2printk (   fmt,
  arg... 
)
Value:
if (audio_debug > 1) \
printk(KERN_DEBUG "%s/audio: " fmt, dev->name, ## arg)

Definition at line 54 of file saa7134-tvaudio.c.

#define dprintk (   fmt,
  arg... 
)
Value:
if (audio_debug) \
printk(KERN_DEBUG "%s/audio: " fmt, dev->name , ## arg)

Definition at line 52 of file saa7134-tvaudio.c.

#define DSP_DELAY   16

Definition at line 657 of file saa7134-tvaudio.c.

#define DSP_RETRY   32

Definition at line 656 of file saa7134-tvaudio.c.

#define print_regb (   reg)
Value:
printk("%s: reg 0x%03x [%-16s]: 0x%02x\n", \
dev->name,(SAA7134_##reg),(#reg),saa_readb((SAA7134_##reg)))

Definition at line 57 of file saa7134-tvaudio.c.

#define SAA7134_MUTE_ANALOG   0x04

Definition at line 184 of file saa7134-tvaudio.c.

#define SAA7134_MUTE_I2S   0x40

Definition at line 185 of file saa7134-tvaudio.c.

#define SAA7134_MUTE_MASK   0xbb

Definition at line 183 of file saa7134-tvaudio.c.

#define SAA7135_DSP_RWCLEAR_RERR   1

Definition at line 658 of file saa7134-tvaudio.c.

#define SCAN_INITIAL_DELAY   1000

Definition at line 61 of file saa7134-tvaudio.c.

#define SCAN_SAMPLE_DELAY   200

Definition at line 62 of file saa7134-tvaudio.c.

#define SCAN_SUBCARRIER_DELAY   2000

Definition at line 63 of file saa7134-tvaudio.c.

#define TVAUDIO   ARRAY_SIZE(tvaudio)

Definition at line 161 of file saa7134-tvaudio.c.

Function Documentation

EXPORT_SYMBOL ( saa_dsp_writel  )
EXPORT_SYMBOL ( saa7134_tvaudio_setmute  )
module_param ( audio_debug  ,
int  ,
0644   
)
module_param ( audio_ddep  ,
int  ,
0644   
)
module_param ( audio_clock_override  ,
int  ,
0644   
)
module_param ( audio_clock_tweak  ,
int  ,
0644   
)
MODULE_PARM_DESC ( audio_debug  ,
"enable debug messages "  [tv audio] 
)
MODULE_PARM_DESC ( audio_ddep  ,
"audio ddep overwrite  
)
MODULE_PARM_DESC ( audio_clock_tweak  ,
"Audio clock tick fine tuning for cards with audio crystal that's slightly off (range [-1024 .. 1024])"   
)
void saa7134_enable_i2s ( struct saa7134_dev dev)

Definition at line 871 of file saa7134-tvaudio.c.

int saa7134_tvaudio_close ( struct saa7134_dev dev)

Definition at line 1043 of file saa7134-tvaudio.c.

int saa7134_tvaudio_do_scan ( struct saa7134_dev dev)

Definition at line 1060 of file saa7134-tvaudio.c.

int saa7134_tvaudio_fini ( struct saa7134_dev dev)

Definition at line 1050 of file saa7134-tvaudio.c.

int saa7134_tvaudio_getstereo ( struct saa7134_dev dev)

Definition at line 963 of file saa7134-tvaudio.c.

void saa7134_tvaudio_init ( struct saa7134_dev dev)

Definition at line 980 of file saa7134-tvaudio.c.

int saa7134_tvaudio_init2 ( struct saa7134_dev dev)

Definition at line 1012 of file saa7134-tvaudio.c.

int saa7134_tvaudio_rx2mode ( u32  rx)

Definition at line 907 of file saa7134-tvaudio.c.

void saa7134_tvaudio_setinput ( struct saa7134_dev dev,
struct saa7134_input in 
)

Definition at line 935 of file saa7134-tvaudio.c.

void saa7134_tvaudio_setmute ( struct saa7134_dev dev)

Definition at line 921 of file saa7134-tvaudio.c.

void saa7134_tvaudio_setvolume ( struct saa7134_dev dev,
int  level 
)

Definition at line 952 of file saa7134-tvaudio.c.

int saa_dsp_writel ( struct saa7134_dev dev,
int  reg,
u32  value 
)

Definition at line 698 of file saa7134-tvaudio.c.