diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-01-09 12:25:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:25:18 -0500 |
commit | f98c55ea18e87905bdf69eb4a187e94572ed9494 (patch) | |
tree | 7e5c755c76bc268ed761735e8fe75d56fa661654 /include | |
parent | a82c51d59344117320eeda3715f93c0695a9fbe6 (diff) |
V4L/DVB (3116): tda9887 improvements: better defaults, better configurability.
- Set the tuner takeover point to 0x10 for NTSC/radio and 0x14 for PAL/SECAM.
- Allow override through TDA9887_SET_CONFIG
- PAL-N belongs with PAL-BG as does PAL-H. PAL-Nc belongs to PAL-M
- Add SECAM-BGH
- Set video freq to cVideoIF_38_90 for DK standards.
- Add cTunerGainLow to radio, change deemphasis to 75 for mono.
- Add ntsc module param for 'M' and 'J' (Japanese) standards.
- Fix module handling for 2.4.
- Now able to select all standards through pal/secam/ntsc module options
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/tuner.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/include/media/tuner.h b/include/media/tuner.h index e224722a7ff7..567f05549e3a 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -120,20 +120,25 @@ | |||
120 | #define TDA9887_SET_CONFIG _IOW('t',5,int) | 120 | #define TDA9887_SET_CONFIG _IOW('t',5,int) |
121 | 121 | ||
122 | /* tv card specific */ | 122 | /* tv card specific */ |
123 | # define TDA9887_PRESENT (1<<0) | 123 | #define TDA9887_PRESENT (1<<0) |
124 | # define TDA9887_PORT1_INACTIVE (1<<1) | 124 | #define TDA9887_PORT1_INACTIVE (1<<1) |
125 | # define TDA9887_PORT2_INACTIVE (1<<2) | 125 | #define TDA9887_PORT2_INACTIVE (1<<2) |
126 | # define TDA9887_QSS (1<<3) | 126 | #define TDA9887_QSS (1<<3) |
127 | # define TDA9887_INTERCARRIER (1<<4) | 127 | #define TDA9887_INTERCARRIER (1<<4) |
128 | # define TDA9887_PORT1_ACTIVE (1<<5) | 128 | #define TDA9887_PORT1_ACTIVE (1<<5) |
129 | # define TDA9887_PORT2_ACTIVE (1<<6) | 129 | #define TDA9887_PORT2_ACTIVE (1<<6) |
130 | # define TDA9887_INTERCARRIER_NTSC (1<<7) | 130 | #define TDA9887_INTERCARRIER_NTSC (1<<7) |
131 | /* Tuner takeover point adjustment, in dB, -16 <= top <= 15 */ | ||
132 | #define TDA9887_TOP_MASK (0x3f << 8) | ||
133 | #define TDA9887_TOP_SET (1 << 13) | ||
134 | #define TDA9887_TOP(top) (TDA9887_TOP_SET | (((16 + (top)) & 0x1f) << 8)) | ||
135 | |||
131 | /* config options */ | 136 | /* config options */ |
132 | # define TDA9887_DEEMPHASIS_MASK (3<<16) | 137 | #define TDA9887_DEEMPHASIS_MASK (3<<16) |
133 | # define TDA9887_DEEMPHASIS_NONE (1<<16) | 138 | #define TDA9887_DEEMPHASIS_NONE (1<<16) |
134 | # define TDA9887_DEEMPHASIS_50 (2<<16) | 139 | #define TDA9887_DEEMPHASIS_50 (2<<16) |
135 | # define TDA9887_DEEMPHASIS_75 (3<<16) | 140 | #define TDA9887_DEEMPHASIS_75 (3<<16) |
136 | # define TDA9887_AUTOMUTE (1<<18) | 141 | #define TDA9887_AUTOMUTE (1<<18) |
137 | 142 | ||
138 | #ifdef __KERNEL__ | 143 | #ifdef __KERNEL__ |
139 | 144 | ||