Commit | Line | Data |
---|---|---|
de3fe21b MCC |
1 | /* tuner-xc2028_types |
2 | * | |
3 | * Copyright (c) 2007 Mauro Carvalho Chehab (mchehab@infradead.org) | |
4 | * This code is placed under the terms of the GNU General Public License v2 | |
5 | */ | |
6 | ||
7 | /* xc3028 firmware types */ | |
8 | ||
9 | /* BASE firmware should be loaded before any other firmware */ | |
10 | #define BASE (1<<0) | |
e0f0b37a | 11 | #define BASE_TYPES (BASE|F8MHZ|MTS|FM|INPUT1|INPUT2|INIT1) |
de3fe21b MCC |
12 | |
13 | /* F8MHZ marks BASE firmwares for 8 MHz Bandwidth */ | |
14 | #define F8MHZ (1<<1) | |
15 | ||
16 | /* Multichannel Television Sound (MTS) | |
17 | Those firmwares are capable of using xc2038 DSP to decode audio and | |
18 | produce a baseband audio output on some pins of the chip. | |
19 | There are MTS firmwares for the most used video standards. It should be | |
20 | required to use MTS firmwares, depending on the way audio is routed into | |
21 | the bridge chip | |
22 | */ | |
23 | #define MTS (1<<2) | |
24 | ||
25 | /* FIXME: I have no idea what's the difference between | |
26 | D2620 and D2633 firmwares | |
27 | */ | |
28 | #define D2620 (1<<3) | |
29 | #define D2633 (1<<4) | |
30 | ||
31 | /* DTV firmwares for 6, 7 and 8 MHz | |
32 | DTV6 - 6MHz - ATSC/DVB-C/DVB-T/ISDB-T/DOCSIS | |
33 | DTV8 - 8MHz - DVB-C/DVB-T | |
34 | */ | |
43efe702 MCC |
35 | #define DTV6 (1 << 5) |
36 | #define QAM (1 << 6) | |
de3fe21b MCC |
37 | #define DTV7 (1<<7) |
38 | #define DTV78 (1<<8) | |
39 | #define DTV8 (1<<9) | |
40 | ||
e0f0b37a CP |
41 | #define DTV_TYPES (D2620|D2633|DTV6|QAM|DTV7|DTV78|DTV8|ATSC) |
42 | ||
de3fe21b MCC |
43 | /* There's a FM | BASE firmware + FM specific firmware (std=0) */ |
44 | #define FM (1<<10) | |
45 | ||
46 | /* Applies only for FM firmware | |
47 | Makes it use RF input 1 (pin #2) instead of input 2 (pin #4) | |
48 | */ | |
49 | #define INPUT1 (1<<11) | |
50 | ||
51 | ||
52 | /* LCD firmwares exist only for MTS STD/MN (PAL or NTSC/M) | |
53 | and for non-MTS STD/MN (PAL, NTSC/M or NTSC/Kr) | |
54 | There are variants both with and without NOGD | |
55 | */ | |
56 | #define LCD (1<<12) | |
57 | ||
58 | /* NOGD firmwares exist only for MTS STD/MN (PAL or NTSC/M) | |
59 | and for non-MTS STD/MN (PAL, NTSC/M or NTSC/Kr) | |
60 | */ | |
61 | #define NOGD (1<<13) | |
62 | ||
63 | /* Old firmwares were broken into init0 and init1 */ | |
64 | #define INIT1 (1<<14) | |
65 | ||
e0f0b37a | 66 | /* SCODE firmware selects particular behaviours */ |
43efe702 MCC |
67 | #define MONO (1 << 15) |
68 | #define ATSC (1 << 16) | |
69 | #define IF (1 << 17) | |
70 | #define LG60 (1 << 18) | |
71 | #define ATI638 (1 << 19) | |
72 | #define OREN538 (1 << 20) | |
73 | #define OREN36 (1 << 21) | |
74 | #define TOYOTA388 (1 << 22) | |
75 | #define TOYOTA794 (1 << 23) | |
76 | #define DIBCOM52 (1 << 24) | |
77 | #define ZARLINK456 (1 << 25) | |
78 | #define CHINA (1 << 26) | |
79 | #define F6MHZ (1 << 27) | |
80 | #define INPUT2 (1 << 28) | |
81 | #define SCODE (1 << 29) | |
82 | ||
e0f0b37a CP |
83 | #define SCODE_TYPES (MTS|DTV6|QAM|DTV7|DTV78|DTV8|LCD|NOGD|MONO|ATSC|IF| \ |
84 | LG60|ATI638|OREN538|OREN36|TOYOTA388|TOYOTA794| \ | |
85 | DIBCOM52|ZARLINK456|CHINA|F6MHZ|SCODE) | |
86 | ||
de3fe21b MCC |
87 | /* Newer types to be moved to videodev2.h */ |
88 | ||
43efe702 | 89 | #define V4L2_STD_SECAM_K3 (0x04000000) |
de3fe21b MCC |
90 | |
91 | /* Audio types */ | |
92 | ||
ef8c1888 MCC |
93 | #define V4L2_STD_A2_A (1LL<<32) |
94 | #define V4L2_STD_A2_B (1LL<<33) | |
95 | #define V4L2_STD_NICAM_A (1LL<<34) | |
96 | #define V4L2_STD_NICAM_B (1LL<<35) | |
97 | #define V4L2_STD_AM (1LL<<36) | |
98 | #define V4L2_STD_BTSC (1LL<<37) | |
99 | #define V4L2_STD_EIAJ (1LL<<38) | |
de3fe21b MCC |
100 | |
101 | #define V4L2_STD_A2 (V4L2_STD_A2_A | V4L2_STD_A2_B) | |
102 | #define V4L2_STD_NICAM (V4L2_STD_NICAM_A | V4L2_STD_NICAM_B) | |
103 | ||
104 | /* To preserve backward compatibilty, | |
105 | (std & V4L2_STD_AUDIO) = 0 means that ALL audio stds are supported | |
106 | */ | |
107 | ||
108 | #define V4L2_STD_AUDIO (V4L2_STD_A2 | \ | |
109 | V4L2_STD_NICAM | \ | |
110 | V4L2_STD_AM | \ | |
111 | V4L2_STD_BTSC | \ | |
112 | V4L2_STD_EIAJ) | |
113 | ||
114 | /* Used standards with audio restrictions */ | |
115 | ||
116 | #define V4L2_STD_PAL_BG_A2_A (V4L2_STD_PAL_BG | V4L2_STD_A2_A) | |
117 | #define V4L2_STD_PAL_BG_A2_B (V4L2_STD_PAL_BG | V4L2_STD_A2_B) | |
118 | #define V4L2_STD_PAL_BG_NICAM_A (V4L2_STD_PAL_BG | V4L2_STD_NICAM_A) | |
119 | #define V4L2_STD_PAL_BG_NICAM_B (V4L2_STD_PAL_BG | V4L2_STD_NICAM_B) | |
120 | #define V4L2_STD_PAL_DK_A2 (V4L2_STD_PAL_DK | V4L2_STD_A2) | |
121 | #define V4L2_STD_PAL_DK_NICAM (V4L2_STD_PAL_DK | V4L2_STD_NICAM) | |
122 | #define V4L2_STD_SECAM_L_NICAM (V4L2_STD_SECAM_L | V4L2_STD_NICAM) | |
123 | #define V4L2_STD_SECAM_L_AM (V4L2_STD_SECAM_L | V4L2_STD_AM) |