Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (5985): Fix the min/max frequencies of some DVB-C frontends

The min frequencies of the DVB-C frontends are wrong.

In Europe, the center frequency of the lowest channel is 50.5MHz and not
51MHz. All known cards with the stv0297/tda0002x/ves1820 frontend are
able to tune to this frequency.

I've changed the range to the lowest channel - 1/2 bandwidth and the
highest channel + 1/2 bandwidth. For the design of the dvb driver, the
frequency ranges must be part of the tuner and not of the frontend
itself. The same frontend may be used for different tuners.

The attached patch does only fix the ranges and not the design.

Signed-off-by: Hartmut Birr <e9hack@googlemail.com>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Hartmut Birr and committed by
Mauro Carvalho Chehab
a18255be 8509a29e

+8 -8
+2 -2
drivers/media/dvb/frontends/stv0297.c
··· 680 680 .info = { 681 681 .name = "ST STV0297 DVB-C", 682 682 .type = FE_QAM, 683 - .frequency_min = 64000000, 684 - .frequency_max = 1300000000, 683 + .frequency_min = 47000000, 684 + .frequency_max = 862000000, 685 685 .frequency_stepsize = 62500, 686 686 .symbol_rate_min = 870000, 687 687 .symbol_rate_max = 11700000,
+2 -2
drivers/media/dvb/frontends/tda10021.c
··· 439 439 .name = "Philips TDA10021 DVB-C", 440 440 .type = FE_QAM, 441 441 .frequency_stepsize = 62500, 442 - .frequency_min = 51000000, 443 - .frequency_max = 858000000, 442 + .frequency_min = 47000000, 443 + .frequency_max = 862000000, 444 444 .symbol_rate_min = (XIN/2)/64, /* SACLK/64 == (XIN/2)/64 */ 445 445 .symbol_rate_max = (XIN/2)/4, /* SACLK/4 */ 446 446 #if 0
+2 -2
drivers/media/dvb/frontends/tda10023.c
··· 500 500 .name = "Philips TDA10023 DVB-C", 501 501 .type = FE_QAM, 502 502 .frequency_stepsize = 62500, 503 - .frequency_min = 51000000, 504 - .frequency_max = 858000000, 503 + .frequency_min = 47000000, 504 + .frequency_max = 862000000, 505 505 .symbol_rate_min = (SYSCLK/2)/64, /* SACLK/64 == (SYSCLK/2)/64 */ 506 506 .symbol_rate_max = (SYSCLK/2)/4, /* SACLK/4 */ 507 507 .caps = 0x400 | //FE_CAN_QAM_4
+2 -2
drivers/media/dvb/frontends/ves1820.c
··· 410 410 .name = "VLSI VES1820 DVB-C", 411 411 .type = FE_QAM, 412 412 .frequency_stepsize = 62500, 413 - .frequency_min = 51000000, 414 - .frequency_max = 858000000, 413 + .frequency_min = 47000000, 414 + .frequency_max = 862000000, 415 415 .caps = FE_CAN_QAM_16 | 416 416 FE_CAN_QAM_32 | 417 417 FE_CAN_QAM_64 |