1/* tuner-xc2028_types 2 * 3 * This file includes internal tipes to be used inside tuner-xc2028. 4 * Shouldn't be included outside tuner-xc2028 5 * 6 * Copyright (c) 2007-2008 Mauro Carvalho Chehab (mchehab@infradead.org) 7 * This code is placed under the terms of the GNU General Public License v2 8 */ 9 10/* xc3028 firmware types */ 11 12/* BASE firmware should be loaded before any other firmware */ 13#define BASE (1<<0) 14#define BASE_TYPES (BASE|F8MHZ|MTS|FM|INPUT1|INPUT2|INIT1) 15 16/* F8MHZ marks BASE firmwares for 8 MHz Bandwidth */ 17#define F8MHZ (1<<1) 18 19/* Multichannel Television Sound (MTS) 20 Those firmwares are capable of using xc2038 DSP to decode audio and 21 produce a baseband audio output on some pins of the chip. 22 There are MTS firmwares for the most used video standards. It should be 23 required to use MTS firmwares, depending on the way audio is routed into 24 the bridge chip 25 */ 26#define MTS (1<<2) 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 */ 35#define DTV6 (1 << 5) 36#define QAM (1 << 6) 37#define DTV7 (1<<7) 38#define DTV78 (1<<8) 39#define DTV8 (1<<9) 40 41#define DTV_TYPES (D2620|D2633|DTV6|QAM|DTV7|DTV78|DTV8|ATSC) 42 43/* There's a FM | BASE firmware + FM specific firmware (std=0) */ 44#define FM (1<<10) 45 46#define STD_SPECIFIC_TYPES (MTS|FM|LCD|NOGD) 47 48/* Applies only for FM firmware 49 Makes it use RF input 1 (pin #2) instead of input 2 (pin #4) 50 */ 51#define INPUT1 (1<<11) 52 53 54/* LCD firmwares exist only for MTS STD/MN (PAL or NTSC/M) 55 and for non-MTS STD/MN (PAL, NTSC/M or NTSC/Kr) 56 There are variants both with and without NOGD 57 Those firmwares produce better result with LCD displays 58 */ 59#define LCD (1<<12) 60 61/* NOGD firmwares exist only for MTS STD/MN (PAL or NTSC/M) 62 and for non-MTS STD/MN (PAL, NTSC/M or NTSC/Kr) 63 The NOGD firmwares don't have group delay compensation filter 64 */ 65#define NOGD (1<<13) 66 67/* Old firmwares were broken into init0 and init1 */ 68#define INIT1 (1<<14) 69 70/* SCODE firmware selects particular behaviours */ 71#define MONO (1 << 15) 72#define ATSC (1 << 16) 73#define IF (1 << 17) 74#define LG60 (1 << 18) 75#define ATI638 (1 << 19) 76#define OREN538 (1 << 20) 77#define OREN36 (1 << 21) 78#define TOYOTA388 (1 << 22) 79#define TOYOTA794 (1 << 23) 80#define DIBCOM52 (1 << 24) 81#define ZARLINK456 (1 << 25) 82#define CHINA (1 << 26) 83#define F6MHZ (1 << 27) 84#define INPUT2 (1 << 28) 85#define SCODE (1 << 29) 86 87/* This flag identifies that the scode table has a new format */ 88#define HAS_IF (1 << 30) 89 90/* There are different scode tables for MTS and non-MTS. 91 The MTS firmwares support mono only 92 */ 93#define SCODE_TYPES (SCODE | MTS) 94 95 96/* Newer types not defined on videodev2.h. 97 The original idea were to move all those types to videodev2.h, but 98 it seemed overkill, since, with the exception of SECAM/K3, the other 99 types seem to be autodetected. 100 It is not clear where secam/k3 is used, nor we have a feedback of this 101 working or being autodetected by the standard secam firmware. 102 */ 103 104#define V4L2_STD_SECAM_K3 (0x04000000) 105 106/* Audio types */ 107 108#define V4L2_STD_A2_A (1LL<<32) 109#define V4L2_STD_A2_B (1LL<<33) 110#define V4L2_STD_NICAM_A (1LL<<34) 111#define V4L2_STD_NICAM_B (1LL<<35) 112#define V4L2_STD_AM (1LL<<36) 113#define V4L2_STD_BTSC (1LL<<37) 114#define V4L2_STD_EIAJ (1LL<<38) 115 116#define V4L2_STD_A2 (V4L2_STD_A2_A | V4L2_STD_A2_B) 117#define V4L2_STD_NICAM (V4L2_STD_NICAM_A | V4L2_STD_NICAM_B) 118 119/* To preserve backward compatibilty, 120 (std & V4L2_STD_AUDIO) = 0 means that ALL audio stds are supported 121 */ 122 123#define V4L2_STD_AUDIO (V4L2_STD_A2 | \ 124 V4L2_STD_NICAM | \ 125 V4L2_STD_AM | \ 126 V4L2_STD_BTSC | \ 127 V4L2_STD_EIAJ) 128 129/* Used standards with audio restrictions */ 130 131#define V4L2_STD_PAL_BG_A2_A (V4L2_STD_PAL_BG | V4L2_STD_A2_A) 132#define V4L2_STD_PAL_BG_A2_B (V4L2_STD_PAL_BG | V4L2_STD_A2_B) 133#define V4L2_STD_PAL_BG_NICAM_A (V4L2_STD_PAL_BG | V4L2_STD_NICAM_A) 134#define V4L2_STD_PAL_BG_NICAM_B (V4L2_STD_PAL_BG | V4L2_STD_NICAM_B) 135#define V4L2_STD_PAL_DK_A2 (V4L2_STD_PAL_DK | V4L2_STD_A2) 136#define V4L2_STD_PAL_DK_NICAM (V4L2_STD_PAL_DK | V4L2_STD_NICAM) 137#define V4L2_STD_SECAM_L_NICAM (V4L2_STD_SECAM_L | V4L2_STD_NICAM) 138#define V4L2_STD_SECAM_L_AM (V4L2_STD_SECAM_L | V4L2_STD_AM) 139