Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
msp3400-driver.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/msp3400.h>
#include <media/tvaudio.h>
#include "msp3400-driver.h"

Go to the source code of this file.

Macros

#define I2C_MSP_CONTROL   0x00
 
#define I2C_MSP_DEM   0x10
 
#define I2C_MSP_DSP   0x12
 

Functions

 MODULE_DESCRIPTION ("device driver for msp34xx TV sound processor")
 
 MODULE_AUTHOR ("Gerd Knorr")
 
 MODULE_LICENSE ("GPL")
 
 module_param (opmode, int, 0444)
 
 module_param_named (once, msp_once, bool, 0644)
 
 module_param_named (debug, msp_debug, int, 0644)
 
 module_param_named (stereo_threshold, msp_stereo_thresh, int, 0644)
 
 module_param_named (standard, msp_standard, int, 0644)
 
 module_param_named (amsound, msp_amsound, bool, 0644)
 
 module_param_named (dolby, msp_dolby, bool, 0644)
 
 MODULE_PARM_DESC (opmode,"Forces a MSP3400 opmode. 0=Manual, 1=Autodetect, 2=Autodetect and autoselect")
 
 MODULE_PARM_DESC (once,"No continuous stereo monitoring")
 
 MODULE_PARM_DESC (debug,"Enable debug messages [0-3]")
 
 MODULE_PARM_DESC (stereo_threshold,"Sets signal threshold to activate stereo")
 
 MODULE_PARM_DESC (standard,"Specify audio standard: 32 = NTSC, 64 = radio, Default: Autodetect")
 
 MODULE_PARM_DESC (amsound,"Hardwire AM sound at 6.5Hz (France), FM can autoscan")
 
 MODULE_PARM_DESC (dolby,"Activates Dolby processing")
 
int msp_reset (struct i2c_client *client)
 
int msp_read_dem (struct i2c_client *client, int addr)
 
int msp_read_dsp (struct i2c_client *client, int addr)
 
int msp_write_dem (struct i2c_client *client, int addr, int val)
 
int msp_write_dsp (struct i2c_client *client, int addr, int val)
 
void msp_set_scart (struct i2c_client *client, int in, int out)
 
int msp_sleep (struct msp_state *state, int timeout)
 
void msp_update_volume (struct msp_state *state)
 
 MODULE_DEVICE_TABLE (i2c, msp_id)
 
 module_i2c_driver (msp_driver)
 

Variables

int msp_debug
 
bool msp_once
 
bool msp_amsound
 
int msp_standard = 1
 
bool msp_dolby
 
int msp_stereo_thresh = 0x190
 

Macro Definition Documentation

#define I2C_MSP_CONTROL   0x00

Definition at line 104 of file msp3400-driver.c.

#define I2C_MSP_DEM   0x10

Definition at line 106 of file msp3400-driver.c.

#define I2C_MSP_DSP   0x12

Definition at line 108 of file msp3400-driver.c.

Function Documentation

MODULE_AUTHOR ( "Gerd Knorr"  )
MODULE_DESCRIPTION ( "device driver for msp34xx TV sound processor )
MODULE_DEVICE_TABLE ( i2c  ,
msp_id   
)
module_i2c_driver ( msp_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( opmode  ,
int  ,
0444   
)
module_param_named ( once  ,
msp_once  ,
bool  ,
0644   
)
module_param_named ( debug  ,
msp_debug  ,
int  ,
0644   
)
module_param_named ( stereo_threshold  ,
msp_stereo_thresh  ,
int  ,
0644   
)
module_param_named ( standard  ,
msp_standard  ,
int  ,
0644   
)
module_param_named ( amsound  ,
msp_amsound  ,
bool  ,
0644   
)
module_param_named ( dolby  ,
msp_dolby  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( opmode  ,
"Forces a MSP3400 opmode.  0 = Manual,
= Autodetect 
)
MODULE_PARM_DESC ( once  ,
"No continuous stereo monitoring"   
)
MODULE_PARM_DESC ( debug  ,
"Enable debug messages "  [0-3] 
)
MODULE_PARM_DESC ( stereo_threshold  ,
"Sets signal threshold to activate stereo"   
)
MODULE_PARM_DESC ( standard  ,
"Specify audio standard:  32 = NTSC,
64  = radio,
Default:Autodetect"   
)
MODULE_PARM_DESC ( amsound  ,
"Hardwire AM sound at 6.5Hz   France,
FM can autoscan"   
)
MODULE_PARM_DESC ( dolby  ,
"Activates Dolby processing"   
)
int msp_read_dem ( struct i2c_client client,
int  addr 
)

Definition at line 200 of file msp3400-driver.c.

int msp_read_dsp ( struct i2c_client client,
int  addr 
)

Definition at line 205 of file msp3400-driver.c.

int msp_reset ( struct i2c_client client)

Definition at line 114 of file msp3400-driver.c.

void msp_set_scart ( struct i2c_client client,
int  in,
int  out 
)

Definition at line 289 of file msp3400-driver.c.

int msp_sleep ( struct msp_state state,
int  timeout 
)

Definition at line 326 of file msp3400-driver.c.

void msp_update_volume ( struct msp_state state)

Definition at line 410 of file msp3400-driver.c.

int msp_write_dem ( struct i2c_client client,
int  addr,
int  val 
)

Definition at line 238 of file msp3400-driver.c.

int msp_write_dsp ( struct i2c_client client,
int  addr,
int  val 
)

Definition at line 243 of file msp3400-driver.c.

Variable Documentation

bool msp_amsound

Definition at line 73 of file msp3400-driver.c.

int msp_debug

Definition at line 71 of file msp3400-driver.c.

bool msp_dolby

Definition at line 77 of file msp3400-driver.c.

bool msp_once

Definition at line 72 of file msp3400-driver.c.

int msp_standard = 1

Definition at line 75 of file msp3400-driver.c.

int msp_stereo_thresh = 0x190

Definition at line 79 of file msp3400-driver.c.