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