Skip to content

Commit

Permalink
V4L/DVB (3439): removed duplicated tuner_ranges
Browse files Browse the repository at this point in the history
- removed duplicated tuner_ranges

Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 23, 2006
1 parent 3fc46d3 commit cc925bb
Showing 1 changed file with 31 additions and 91 deletions.
122 changes: 31 additions & 91 deletions drivers/media/video/tuner-types.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static struct tuner_params tuner_alps_tsbc5_params[] = {

/* ------------ TUNER_TEMIC_4006FH5_PAL - TEMIC PAL ------------ */

static struct tuner_range tuner_temic_4006fh5_pal_ranges[] = {
static struct tuner_range tuner_lg_pal_ranges[] = {
{ 16 * 170.00 /*MHz*/, 0x8e, 0xa0, },
{ 16 * 450.00 /*MHz*/, 0x8e, 0x90, },
{ 16 * 999.99 , 0x8e, 0x30, },
Expand All @@ -238,8 +238,8 @@ static struct tuner_range tuner_temic_4006fh5_pal_ranges[] = {
static struct tuner_params tuner_temic_4006fh5_params[] = {
{
.type = TUNER_PARAM_TYPE_PAL,
.ranges = tuner_temic_4006fh5_pal_ranges,
.count = ARRAY_SIZE(tuner_temic_4006fh5_pal_ranges),
.ranges = tuner_lg_pal_ranges,
.count = ARRAY_SIZE(tuner_lg_pal_ranges),
},
};

Expand Down Expand Up @@ -336,7 +336,7 @@ static struct tuner_params tuner_temic_4009f_5_params[] = {

/* ------------ TUNER_TEMIC_4039FR5_NTSC - TEMIC NTSC ------------ */

static struct tuner_range tuner_temic_4039fr5_ntsc_ranges[] = {
static struct tuner_range tuner_temic_4x3x_f_5_ntsc_ranges[] = {
{ 16 * 158.00 /*MHz*/, 0x8e, 0xa0, },
{ 16 * 453.00 /*MHz*/, 0x8e, 0x90, },
{ 16 * 999.99 , 0x8e, 0x30, },
Expand All @@ -345,35 +345,23 @@ static struct tuner_range tuner_temic_4039fr5_ntsc_ranges[] = {
static struct tuner_params tuner_temic_4039fr5_params[] = {
{
.type = TUNER_PARAM_TYPE_NTSC,
.ranges = tuner_temic_4039fr5_ntsc_ranges,
.count = ARRAY_SIZE(tuner_temic_4039fr5_ntsc_ranges),
.ranges = tuner_temic_4x3x_f_5_ntsc_ranges,
.count = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges),
},
};

/* ------------ TUNER_TEMIC_4046FM5 - TEMIC PAL ------------ */

static struct tuner_range tuner_temic_4046fm5_pal_ranges[] = {
{ 16 * 169.00 /*MHz*/, 0x8e, 0xa0, },
{ 16 * 454.00 /*MHz*/, 0x8e, 0x90, },
{ 16 * 999.99 , 0x8e, 0x30, },
};

static struct tuner_params tuner_temic_4046fm5_params[] = {
{
.type = TUNER_PARAM_TYPE_PAL,
.ranges = tuner_temic_4046fm5_pal_ranges,
.count = ARRAY_SIZE(tuner_temic_4046fm5_pal_ranges),
.ranges = tuner_temic_40x6f_5_pal_ranges,
.count = ARRAY_SIZE(tuner_temic_40x6f_5_pal_ranges),
},
};

/* ------------ TUNER_PHILIPS_PAL_DK - Philips PAL ------------ */

static struct tuner_range tuner_lg_pal_ranges[] = {
{ 16 * 170.00 /*MHz*/, 0x8e, 0xa0, },
{ 16 * 450.00 /*MHz*/, 0x8e, 0x90, },
{ 16 * 999.99 , 0x8e, 0x30, },
};

static struct tuner_params tuner_philips_pal_dk_params[] = {
{
.type = TUNER_PARAM_TYPE_PAL,
Expand Down Expand Up @@ -503,33 +491,21 @@ static struct tuner_params tuner_temic_4106fh5_params[] = {

/* ------------ TUNER_TEMIC_4012FY5 - TEMIC PAL ------------ */

static struct tuner_range tuner_temic_4012fy5_pal_ranges[] = {
{ 16 * 140.25 /*MHz*/, 0x8e, 0x02, },
{ 16 * 463.25 /*MHz*/, 0x8e, 0x04, },
{ 16 * 999.99 , 0x8e, 0x01, },
};

static struct tuner_params tuner_temic_4012fy5_params[] = {
{
.type = TUNER_PARAM_TYPE_PAL,
.ranges = tuner_temic_4012fy5_pal_ranges,
.count = ARRAY_SIZE(tuner_temic_4012fy5_pal_ranges),
.ranges = tuner_temic_pal_ranges,
.count = ARRAY_SIZE(tuner_temic_pal_ranges),
},
};

/* ------------ TUNER_TEMIC_4136FY5 - TEMIC NTSC ------------ */

static struct tuner_range tuner_temic_4136_fy5_ntsc_ranges[] = {
{ 16 * 158.00 /*MHz*/, 0x8e, 0xa0, },
{ 16 * 453.00 /*MHz*/, 0x8e, 0x90, },
{ 16 * 999.99 , 0x8e, 0x30, },
};

static struct tuner_params tuner_temic_4136_fy5_params[] = {
{
.type = TUNER_PARAM_TYPE_NTSC,
.ranges = tuner_temic_4136_fy5_ntsc_ranges,
.count = ARRAY_SIZE(tuner_temic_4136_fy5_ntsc_ranges),
.ranges = tuner_temic_4x3x_f_5_ntsc_ranges,
.count = ARRAY_SIZE(tuner_temic_4x3x_f_5_ntsc_ranges),
},
};

Expand Down Expand Up @@ -638,17 +614,11 @@ static struct tuner_params tuner_fm1236_mk3_params[] = {

/* ------------ TUNER_PHILIPS_4IN1 - Philips NTSC ------------ */

static struct tuner_range tuner_philips_4in1_ntsc_ranges[] = {
{ 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
{ 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
{ 16 * 999.99 , 0x8e, 0x04, },
};

static struct tuner_params tuner_philips_4in1_params[] = {
{
.type = TUNER_PARAM_TYPE_NTSC,
.ranges = tuner_philips_4in1_ntsc_ranges,
.count = ARRAY_SIZE(tuner_philips_4in1_ntsc_ranges),
.ranges = tuner_fm1236_mk3_ntsc_ranges,
.count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
},
};

Expand Down Expand Up @@ -680,17 +650,11 @@ static struct tuner_params tuner_panasonic_vp27_params[] = {

/* ------------ TUNER_LG_NTSC_TAPE - LGINNOTEK NTSC ------------ */

static struct tuner_range tuner_lg_ntsc_tape_ranges[] = {
{ 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
{ 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
{ 16 * 999.99 , 0x8e, 0x04, },
};

static struct tuner_params tuner_lg_ntsc_tape_params[] = {
{
.type = TUNER_PARAM_TYPE_NTSC,
.ranges = tuner_lg_ntsc_tape_ranges,
.count = ARRAY_SIZE(tuner_lg_ntsc_tape_ranges),
.ranges = tuner_fm1236_mk3_ntsc_ranges,
.count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
},
};

Expand Down Expand Up @@ -746,17 +710,11 @@ static struct tuner_params tuner_tcl_2002n_params[] = {

/* ------------ TUNER_PHILIPS_FM1256_IH3 - Philips PAL ------------ */

static struct tuner_range tuner_philips_fm1256_ih3_pal_ranges[] = {
{ 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
{ 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
{ 16 * 999.99 , 0x8e, 0x04, },
};

static struct tuner_params tuner_philips_fm1256_ih3_params[] = {
{
.type = TUNER_PARAM_TYPE_PAL,
.ranges = tuner_philips_fm1256_ih3_pal_ranges,
.count = ARRAY_SIZE(tuner_philips_fm1256_ih3_pal_ranges),
.ranges = tuner_fm1236_mk3_ntsc_ranges,
.count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
},
};

Expand Down Expand Up @@ -826,33 +784,21 @@ static struct tuner_params tuner_philips_fq1216ame_mk4_params[] = {

/* ------------ TUNER_PHILIPS_FQ1236A_MK4 - Philips NTSC ------------ */

static struct tuner_range tuner_philips_fq12_6a___mk4_ntsc_ranges[] = {
{ 16 * 160.00 /*MHz*/, 0x8e, 0x01, },
{ 16 * 442.00 /*MHz*/, 0x8e, 0x02, },
{ 16 * 999.99 , 0x8e, 0x04, },
};

static struct tuner_params tuner_philips_fq1236a_mk4_params[] = {
{
.type = TUNER_PARAM_TYPE_NTSC,
.ranges = tuner_philips_fq12_6a___mk4_ntsc_ranges,
.count = ARRAY_SIZE(tuner_philips_fq12_6a___mk4_ntsc_ranges),
.ranges = tuner_fm1236_mk3_ntsc_ranges,
.count = ARRAY_SIZE(tuner_fm1236_mk3_ntsc_ranges),
},
};

/* ------------ TUNER_YMEC_TVF_8531MF - Philips NTSC ------------ */

static struct tuner_range tuner_ymec_tvf_8531mf_ntsc_ranges[] = {
{ 16 * 160.00 /*MHz*/, 0x8e, 0xa0, },
{ 16 * 454.00 /*MHz*/, 0x8e, 0x90, },
{ 16 * 999.99 , 0x8e, 0x30, },
};

static struct tuner_params tuner_ymec_tvf_8531mf_params[] = {
{
.type = TUNER_PARAM_TYPE_NTSC,
.ranges = tuner_ymec_tvf_8531mf_ntsc_ranges,
.count = ARRAY_SIZE(tuner_ymec_tvf_8531mf_ntsc_ranges),
.ranges = tuner_philips_ntsc_m_ranges,
.count = ARRAY_SIZE(tuner_philips_ntsc_m_ranges),
},
};

Expand Down Expand Up @@ -893,7 +839,7 @@ static struct tuner_params tuner_thomson_dtt761x_params[] = {

/* ------------ TUNER_TENA_9533_DI - Philips PAL ------------ */

static struct tuner_range tuner_tuner_tena_9533_di_pal_ranges[] = {
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, },
Expand All @@ -902,8 +848,8 @@ static struct tuner_range tuner_tuner_tena_9533_di_pal_ranges[] = {
static struct tuner_params tuner_tena_9533_di_params[] = {
{
.type = TUNER_PARAM_TYPE_PAL,
.ranges = tuner_tuner_tena_9533_di_pal_ranges,
.count = ARRAY_SIZE(tuner_tuner_tena_9533_di_pal_ranges),
.ranges = tuner_tena_9533_di_pal_ranges,
.count = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges),
},
};

Expand All @@ -916,7 +862,7 @@ static struct tuner_range tuner_philips_fmd1216me_mk3_pal_ranges[] = {
};


static struct tuner_params tuner_tuner_philips_fmd1216me_mk3_params[] = {
static struct tuner_params tuner_philips_fmd1216me_mk3_params[] = {
{
.type = TUNER_PARAM_TYPE_PAL,
.ranges = tuner_philips_fmd1216me_mk3_pal_ranges,
Expand Down Expand Up @@ -944,17 +890,11 @@ static struct tuner_params tuner_tua6034_params[] = {

/* ------------ 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),
.ranges = tuner_tena_9533_di_pal_ranges,
.count = ARRAY_SIZE(tuner_tena_9533_di_pal_ranges),
},
};

Expand Down Expand Up @@ -999,7 +939,7 @@ static struct tuner_range tuner_tuv1236d_ntsc_ranges[] = {
};


static struct tuner_params tuner_tuner_tuv1236d_params[] = {
static struct tuner_params tuner_tuv1236d_params[] = {
{
.type = TUNER_PARAM_TYPE_NTSC,
.ranges = tuner_tuv1236d_ntsc_ranges,
Expand Down Expand Up @@ -1308,7 +1248,7 @@ struct tunertype tuners[] = {
},
[TUNER_PHILIPS_FMD1216ME_MK3] = { /* Philips PAL */
.name = "Philips FMD1216ME MK3 Hybrid Tuner",
.params = tuner_tuner_philips_fmd1216me_mk3_params,
.params = tuner_philips_fmd1216me_mk3_params,
},
[TUNER_LG_TDVS_H062F] = { /* LGINNOTEK ATSC */
.name = "LG TDVS-H062F/TUA6034",
Expand All @@ -1328,7 +1268,7 @@ struct tunertype tuners[] = {
},
[TUNER_PHILIPS_TUV1236D] = { /* Philips ATSC */
.name = "Philips TUV1236D ATSC/NTSC dual in",
.params = tuner_tuner_tuv1236d_params,
.params = tuner_tuv1236d_params,
},
[TUNER_TNF_5335MF] = { /* Philips NTSC */
.name = "Tena TNF 5335 MF",
Expand Down

0 comments on commit cc925bb

Please sign in to comment.