Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tda7432.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/videodev2.h>
#include <linux/i2c.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/i2c-addr.h>

Go to the source code of this file.

Data Structures

struct  tda7432
 

Macros

#define VIDEO_AUDIO_BALANCE   32
 
#define TDA7432_IN   0x00 /* Input select */
 
#define TDA7432_VL   0x01 /* Volume */
 
#define TDA7432_TN   0x02 /* Bass, Treble (Tone) */
 
#define TDA7432_LF   0x03 /* Attenuation LF (Left Front) */
 
#define TDA7432_LR   0x04 /* Attenuation LR (Left Rear) */
 
#define TDA7432_RF   0x05 /* Attenuation RF (Right Front) */
 
#define TDA7432_RR   0x06 /* Attenuation RR (Right Rear) */
 
#define TDA7432_LD   0x07 /* Loudness */
 
#define TDA7432_STEREO_IN   0
 
#define TDA7432_MONO_IN   2 /* Probably won't be used */
 
#define TDA7432_BASS_SYM   1 << 3
 
#define TDA7432_BASS_NORM   1 << 4
 
#define TDA7432_VOL_0DB   0x20
 
#define TDA7432_LD_ON   1 << 7
 
#define TDA7432_TREBLE_0DB   0xf
 
#define TDA7432_TREBLE   7
 
#define TDA7432_TREBLE_GAIN   1 << 3
 
#define TDA7432_BASS_0DB   0xf
 
#define TDA7432_BASS   7 << 4
 
#define TDA7432_BASS_GAIN   1 << 7
 
#define TDA7432_ATTEN_0DB   0x00
 
#define TDA7432_MUTE   0x1 << 5
 

Functions

 MODULE_AUTHOR ("Eric Sandeen <[email protected]>")
 
 MODULE_DESCRIPTION ("bttv driver for the tda7432 audio processor chip")
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (debug,"Set debugging level from 0 to 3. Default is off(0).")
 
 module_param (loudness, int, S_IRUGO)
 
 MODULE_PARM_DESC (loudness,"Turn loudness on(1) else off(0). Default is off(0).")
 
 module_param (maxvol, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (maxvol,"Set maximium volume to +20dB(0) else +0dB(1). Default is +20dB(0).")
 
 MODULE_DEVICE_TABLE (i2c, tda7432_id)
 
 module_i2c_driver (tda7432_driver)
 

Macro Definition Documentation

#define TDA7432_ATTEN_0DB   0x00

Definition at line 188 of file tda7432.c.

#define TDA7432_BASS   7 << 4

Definition at line 168 of file tda7432.c.

#define TDA7432_BASS_0DB   0xf

Definition at line 167 of file tda7432.c.

#define TDA7432_BASS_GAIN   1 << 7

Definition at line 169 of file tda7432.c.

#define TDA7432_BASS_NORM   1 << 4

Definition at line 124 of file tda7432.c.

#define TDA7432_BASS_SYM   1 << 3

Definition at line 123 of file tda7432.c.

#define TDA7432_IN   0x00 /* Input select */

Definition at line 92 of file tda7432.c.

#define TDA7432_LD   0x07 /* Loudness */

Definition at line 99 of file tda7432.c.

#define TDA7432_LD_ON   1 << 7

Definition at line 140 of file tda7432.c.

#define TDA7432_LF   0x03 /* Attenuation LF (Left Front) */

Definition at line 95 of file tda7432.c.

#define TDA7432_LR   0x04 /* Attenuation LR (Left Rear) */

Definition at line 96 of file tda7432.c.

#define TDA7432_MONO_IN   2 /* Probably won't be used */

Definition at line 122 of file tda7432.c.

#define TDA7432_MUTE   0x1 << 5

Definition at line 189 of file tda7432.c.

#define TDA7432_RF   0x05 /* Attenuation RF (Right Front) */

Definition at line 97 of file tda7432.c.

#define TDA7432_RR   0x06 /* Attenuation RR (Right Rear) */

Definition at line 98 of file tda7432.c.

#define TDA7432_STEREO_IN   0

Definition at line 121 of file tda7432.c.

#define TDA7432_TN   0x02 /* Bass, Treble (Tone) */

Definition at line 94 of file tda7432.c.

#define TDA7432_TREBLE   7

Definition at line 165 of file tda7432.c.

#define TDA7432_TREBLE_0DB   0xf

Definition at line 164 of file tda7432.c.

#define TDA7432_TREBLE_GAIN   1 << 3

Definition at line 166 of file tda7432.c.

#define TDA7432_VL   0x01 /* Volume */

Definition at line 93 of file tda7432.c.

#define TDA7432_VOL_0DB   0x20

Definition at line 139 of file tda7432.c.

#define VIDEO_AUDIO_BALANCE   32

Definition at line 41 of file tda7432.c.

Function Documentation

MODULE_AUTHOR ( "Eric Sandeen <[email protected]>"  )
MODULE_DESCRIPTION ( "bttv driver for the tda7432 audio processor chip )
MODULE_DEVICE_TABLE ( i2c  ,
tda7432_id   
)
module_i2c_driver ( tda7432_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( loudness  ,
int  ,
S_IRUGO   
)
module_param ( maxvol  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( debug  ,
"Set debugging level from 0 to 3. Default is off(0)."   
)
MODULE_PARM_DESC ( loudness  ,
"Turn loudness on(1) else off(0). Default is off(0)."   
)
MODULE_PARM_DESC ( maxvol  ,
"Set maximium volume to +20dB(0) else +0dB(1). Default is +20dB(0)."   
)