📄 tuner-types.c
字号:
.has_tda9887 = 1, .port1_active = 1, .port2_invert_for_secam_lc = 1, .default_top_mid = -2, .default_top_secam_low = -2, .default_top_secam_mid = -2, .default_top_secam_high = -2, },};/* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */static struct tuner_params tuner_philips_fq1236a_mk4_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_fm1236_mk3_ntsc_ranges, .count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges), },};/* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */static struct tuner_params tuner_ymec_tvf_8531mf_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_philips_ntsc_m_ranges, .count = ARRAY_SIZE(tuner_philips_ntsc_m_ranges), },};/* ------------ TUNER_YMEC_TVF_5533MF - Philips NTSC ------------ */static struct tuner_range tuner_ymec_tvf_5533mf_ntsc_ranges[] = { { 16 * 160.00 /*MHz*/, 0x8e, 0x01, }, { 16 * 454.00 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x04, },};static struct tuner_params tuner_ymec_tvf_5533mf_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_ymec_tvf_5533mf_ntsc_ranges, .count = ARRAY_SIZE(tuner_ymec_tvf_5533mf_ntsc_ranges), },};/* 60-69 *//* ------------ TUNER_THOMSON_DTT761X - THOMSON ATSC ------------ *//* DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A */static struct tuner_range tuner_thomson_dtt761x_ntsc_ranges[] = { { 16 * 145.25 /*MHz*/, 0x8e, 0x39, }, { 16 * 415.25 /*MHz*/, 0x8e, 0x3a, }, { 16 * 999.99 , 0x8e, 0x3c, },};static struct tuner_range tuner_thomson_dtt761x_atsc_ranges[] = { { 16 * 147.00 /*MHz*/, 0x8e, 0x39, }, { 16 * 417.00 /*MHz*/, 0x8e, 0x3a, }, { 16 * 999.99 , 0x8e, 0x3c, },};static struct tuner_params tuner_thomson_dtt761x_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_thomson_dtt761x_ntsc_ranges, .count = ARRAY_SIZE(tuner_thomson_dtt761x_ntsc_ranges), .has_tda9887 = 1, .fm_gain_normal = 1, .radio_if = 2, /* 41.3 MHz */ }, { .type = TUNER_PARAM_TYPE_DIGITAL, .ranges = tuner_thomson_dtt761x_atsc_ranges, .count = ARRAY_SIZE(tuner_thomson_dtt761x_atsc_ranges), .iffreq = 16 * 44.00, /*MHz*/ },};/* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */static struct tuner_range tuner_tena_9533_di_pal_ranges[] = { { 16 * 160.25 /*MHz*/, 0x8e, 0x01, }, { 16 * 464.25 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x04, },};static struct tuner_params tuner_tena_9533_di_params[] = { { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_tena_9533_di_pal_ranges, .count = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges), },};/* ------------ TUNER_PHILIPS_FMD1216ME(X)_MK3 - Philips PAL ------------ */static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = { { 16 * 160.00 /*MHz*/, 0x86, 0x51, }, { 16 * 442.00 /*MHz*/, 0x86, 0x52, }, { 16 * 999.99 , 0x86, 0x54, },};static struct tuner_range tuner_philips_fmd1216me_mk3_dvb_ranges[] = { { 16 * 143.87 /*MHz*/, 0xbc, 0x41 }, { 16 * 158.87 /*MHz*/, 0xf4, 0x41 }, { 16 * 329.87 /*MHz*/, 0xbc, 0x42 }, { 16 * 441.87 /*MHz*/, 0xf4, 0x42 }, { 16 * 625.87 /*MHz*/, 0xbc, 0x44 }, { 16 * 803.87 /*MHz*/, 0xf4, 0x44 }, { 16 * 999.99 , 0xfc, 0x44 },};static struct tuner_params tuner_philips_fmd1216me_mk3_params[] = { { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_philips_fmd1216me_mk3_pal_ranges, .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges), .has_tda9887 = 1, .port1_active = 1, .port2_active = 1, .port2_fm_high_sensitivity = 1, .port2_invert_for_secam_lc = 1, .port1_set_for_fm_mono = 1, }, { .type = TUNER_PARAM_TYPE_DIGITAL, .ranges = tuner_philips_fmd1216me_mk3_dvb_ranges, .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_dvb_ranges), .iffreq = 16 * 36.125, /*MHz*/ },};static struct tuner_params tuner_philips_fmd1216mex_mk3_params[] = { { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_philips_fmd1216me_mk3_pal_ranges, .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_pal_ranges), .has_tda9887 = 1, .port1_active = 1, .port2_active = 1, .port2_fm_high_sensitivity = 1, .port2_invert_for_secam_lc = 1, .port1_set_for_fm_mono = 1, .radio_if = 1, .fm_gain_normal = 1, }, { .type = TUNER_PARAM_TYPE_DIGITAL, .ranges = tuner_philips_fmd1216me_mk3_dvb_ranges, .count = ARRAY_SIZE(tuner_philips_fmd1216me_mk3_dvb_ranges), .iffreq = 16 * 36.125, /*MHz*/ },};/* ------ TUNER_LG_TDVS_H06XF - LG INNOTEK / INFINEON ATSC ----- */static struct tuner_range tuner_tua6034_ntsc_ranges[] = { { 16 * 165.00 /*MHz*/, 0x8e, 0x01 }, { 16 * 450.00 /*MHz*/, 0x8e, 0x02 }, { 16 * 999.99 , 0x8e, 0x04 },};static struct tuner_range tuner_tua6034_atsc_ranges[] = { { 16 * 165.00 /*MHz*/, 0xce, 0x01 }, { 16 * 450.00 /*MHz*/, 0xce, 0x02 }, { 16 * 999.99 , 0xce, 0x04 },};static struct tuner_params tuner_lg_tdvs_h06xf_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_tua6034_ntsc_ranges, .count = ARRAY_SIZE(tuner_tua6034_ntsc_ranges), }, { .type = TUNER_PARAM_TYPE_DIGITAL, .ranges = tuner_tua6034_atsc_ranges, .count = ARRAY_SIZE(tuner_tua6034_atsc_ranges), .iffreq = 16 * 44.00, },};/* ------------ TUNER_YMEC_TVF66T5_B_DFF - Philips PAL ------------ */static struct tuner_range tuner_ymec_tvf66t5_b_dff_pal_ranges[] = { { 16 * 160.25 /*MHz*/, 0x8e, 0x01, }, { 16 * 464.25 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x08, },};static struct tuner_params tuner_ymec_tvf66t5_b_dff_params[] = { { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_ymec_tvf66t5_b_dff_pal_ranges, .count = ARRAY_SIZE(tuner_ymec_tvf66t5_b_dff_pal_ranges), },};/* ------------ TUNER_LG_NTSC_TALN_MINI - LGINNOTEK NTSC ------------ */static struct tuner_range tuner_lg_taln_ntsc_ranges[] = { { 16 * 137.25 /*MHz*/, 0x8e, 0x01, }, { 16 * 373.25 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x08, },};static struct tuner_range tuner_lg_taln_pal_secam_ranges[] = { { 16 * 150.00 /*MHz*/, 0x8e, 0x01, }, { 16 * 425.00 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x08, },};static struct tuner_params tuner_lg_taln_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_lg_taln_ntsc_ranges, .count = ARRAY_SIZE(tuner_lg_taln_ntsc_ranges), },{ .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_lg_taln_pal_secam_ranges, .count = ARRAY_SIZE(tuner_lg_taln_pal_secam_ranges), },};/* ------------ TUNER_PHILIPS_TD1316 - Philips PAL ------------ */static struct tuner_range tuner_philips_td1316_pal_ranges[] = { { 16 * 160.00 /*MHz*/, 0xc8, 0xa1, }, { 16 * 442.00 /*MHz*/, 0xc8, 0xa2, }, { 16 * 999.99 , 0xc8, 0xa4, },};static struct tuner_range tuner_philips_td1316_dvb_ranges[] = { { 16 * 93.834 /*MHz*/, 0xca, 0x60, }, { 16 * 123.834 /*MHz*/, 0xca, 0xa0, }, { 16 * 163.834 /*MHz*/, 0xca, 0xc0, }, { 16 * 253.834 /*MHz*/, 0xca, 0x60, }, { 16 * 383.834 /*MHz*/, 0xca, 0xa0, }, { 16 * 443.834 /*MHz*/, 0xca, 0xc0, }, { 16 * 583.834 /*MHz*/, 0xca, 0x60, }, { 16 * 793.834 /*MHz*/, 0xca, 0xa0, }, { 16 * 999.999 , 0xca, 0xe0, },};static struct tuner_params tuner_philips_td1316_params[] = { { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_philips_td1316_pal_ranges, .count = ARRAY_SIZE(tuner_philips_td1316_pal_ranges), }, { .type = TUNER_PARAM_TYPE_DIGITAL, .ranges = tuner_philips_td1316_dvb_ranges, .count = ARRAY_SIZE(tuner_philips_td1316_dvb_ranges), .iffreq = 16 * 36.166667 /*MHz*/, },};/* ------------ TUNER_PHILIPS_TUV1236D - Philips ATSC ------------ */static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = { { 16 * 157.25 /*MHz*/, 0xce, 0x01, }, { 16 * 454.00 /*MHz*/, 0xce, 0x02, }, { 16 * 999.99 , 0xce, 0x04, },};static struct tuner_range tuner_tuv1236d_atsc_ranges[] = { { 16 * 157.25 /*MHz*/, 0xc6, 0x41, }, { 16 * 454.00 /*MHz*/, 0xc6, 0x42, }, { 16 * 999.99 , 0xc6, 0x44, },};static struct tuner_params tuner_tuv1236d_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_tuv1236d_ntsc_ranges, .count = ARRAY_SIZE(tuner_tuv1236d_ntsc_ranges), }, { .type = TUNER_PARAM_TYPE_DIGITAL, .ranges = tuner_tuv1236d_atsc_ranges, .count = ARRAY_SIZE(tuner_tuv1236d_atsc_ranges), .iffreq = 16 * 44.00, },};/* ------------ TUNER_TNF_xxx5 - Texas Instruments--------- *//* This is known to work with Tenna TVF58t5-MFF and TVF5835 MFF * but it is expected to work also with other Tenna/Ymec * models based on TI SN 761677 chip on both PAL and NTSC */static struct tuner_range tuner_tnf_5335_d_if_pal_ranges[] = { { 16 * 168.25 /*MHz*/, 0x8e, 0x01, }, { 16 * 471.25 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x08, },};static struct tuner_range tuner_tnf_5335mf_ntsc_ranges[] = { { 16 * 169.25 /*MHz*/, 0x8e, 0x01, }, { 16 * 469.25 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x08, },};static struct tuner_params tuner_tnf_5335mf_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_tnf_5335mf_ntsc_ranges, .count = ARRAY_SIZE(tuner_tnf_5335mf_ntsc_ranges), }, { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_tnf_5335_d_if_pal_ranges, .count = ARRAY_SIZE(tuner_tnf_5335_d_if_pal_ranges), },};/* 70-79 *//* ------------ TUNER_SAMSUNG_TCPN_2121P30A - Samsung NTSC ------------ *//* '+ 4' turns on the Low Noise Amplifier */static struct tuner_range tuner_samsung_tcpn_2121p30a_ntsc_ranges[] = { { 16 * 130.00 /*MHz*/, 0xce, 0x01 + 4, }, { 16 * 364.50 /*MHz*/, 0xce, 0x02 + 4, }, { 16 * 999.99 , 0xce, 0x08 + 4, },};static struct tuner_params tuner_samsung_tcpn_2121p30a_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_samsung_tcpn_2121p30a_ntsc_ranges, .count = ARRAY_SIZE(tuner_samsung_tcpn_2121p30a_ntsc_ranges), },};/* ------------ TUNER_THOMSON_FE6600 - DViCO Hybrid PAL ------------ */static struct tuner_range tuner_thomson_fe6600_pal_ranges[] = { { 16 * 160.00 /*MHz*/, 0xfe, 0x11, }, { 16 * 442.00 /*MHz*/, 0xf6, 0x12, }, { 16 * 999.99 , 0xf6, 0x18, },};static struct tuner_range tuner_thomson_fe6600_dvb_ranges[] = { { 16 * 250.00 /*MHz*/, 0xb4, 0x12, }, { 16 * 455.00 /*MHz*/, 0xfe, 0x11, }, { 16 * 775.50 /*MHz*/, 0xbc, 0x18, }, { 16 * 999.99 , 0xf4, 0x18, },};static struct tuner_params tuner_thomson_fe6600_params[] = { { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_thomson_fe6600_pal_ranges, .count = ARRAY_SIZE(tuner_thomson_fe6600_pal_ranges), }, { .type = TUNER_PARAM_TYPE_DIGITAL, .ranges = tuner_thomson_fe6600_dvb_ranges, .count = ARRAY_SIZE(tuner_thomson_fe6600_dvb_ranges), .iffreq = 16 * 36.125 /*MHz*/, },};/* ------------ TUNER_SAMSUNG_TCPG_6121P30A - Samsung PAL ------------ *//* '+ 4' turns on the Low Noise Amplifier */static struct tuner_range tuner_samsung_tcpg_6121p30a_pal_ranges[] = { { 16 * 146.25 /*MHz*/, 0xce, 0x01 + 4, }, { 16 * 428.50 /*MHz*/, 0xce, 0x02 + 4, }, { 16 * 999.99 , 0xce, 0x08 + 4, },};static struct tuner_params tuner_samsung_tcpg_6121p30a_params[] = { { .type = TUNER_PARAM_TYPE_PAL, .ranges = tuner_samsung_tcpg_6121p30a_pal_ranges, .count = ARRAY_SIZE(tuner_samsung_tcpg_6121p30a_pal_ranges), .has_tda9887 = 1, .port1_active = 1, .port2_active = 1, .port2_invert_for_secam_lc = 1, },};/* ------------ TUNER_TCL_MF02GIP-5N-E - TCL MF02GIP-5N ------------ */static struct tuner_range tuner_tcl_mf02gip_5n_ntsc_ranges[] = { { 16 * 172.00 /*MHz*/, 0x8e, 0x01, }, { 16 * 448.00 /*MHz*/, 0x8e, 0x02, }, { 16 * 999.99 , 0x8e, 0x04, },};static struct tuner_params tuner_tcl_mf02gip_5n_params[] = { { .type = TUNER_PARAM_TYPE_NTSC, .ranges = tuner_tcl_mf02gip_5n_ntsc_ranges, .count = ARRAY_SIZE(tuner_tcl_mf02gip_5n_ntsc_ranges), .cb_first_if_lower_freq = 1, },};/* --------------------------------------------------------------------- */struct tunertype tuners[] = { /* 0-9 */ [TUNER_TEMIC_PAL] = { /* TEMIC PAL */ .name = "Temic PAL (4002 FH5)", .params = tuner_temic_pal_params, .count = ARRAY_SIZE(tuner_temic_pal_params), }, [TUNER_PHILIPS_PAL_I] = { /* Philips PAL_I */ .name = "Philips PAL_I (FI1246 and compatibles)", .params = tuner_philips_pal_i_params, .count = ARRAY_SIZE(tuner_philips_pal_i_params), }, [TUNER_PHILIPS_NTSC] = { /* Philips NTSC */ .name = "Philips NTSC (FI1236,FM1236 and compatibles)", .params = tuner_philips_ntsc_params, .count = ARRAY_SIZE(tuner_philips_ntsc_params), }, [TUNER_PHILIPS_SECAM] = { /* Philips SECAM */ .name = "Philips (SECAM+PAL_BG) (FI1216MF, FM1216MF, FR1216MF)", .params = tuner_philips_secam_params, .count = ARRAY_SIZE(tuner_philips_secam_params), },
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -