diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-25 17:26:36 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:58 -0500 |
commit | 66c2d53db28276fe49b49745230b7ac8d8fd5f47 (patch) | |
tree | a9cad146ff33ea21b0a48dd6146ee9a147b66088 /drivers/media/video/tuner-xc2028.h | |
parent | b542dfdc9f6e6eaf3cc2ede27dbaf50425f8b4b5 (diff) |
V4L/DVB (6676): Improve s-code support
s-code tables are related to IF frequency used for video demodulation.
The s-codes for analog are automatically loaded, according with video standard.
However, for digital, they will depend on the IF of the demoduler chip. IF of
the demoduler.
Before this patch, only a few IF's where possible to use. This patch allows
selecting any IF defined at firmware file.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.h')
-rw-r--r-- | drivers/media/video/tuner-xc2028.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h index 9b4224e2fe53..1fe8b195960c 100644 --- a/drivers/media/video/tuner-xc2028.h +++ b/drivers/media/video/tuner-xc2028.h | |||
@@ -11,19 +11,17 @@ | |||
11 | 11 | ||
12 | #define XC2028_DEFAULT_FIRMWARE "xc3028-v27.fw" | 12 | #define XC2028_DEFAULT_FIRMWARE "xc3028-v27.fw" |
13 | 13 | ||
14 | enum xc2028_demod_types | 14 | /* Dmoduler IF (kHz) */ |
15 | { | 15 | #define XC3028_FE_DEFAULT 0 |
16 | XC3028_FE_DEFAULT = 0, | 16 | #define XC3028_FE_LG60 6000 |
17 | XC3028_FE_LG60, /* IF = 6.00 MHz */ | 17 | #define XC3028_FE_ATI638 6380 |
18 | XC3028_FE_ATI638, /* IF = 6.38 MHz */ | 18 | #define XC3028_FE_OREN538 5380 |
19 | XC3028_FE_OREN538, /* IF = 5.38 MHz */ | 19 | #define XC3028_FE_OREN36 3600 |
20 | XC3028_FE_OREN36, /* IF = 3.60 MHz */ | 20 | #define XC3028_FE_TOYOTA388 3880 |
21 | XC3028_FE_TOYOTA388, /* IF = 3.88 MHz */ | 21 | #define XC3028_FE_TOYOTA794 7940 |
22 | XC3028_FE_TOYOTA794, /* IF = 7.94 MHz */ | 22 | #define XC3028_FE_DIBCOM52 5200 |
23 | XC3028_FE_DIBCOM52, /* IF = 5.20 MHz */ | 23 | #define XC3028_FE_ZARLINK456 4560 |
24 | XC3028_FE_ZARLINK456, /* IF = 4.56 MHz */ | 24 | #define XC3028_FE_CHINA 5200 |
25 | XC3028_FE_CHINA, /* IF = 5.20 MHz */ | ||
26 | }; | ||
27 | 25 | ||
28 | struct xc2028_ctrl { | 26 | struct xc2028_ctrl { |
29 | char *fname; | 27 | char *fname; |
@@ -32,7 +30,7 @@ struct xc2028_ctrl { | |||
32 | unsigned int mts :1; | 30 | unsigned int mts :1; |
33 | unsigned int d2633 :1; | 31 | unsigned int d2633 :1; |
34 | unsigned int input1:1; | 32 | unsigned int input1:1; |
35 | enum xc2028_demod_types demod; | 33 | unsigned int demod; |
36 | }; | 34 | }; |
37 | 35 | ||
38 | struct xc2028_config { | 36 | struct xc2028_config { |