]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5985): Fix the min/max frequencies of some DVB-C frontends
authorHartmut Birr <e9hack@googlemail.com>
Thu, 9 Aug 2007 03:01:51 +0000 (00:01 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:04:40 +0000 (22:04 -0300)
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>
drivers/media/dvb/frontends/stv0297.c
drivers/media/dvb/frontends/tda10021.c
drivers/media/dvb/frontends/tda10023.c
drivers/media/dvb/frontends/ves1820.c

index 9a343972ff50589c5a5fed69f78bd03a0ad8a270..17e5cb561cd8569a77752f0a3df7984648f056d3 100644 (file)
@@ -680,8 +680,8 @@ static struct dvb_frontend_ops stv0297_ops = {
        .info = {
                 .name = "ST STV0297 DVB-C",
                 .type = FE_QAM,
-                .frequency_min = 64000000,
-                .frequency_max = 1300000000,
+                .frequency_min = 47000000,
+                .frequency_max = 862000000,
                 .frequency_stepsize = 62500,
                 .symbol_rate_min = 870000,
                 .symbol_rate_max = 11700000,
index e725f612a6b72c2b8d34965297aac2b73dc8e62e..4cd9e82c4669fd857eb07d37981c2483e12f876c 100644 (file)
@@ -439,8 +439,8 @@ static struct dvb_frontend_ops tda10021_ops = {
                .name = "Philips TDA10021 DVB-C",
                .type = FE_QAM,
                .frequency_stepsize = 62500,
-               .frequency_min = 51000000,
-               .frequency_max = 858000000,
+               .frequency_min = 47000000,
+               .frequency_max = 862000000,
                .symbol_rate_min = (XIN/2)/64,     /* SACLK/64 == (XIN/2)/64 */
                .symbol_rate_max = (XIN/2)/4,      /* SACLK/4 */
        #if 0
index a00cf0f54efcbc2834a072d739d9c03d57c55dde..364bc01971a0c7c4071ac98d0fd9f6e5e86fced8 100644 (file)
@@ -500,8 +500,8 @@ static struct dvb_frontend_ops tda10023_ops = {
                .name = "Philips TDA10023 DVB-C",
                .type = FE_QAM,
                .frequency_stepsize = 62500,
-               .frequency_min = 51000000,
-               .frequency_max = 858000000,
+               .frequency_min = 47000000,
+               .frequency_max = 862000000,
                .symbol_rate_min = (SYSCLK/2)/64,     /* SACLK/64 == (SYSCLK/2)/64 */
                .symbol_rate_max = (SYSCLK/2)/4,      /* SACLK/4 */
                .caps = 0x400 | //FE_CAN_QAM_4
index 9b57576bfeb411738495687aa490a3460bfc3f1b..066b73b75698e88e674ab4f0534b3e76835fc1f7 100644 (file)
@@ -410,8 +410,8 @@ static struct dvb_frontend_ops ves1820_ops = {
                .name = "VLSI VES1820 DVB-C",
                .type = FE_QAM,
                .frequency_stepsize = 62500,
-               .frequency_min = 51000000,
-               .frequency_max = 858000000,
+               .frequency_min = 47000000,
+               .frequency_max = 862000000,
                .caps = FE_CAN_QAM_16 |
                        FE_CAN_QAM_32 |
                        FE_CAN_QAM_64 |