Lines Matching +full:standard +full:- +full:mode
2 Copyright (c), 2004-2005,2007-2010 Trident Microsystems, Inc.
60 /*------------------------------------------------------------------------------
62 ------------------------------------------------------------------------------*/
69 * \retval -EIO Initialization failed.
78 * \retval -EIO Termination failed.
98 * \retval -EIO Failure.
99 * \retval -EINVAL Parameter 'wcount' is not zero but parameter
133 #define TUNER_MODE_SUB0 0x0001 /* for sub-mode (e.g. RF-AGC setting) */
134 #define TUNER_MODE_SUB1 0x0002 /* for sub-mode (e.g. RF-AGC setting) */
135 #define TUNER_MODE_SUB2 0x0004 /* for sub-mode (e.g. RF-AGC setting) */
136 #define TUNER_MODE_SUB3 0x0008 /* for sub-mode (e.g. RF-AGC setting) */
137 #define TUNER_MODE_SUB4 0x0010 /* for sub-mode (e.g. RF-AGC setting) */
138 #define TUNER_MODE_SUB5 0x0020 /* for sub-mode (e.g. RF-AGC setting) */
139 #define TUNER_MODE_SUB6 0x0040 /* for sub-mode (e.g. RF-AGC setting) */
140 #define TUNER_MODE_SUB7 0x0080 /* for sub-mode (e.g. RF-AGC setting) */
142 #define TUNER_MODE_DIGITAL 0x0100 /* for digital channel (e.g. DVB-T) */
167 u8 sub_mode; /* Index to sub-mode in use */
168 char ***sub_mode_descriptions; /* Pointer to description of sub-modes */
169 u8 sub_modes; /* Number of available sub-modes */
188 u32 mode,
193 u32 mode,
229 u32 mode,
233 u32 mode,
252 * \brief Enable I2C single or I2C multimaster mode on host.
254 * Set to 1 to enable single master mode
255 * Set to 0 to enable multi master mode
259 * overrides or cannot handle the mode defined below.
341 * \brief OOB-RX capability flag
343 * Device has OOB-RX
355 * \brief DVB-T capability flag
357 * Device has DVB-T
362 * \brief ITU-B capability flag
364 * Device has ITU-B
411 * \brief SMA-TX capability flag
418 * \brief SMA-RX capability flag
425 * \brief ITU-A/C capability flag
427 * Device has ITU-A/C
432 /*-------------------------------------------------------------------------
434 -------------------------------------------------------------------------*/
447 * x->lowbyte(x), highbyte(x)
460 /*-------------------------------------------------------------------------
462 -------------------------------------------------------------------------*/
469 DRX_STANDARD_DVBT = 0, /*< Terrestrial DVB-T. */
489 DRX_STANDARD_DTMB, /*< Terrestrial DTMB standard (China)*/
491 /*< Standard unknown. */
493 /*< Autodetect standard. */
498 * \brief Modulation sub-standards.
501 DRX_SUBSTANDARD_MAIN = 0, /*< Main subvariant of standard */
506 /*< Sub-standard unknown. */
508 /*< Auto (default) sub-standard */
619 * \brief FFT mode.
622 DRX_FFTMODE_2K = 0, /*< 2K FFT mode. */
623 DRX_FFTMODE_4K, /*< 4K FFT mode. */
624 DRX_FFTMODE_8K, /*< 8K FFT mode. */
626 /*< FFT mode unknown. */
628 /*< Autodetect FFT mode. */
638 DRX_CLASSIFICATION_COCHANNEL, /*< Co-channel. */
676 /*< Unknown interleave mode */
678 /*< Autodetect interleave mode */
683 * \brief Channel Carrier Mode.
686 DRX_CARRIER_MULTI = 0, /*< Multi carrier mode */
687 DRX_CARRIER_SINGLE, /*< Single carrier mode */
689 /*< Carrier mode unknown. */
690 DRX_CARRIER_AUTO = DRX_AUTO /*< Autodetect carrier mode */
695 * \brief Channel Frame Mode.
706 /*< Frame mode unknown. */
708 /*< Autodetect frame mode */
713 * \brief Frame number in current super-frame.
750 * enum drxu_code_action - indicate if firmware has to be uploaded or verified.
846 * DRX_UIO_MODE_FIRMWARE is an old uio mode.
873 * \enum enum drxoob_downstream_standard * \brief Used to select OOB standard.
875 * Based on ANSI 55-1 and 55-2
879 /*< ANSI 55-1 */
881 /*< ANSI 55-2 A */
883 /*< ANSI 55-2 B */
886 /*-------------------------------------------------------------------------
888 -------------------------------------------------------------------------*/
904 #define DRX_CFG_PINSAFE (DRX_CFG_BASE + 4) /* Pin safe mode */
916 #define DRX_CFG_ATV_STANDARD (DRX_CFG_BASE + 16) /* ATV standard */
942 * o major number = bits 31-20 (first three nibbles of MSW)
943 * o minor number = bits 19-16 (fourth nibble of MSW)
944 * o patch number = bits 15-0 (remaining nibbles in LSW)
950 * - mc_dev_type == 0 => any device allowed
951 * - mc_base_version == 0.0.0 => full microcode (mc_version is the version)
952 * - mc_base_version != 0.0.0 => patch microcode, the base microcode version
958 u16 aux_type; /* type of aux data - 0x8000 for version record */
989 * Only certain fields need to be used for a specific standard.
1015 /*< frame mode */
1016 enum drx_pilot_mode pilot; /*< pilot mode */
1080 void *ext_params; /*< Standard specific params */
1108 * \struct struct drxtps_info * TPS information, DVB-T specific.
1113 enum drx_fft_mode fftmode; /*< Fft mode */
1131 * \brief Power mode of device.
1137 /*< Generic , Power Up Mode */
1139 /*< Device specific , Power Up Mode */
1141 /*< Device specific , Power Up Mode */
1143 /*< Device specific , Power Up Mode */
1145 /*< Device specific , Power Up Mode */
1147 /*< Device specific , Power Up Mode */
1149 /*< Device specific , Power Up Mode */
1151 /*< Device specific , Power Up Mode */
1153 /*< Device specific , Power Up Mode */
1156 /*< Device specific , Power Down Mode */
1158 /*< Device specific , Power Down Mode */
1160 /*< Device specific , Power Down Mode */
1162 /*< Device specific , Power Down Mode */
1164 /*< Device specific , Power Down Mode */
1166 /*< Device specific , Power Down Mode */
1168 /*< Device specific , Power Down Mode */
1170 /*< Device specific , Power Down Mode */
1172 /*< Generic , Power Down Mode */
1231 enum drxuio_mode mode; member
1232 /*< UIO operational mode */
1258 enum drxoob_downstream_standard standard; member
1259 /*< OOB standard */
1358 * \enum enum drx_aud_standard * \brief Audio standard identifier.
1363 DRX_AUD_STANDARD_BTSC, /*< set BTSC standard (USA) */
1364 DRX_AUD_STANDARD_A2, /*< set A2-Korea FM Stereo */
1366 DRX_AUD_STANDARD_FM_STEREO,/*< set to FM-Stereo Radio */
1369 DRX_AUD_STANDARD_BG_FM, /*< set BG_FM standard */
1370 DRX_AUD_STANDARD_D_K1, /*< set D_K1 standard */
1371 DRX_AUD_STANDARD_D_K2, /*< set D_K2 standard */
1372 DRX_AUD_STANDARD_D_K3, /*< set D_K3 standard */
1374 /*< set BG_NICAM_FM standard */
1376 /*< set L_NICAM_AM standard */
1378 /*< set I_NICAM_FM standard */
1380 /*< set D_K_NICAM_FM standard */
1381 DRX_AUD_STANDARD_NOT_READY,/*< used to detect audio standard */
1383 /*< Automatic Standard Detection */
1388 /* CTRL_AUD_GET_STATUS - struct drx_aud_status */
1414 /* CTRL_AUD_READ_RDS - DRXRDSdata_t */
1425 /* DRX_CFG_AUD_VOLUME - struct drx_cfg_aud_volume - set/get */
1464 s16 volume; /*< volume, range -114 to 12 dB */
1465 enum drx_aud_avc_mode avc_mode; /*< AVC auto volume control mode */
1471 s16 strength_left; /*< quasi-peak, left speaker */
1472 s16 strength_right; /*< quasi-peak, right speaker */
1475 /* DRX_CFG_I2S_OUTPUT - struct drx_cfg_i2s_output - set/get */
1477 * \enum enum drxi2s_mode * \brief I2S output mode.
1480 DRX_I2S_MODE_MASTER, /*< I2S is in master mode */
1481 DRX_I2S_MODE_SLAVE /*< I2S is in slave mode */
1506 DRX_I2S_POLARITY_RIGHT,/*< wordstrobe - right high, left low */
1507 DRX_I2S_POLARITY_LEFT /*< wordstrobe - right low, left high */
1515 u32 frequency; /*< range from 8000-48000 Hz */
1516 enum drxi2s_mode mode; /*< I2S mode, master or slave */ member
1523 /* ------------------------------expert interface-----------------------------*/
1525 * /enum enum drx_aud_fm_deemphasis * setting for FM-Deemphasis in audio demodulator.
1536 * setting for deviation mode in audio demodulator.
1613 * /enum enum drx_aud_fm_matrix * setting for FM-Matrix in audio demodulator.
1635 * \brief Audio/video synchronization, interacts with I2S mode.
1636 * AUTO_1 and AUTO_2 are for automatic video standard detection with preference
1666 * \enum enum drx_aud_btsc_detect * \brief BTSC detetcion mode
1696 * \enum enum drx_qam_lock_range * \brief QAM lock range mode
1728 /* Write 8-bits value to device */
1734 /* Read 8-bits value to device */
1740 /* Read modify write 8-bits value to device */
1747 /* Write 16-bits value to device */
1753 /* Read 16-bits value to device */
1759 /* Read modify write 16-bits value to device */
1766 /* Write 32-bits value to device */
1772 /* Read 32-bits value to device */
1778 /* Read modify write 32-bits value to device */
1854 /* Channel scan - inner loop: demod related */
1857 /* Channel scan - inner loop: SYSObj related */
1859 /* Channel scan - parameters for default DTV scan function in core driver */
1870 /*< current power management mode */
1885 /*< current standard selection */
1887 /*< previous standard selection */
1889 /*< standard in DI cache if available */
1916 /*-------------------------------------------------------------------------
1919 -------------------------------------------------------------------------*/
1921 /* standard */
1924 (x == DRX_STANDARD_DVBT) ? "DVB-T" : \
1932 (x == DRX_STANDARD_ITU_A) ? "ITU-A" : \
1933 (x == DRX_STANDARD_ITU_B) ? "ITU-B" : \
1934 (x == DRX_STANDARD_ITU_C) ? "ITU-C" : \
1935 (x == DRX_STANDARD_ITU_D) ? "ITU-D" : \
2012 (x == DRX_CLASSIFICATION_COCHANNEL) ? "Co-channel" : \
2140 (x == DRX_OOB_MODE_A) ? "ANSI 55-1 " : \
2141 (x == DRX_OOB_MODE_B_GRADE_A) ? "ANSI 55-2 A" : \
2142 (x == DRX_OOB_MODE_B_GRADE_B) ? "ANSI 55-2 B" : \
2151 (x == DRX_AUD_STANDARD_M_MONO) ? "M-Standard Mono" : \
2153 (x == DRX_AUD_STANDARD_BG_FM) ? "B/G-Dual Carrier FM (A2)" : \
2154 (x == DRX_AUD_STANDARD_D_K1) ? "D/K1-Dual Carrier FM" : \
2155 (x == DRX_AUD_STANDARD_D_K2) ? "D/K2-Dual Carrier FM" : \
2156 (x == DRX_AUD_STANDARD_D_K3) ? "D/K3-Dual Carrier FM" : \
2157 (x == DRX_AUD_STANDARD_BG_NICAM_FM) ? "B/G-NICAM-FM" : \
2158 (x == DRX_AUD_STANDARD_L_NICAM_AM) ? "L-NICAM-AM" : \
2159 (x == DRX_AUD_STANDARD_I_NICAM_FM) ? "I-NICAM-FM" : \
2160 (x == DRX_AUD_STANDARD_D_K_NICAM_FM) ? "D/K-NICAM-FM" : \
2194 /*-------------------------------------------------------------------------
2196 -------------------------------------------------------------------------*/
2209 #define DRX_ATTR_MCRECORD(d) ((d)->my_common_attr->mcversion)
2210 #define DRX_ATTR_MIRRORFREQSPECT(d) ((d)->my_common_attr->mirror_freq_spect)
2211 #define DRX_ATTR_CURRENTPOWERMODE(d)((d)->my_common_attr->current_power_mode)
2212 #define DRX_ATTR_ISOPENED(d) ((d)->my_common_attr->is_opened)
2213 #define DRX_ATTR_USEBOOTLOADER(d) ((d)->my_common_attr->use_bootloader)
2214 #define DRX_ATTR_CURRENTSTANDARD(d) ((d)->my_common_attr->current_standard)
2215 #define DRX_ATTR_PREVSTANDARD(d) ((d)->my_common_attr->prev_standard)
2216 #define DRX_ATTR_CACHESTANDARD(d) ((d)->my_common_attr->di_cache_standard)
2217 #define DRX_ATTR_CURRENTCHANNEL(d) ((d)->my_common_attr->current_channel)
2218 #define DRX_ATTR_MICROCODE(d) ((d)->my_common_attr->microcode)
2219 #define DRX_ATTR_VERIFYMICROCODE(d) ((d)->my_common_attr->verify_microcode)
2220 #define DRX_ATTR_CAPABILITIES(d) ((d)->my_common_attr->capabilities)
2221 #define DRX_ATTR_PRODUCTID(d) ((d)->my_common_attr->product_id)
2222 #define DRX_ATTR_INTERMEDIATEFREQ(d) ((d)->my_common_attr->intermediate_freq)
2223 #define DRX_ATTR_SYSCLOCKFREQ(d) ((d)->my_common_attr->sys_clock_freq)
2224 #define DRX_ATTR_TUNERRFAGCPOL(d) ((d)->my_common_attr->tuner_rf_agc_pol)
2225 #define DRX_ATTR_TUNERIFAGCPOL(d) ((d)->my_common_attr->tuner_if_agc_pol)
2226 #define DRX_ATTR_TUNERSLOWMODE(d) ((d)->my_common_attr->tuner_slow_mode)
2227 #define DRX_ATTR_TUNERSPORTNR(d) ((d)->my_common_attr->tuner_port_nr)
2228 #define DRX_ATTR_I2CADDR(d) ((d)->my_i2c_dev_addr->i2c_addr)
2229 #define DRX_ATTR_I2CDEVID(d) ((d)->my_i2c_dev_addr->i2c_dev_id)
2234 /* Macros with device-specific handling are converted to CFG functions */
2271 /* Access Macros with device-specific handling */
2289 * \brief Macro to check if std is an ATV standard
2290 * \retval true std is an ATV standard
2291 * \retval false std is an ATV standard
2302 * \brief Macro to check if std is an QAM standard
2312 * \brief Macro to check if std is VSB standard
2313 * \retval true std is VSB standard
2314 * \retval false std is not VSB standard
2319 * \brief Macro to check if std is DVBT standard
2320 * \retval true std is DVBT standard
2321 * \retval false std is not DVBT standard
2325 /*-------------------------------------------------------------------------
2327 -------------------------------------------------------------------------*/