]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - drivers/media/video/tuner-xc2028-types.h
V4L/DVB (6431): Improve firmware format
[linux-2.6-omap-h63xx.git] / drivers / media / video / tuner-xc2028-types.h
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  */
34 #define DTV6_ATSC       (1<<5)
35 #define DTV6_QAM        (1<<6)
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
63 /* Newer types to be moved to videodev2.h */
64
65 #define V4L2_STD_SECAM_K3       (0x02000000)
66
67 /* Audio types */
68
69 #define V4L2_STD_A2_A           (1L<<32)
70 #define V4L2_STD_A2_B           (1L<<33)
71 #define V4L2_STD_NICAM_A        (1L<<34)
72 #define V4L2_STD_NICAM_B        (1L<<35)
73 #define V4L2_STD_AM             (1L<<36)
74 #define V4L2_STD_BTSC           (1L<<37)
75 #define V4L2_STD__EIAJ          (1L<<38)
76
77 #define V4L2_STD_A2             (V4L2_STD_A2_A    | V4L2_STD_A2_B)
78 #define V4L2_STD_NICAM          (V4L2_STD_NICAM_A | V4L2_STD_NICAM_B)
79
80 /* To preserve backward compatibilty,
81    (std & V4L2_STD_AUDIO) = 0 means that ALL audio stds are supported
82  */
83
84 #define V4L2_STD_AUDIO          (V4L2_STD_A2    | \
85                                  V4L2_STD_NICAM | \
86                                  V4L2_STD_AM    | \
87                                  V4L2_STD_BTSC  | \
88                                  V4L2_STD_EIAJ)
89
90 /* Used standards with audio restrictions */
91
92 #define V4L2_STD_PAL_BG_A2_A    (V4L2_STD_PAL_BG | V4L2_STD_A2_A)
93 #define V4L2_STD_PAL_BG_A2_B    (V4L2_STD_PAL_BG | V4L2_STD_A2_B)
94 #define V4L2_STD_PAL_BG_NICAM_A (V4L2_STD_PAL_BG | V4L2_STD_NICAM_A)
95 #define V4L2_STD_PAL_BG_NICAM_B (V4L2_STD_PAL_BG | V4L2_STD_NICAM_B)
96 #define V4L2_STD_PAL_DK_A2      (V4L2_STD_PAL_DK | V4L2_STD_A2)
97 #define V4L2_STD_PAL_DK_NICAM   (V4L2_STD_PAL_DK | V4L2_STD_NICAM)
98 #define V4L2_STD_SECAM_L_NICAM  (V4L2_STD_SECAM_L | V4L2_STD_NICAM)
99 #define V4L2_STD_SECAM_L_AM     (V4L2_STD_SECAM_L | V4L2_STD_AM)