aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-xc2028.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-11-22 10:08:53 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:39 -0500
commit5add9a6f3c90680f89b4694e81025d2aed9559af (patch)
treea7661548230608cf9f6e49eaa4e314d25c6fd035 /drivers/media/video/tuner-xc2028.h
parenta5e9fe149afb0fdf0de4729f1b0d203d4ac14906 (diff)
V4L/DVB (6659): Convert MTS to bitfield
Xc2028.3028 has two type of firmwares: audio-standard specific ones and baseband MTS firmwares. MTS firmwares provide stereo decoding for 6 MHz BTSC/EIAJ and for monoaural audio decoding on 8 MHz firmwares. It seems that the option to use MTS or a standard-specific audio decoding depends on the way xc2028/3028 is connected. Instead of wasting 32 (or 64 bits) to signalize if the driver needs to use MTS firmware, this patch converts it to a bitfield that can be shared with other proprieties of xc2028/3028. 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.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/media/video/tuner-xc2028.h b/drivers/media/video/tuner-xc2028.h
index 16259b14ce90..f24fb2a00f6f 100644
--- a/drivers/media/video/tuner-xc2028.h
+++ b/drivers/media/video/tuner-xc2028.h
@@ -11,17 +11,12 @@
11 11
12#define XC2028_DEFAULT_FIRMWARE "xc3028-v27.fw" 12#define XC2028_DEFAULT_FIRMWARE "xc3028-v27.fw"
13 13
14enum xc2028_firm_type {
15 XC2028_FIRM_NORMAL,
16 XC2028_FIRM_MTS,
17};
18
19struct xc2028_ctrl { 14struct xc2028_ctrl {
20 enum xc2028_firm_type type;
21 char *fname; 15 char *fname;
22 int max_len; 16 int max_len;
23 int d2633:1;
24 unsigned int scode_table; 17 unsigned int scode_table;
18 unsigned int mts :1;
19 unsigned int d2633:1;
25}; 20};
26 21
27struct xc2028_config { 22struct xc2028_config {