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