aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew de Quincy <quincy@linuxtv.org>2005-11-09 00:35:28 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:03 -0500
commit3528cc4e731b098b5743f8f91516e2e6c01dd1ce (patch)
treeced5870f7d36e55e21b3813f7008ff5c10cba4ba
parent83b75b049be981e579ba2cb88aa9bf3534bbbdb1 (diff)
[PATCH] dvb: Remove broken stv0299 enhanced tuning code
Remove broken stv0299 enhanced tuning code Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Cc: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/media/dvb/b2c2/flexcop-fe-tuner.c1
-rw-r--r--drivers/media/dvb/frontends/stv0299.c53
-rw-r--r--drivers/media/dvb/frontends/stv0299.h3
-rw-r--r--drivers/media/dvb/ttpci/av7110.c2
-rw-r--r--drivers/media/dvb/ttpci/budget-av.c2
-rw-r--r--drivers/media/dvb/ttpci/budget-ci.c2
-rw-r--r--drivers/media/dvb/ttpci/budget-patch.c1
-rw-r--r--drivers/media/dvb/ttpci/budget.c2
-rw-r--r--drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c1
9 files changed, 10 insertions, 57 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
index 47e28b0ee951..bf5651b98bbb 100644
--- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
+++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
@@ -234,7 +234,6 @@ static struct stv0299_config samsung_tbmu24112_config = {
234 .inittab = samsung_tbmu24112_inittab, 234 .inittab = samsung_tbmu24112_inittab,
235 .mclk = 88000000UL, 235 .mclk = 88000000UL,
236 .invert = 0, 236 .invert = 0,
237 .enhanced_tuning = 0,
238 .skip_reinit = 0, 237 .skip_reinit = 0,
239 .lock_output = STV0229_LOCKOUTPUT_LK, 238 .lock_output = STV0229_LOCKOUTPUT_LK,
240 .volt13_op0_op1 = STV0299_VOLT13_OP1, 239 .volt13_op0_op1 = STV0299_VOLT13_OP1,
diff --git a/drivers/media/dvb/frontends/stv0299.c b/drivers/media/dvb/frontends/stv0299.c
index ae00d7a40d7c..35dc8439be1b 100644
--- a/drivers/media/dvb/frontends/stv0299.c
+++ b/drivers/media/dvb/frontends/stv0299.c
@@ -553,49 +553,16 @@ static int stv0299_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par
553 if (state->config->invert) invval = (~invval) & 1; 553 if (state->config->invert) invval = (~invval) & 1;
554 stv0299_writeregI(state, 0x0c, (stv0299_readreg(state, 0x0c) & 0xfe) | invval); 554 stv0299_writeregI(state, 0x0c, (stv0299_readreg(state, 0x0c) & 0xfe) | invval);
555 555
556 if (state->config->enhanced_tuning) { 556 stv0299_writeregI(state, 0x05, 0xb5); /* enable i2c repeater on stv0299 */
557 /* check if we should do a finetune */ 557 state->config->pll_set(fe, state->i2c, p);
558 int frequency_delta = p->frequency - state->tuner_frequency; 558 stv0299_writeregI(state, 0x05, 0x35); /* disable i2c repeater on stv0299 */
559 int minmax = p->u.qpsk.symbol_rate / 2000; 559
560 if (minmax < 5000) minmax = 5000; 560 stv0299_set_FEC (state, p->u.qpsk.fec_inner);
561 561 stv0299_set_symbolrate (fe, p->u.qpsk.symbol_rate);
562 if ((frequency_delta > -minmax) && (frequency_delta < minmax) && (frequency_delta != 0) && 562 stv0299_writeregI(state, 0x22, 0x00);
563 (state->fec_inner == p->u.qpsk.fec_inner) && 563 stv0299_writeregI(state, 0x23, 0x00);
564 (state->symbol_rate == p->u.qpsk.symbol_rate)) { 564 stv0299_readreg (state, 0x23);
565 int Drot_freq = (frequency_delta << 16) / (state->config->mclk / 1000); 565 stv0299_writeregI(state, 0x12, 0xb9);
566
567 // zap the derotator registers first
568 stv0299_writeregI(state, 0x22, 0x00);
569 stv0299_writeregI(state, 0x23, 0x00);
570
571 // now set them as we want
572 stv0299_writeregI(state, 0x22, Drot_freq >> 8);
573 stv0299_writeregI(state, 0x23, Drot_freq);
574 } else {
575 /* A "normal" tune is requested */
576 stv0299_writeregI(state, 0x05, 0xb5); /* enable i2c repeater on stv0299 */
577 state->config->pll_set(fe, state->i2c, p);
578 stv0299_writeregI(state, 0x05, 0x35); /* disable i2c repeater on stv0299 */
579
580 stv0299_writeregI(state, 0x32, 0x80);
581 stv0299_writeregI(state, 0x22, 0x00);
582 stv0299_writeregI(state, 0x23, 0x00);
583 stv0299_writeregI(state, 0x32, 0x19);
584 stv0299_set_symbolrate (fe, p->u.qpsk.symbol_rate);
585 stv0299_set_FEC (state, p->u.qpsk.fec_inner);
586 }
587 } else {
588 stv0299_writeregI(state, 0x05, 0xb5); /* enable i2c repeater on stv0299 */
589 state->config->pll_set(fe, state->i2c, p);
590 stv0299_writeregI(state, 0x05, 0x35); /* disable i2c repeater on stv0299 */
591
592 stv0299_set_FEC (state, p->u.qpsk.fec_inner);
593 stv0299_set_symbolrate (fe, p->u.qpsk.symbol_rate);
594 stv0299_writeregI(state, 0x22, 0x00);
595 stv0299_writeregI(state, 0x23, 0x00);
596 stv0299_readreg (state, 0x23);
597 stv0299_writeregI(state, 0x12, 0xb9);
598 }
599 566
600 state->tuner_frequency = p->frequency; 567 state->tuner_frequency = p->frequency;
601 state->fec_inner = p->u.qpsk.fec_inner; 568 state->fec_inner = p->u.qpsk.fec_inner;
diff --git a/drivers/media/dvb/frontends/stv0299.h b/drivers/media/dvb/frontends/stv0299.h
index d0c4484861e1..9af3d71c89db 100644
--- a/drivers/media/dvb/frontends/stv0299.h
+++ b/drivers/media/dvb/frontends/stv0299.h
@@ -73,9 +73,6 @@ struct stv0299_config
73 /* does the inversion require inversion? */ 73 /* does the inversion require inversion? */
74 u8 invert:1; 74 u8 invert:1;
75 75
76 /* Should the enhanced tuning code be used? */
77 u8 enhanced_tuning:1;
78
79 /* Skip reinitialisation? */ 76 /* Skip reinitialisation? */
80 u8 skip_reinit:1; 77 u8 skip_reinit:1;
81 78
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c
index 22b203f8ff27..820eea294326 100644
--- a/drivers/media/dvb/ttpci/av7110.c
+++ b/drivers/media/dvb/ttpci/av7110.c
@@ -1644,7 +1644,6 @@ static struct stv0299_config alps_bsru6_config = {
1644 .inittab = alps_bsru6_inittab, 1644 .inittab = alps_bsru6_inittab,
1645 .mclk = 88000000UL, 1645 .mclk = 88000000UL,
1646 .invert = 1, 1646 .invert = 1,
1647 .enhanced_tuning = 0,
1648 .skip_reinit = 0, 1647 .skip_reinit = 0,
1649 .lock_output = STV0229_LOCKOUTPUT_1, 1648 .lock_output = STV0229_LOCKOUTPUT_1,
1650 .volt13_op0_op1 = STV0299_VOLT13_OP1, 1649 .volt13_op0_op1 = STV0299_VOLT13_OP1,
@@ -1721,7 +1720,6 @@ static struct stv0299_config alps_bsbe1_config = {
1721 .inittab = alps_bsbe1_inittab, 1720 .inittab = alps_bsbe1_inittab,
1722 .mclk = 88000000UL, 1721 .mclk = 88000000UL,
1723 .invert = 1, 1722 .invert = 1,
1724 .enhanced_tuning = 0,
1725 .skip_reinit = 0, 1723 .skip_reinit = 0,
1726 .min_delay_ms = 100, 1724 .min_delay_ms = 100,
1727 .set_symbol_rate = alps_bsru6_set_symbol_rate, 1725 .set_symbol_rate = alps_bsru6_set_symbol_rate,
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c
index 7692cd23f839..ac108102b67a 100644
--- a/drivers/media/dvb/ttpci/budget-av.c
+++ b/drivers/media/dvb/ttpci/budget-av.c
@@ -531,7 +531,6 @@ static struct stv0299_config typhoon_config = {
531 .inittab = typhoon_cinergy1200s_inittab, 531 .inittab = typhoon_cinergy1200s_inittab,
532 .mclk = 88000000UL, 532 .mclk = 88000000UL,
533 .invert = 0, 533 .invert = 0,
534 .enhanced_tuning = 0,
535 .skip_reinit = 0, 534 .skip_reinit = 0,
536 .lock_output = STV0229_LOCKOUTPUT_1, 535 .lock_output = STV0229_LOCKOUTPUT_1,
537 .volt13_op0_op1 = STV0299_VOLT13_OP0, 536 .volt13_op0_op1 = STV0299_VOLT13_OP0,
@@ -546,7 +545,6 @@ static struct stv0299_config cinergy_1200s_config = {
546 .inittab = typhoon_cinergy1200s_inittab, 545 .inittab = typhoon_cinergy1200s_inittab,
547 .mclk = 88000000UL, 546 .mclk = 88000000UL,
548 .invert = 0, 547 .invert = 0,
549 .enhanced_tuning = 0,
550 .skip_reinit = 0, 548 .skip_reinit = 0,
551 .lock_output = STV0229_LOCKOUTPUT_0, 549 .lock_output = STV0229_LOCKOUTPUT_0,
552 .volt13_op0_op1 = STV0299_VOLT13_OP0, 550 .volt13_op0_op1 = STV0299_VOLT13_OP0,
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c
index 51c30ba68140..9263ed686fdc 100644
--- a/drivers/media/dvb/ttpci/budget-ci.c
+++ b/drivers/media/dvb/ttpci/budget-ci.c
@@ -580,7 +580,6 @@ static struct stv0299_config alps_bsru6_config = {
580 .inittab = alps_bsru6_inittab, 580 .inittab = alps_bsru6_inittab,
581 .mclk = 88000000UL, 581 .mclk = 88000000UL,
582 .invert = 1, 582 .invert = 1,
583 .enhanced_tuning = 0,
584 .skip_reinit = 0, 583 .skip_reinit = 0,
585 .lock_output = STV0229_LOCKOUTPUT_1, 584 .lock_output = STV0229_LOCKOUTPUT_1,
586 .volt13_op0_op1 = STV0299_VOLT13_OP1, 585 .volt13_op0_op1 = STV0299_VOLT13_OP1,
@@ -710,7 +709,6 @@ static struct stv0299_config philips_su1278_tt_config = {
710 .inittab = philips_su1278_tt_inittab, 709 .inittab = philips_su1278_tt_inittab,
711 .mclk = 64000000UL, 710 .mclk = 64000000UL,
712 .invert = 0, 711 .invert = 0,
713 .enhanced_tuning = 1,
714 .skip_reinit = 1, 712 .skip_reinit = 1,
715 .lock_output = STV0229_LOCKOUTPUT_1, 713 .lock_output = STV0229_LOCKOUTPUT_1,
716 .volt13_op0_op1 = STV0299_VOLT13_OP1, 714 .volt13_op0_op1 = STV0299_VOLT13_OP1,
diff --git a/drivers/media/dvb/ttpci/budget-patch.c b/drivers/media/dvb/ttpci/budget-patch.c
index b1f21ef0e3b3..8ee4ac5b536b 100644
--- a/drivers/media/dvb/ttpci/budget-patch.c
+++ b/drivers/media/dvb/ttpci/budget-patch.c
@@ -379,7 +379,6 @@ static struct stv0299_config alps_bsru6_config = {
379 .inittab = alps_bsru6_inittab, 379 .inittab = alps_bsru6_inittab,
380 .mclk = 88000000UL, 380 .mclk = 88000000UL,
381 .invert = 1, 381 .invert = 1,
382 .enhanced_tuning = 0,
383 .skip_reinit = 0, 382 .skip_reinit = 0,
384 .lock_output = STV0229_LOCKOUTPUT_1, 383 .lock_output = STV0229_LOCKOUTPUT_1,
385 .volt13_op0_op1 = STV0299_VOLT13_OP1, 384 .volt13_op0_op1 = STV0299_VOLT13_OP1,
diff --git a/drivers/media/dvb/ttpci/budget.c b/drivers/media/dvb/ttpci/budget.c
index 0f6ead848e4d..ba308349ac9e 100644
--- a/drivers/media/dvb/ttpci/budget.c
+++ b/drivers/media/dvb/ttpci/budget.c
@@ -360,7 +360,6 @@ static struct stv0299_config alps_bsru6_config = {
360 .inittab = alps_bsru6_inittab, 360 .inittab = alps_bsru6_inittab,
361 .mclk = 88000000UL, 361 .mclk = 88000000UL,
362 .invert = 1, 362 .invert = 1,
363 .enhanced_tuning = 0,
364 .skip_reinit = 0, 363 .skip_reinit = 0,
365 .lock_output = STV0229_LOCKOUTPUT_1, 364 .lock_output = STV0229_LOCKOUTPUT_1,
366 .volt13_op0_op1 = STV0299_VOLT13_OP1, 365 .volt13_op0_op1 = STV0299_VOLT13_OP1,
@@ -436,7 +435,6 @@ static struct stv0299_config alps_bsbe1_config = {
436 .inittab = alps_bsbe1_inittab, 435 .inittab = alps_bsbe1_inittab,
437 .mclk = 88000000UL, 436 .mclk = 88000000UL,
438 .invert = 1, 437 .invert = 1,
439 .enhanced_tuning = 0,
440 .skip_reinit = 0, 438 .skip_reinit = 0,
441 .min_delay_ms = 100, 439 .min_delay_ms = 100,
442 .set_symbol_rate = alps_bsru6_set_symbol_rate, 440 .set_symbol_rate = alps_bsru6_set_symbol_rate,
diff --git a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
index d200ab0ad9e7..2d519982eadc 100644
--- a/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
+++ b/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
@@ -1335,7 +1335,6 @@ static struct stv0299_config alps_stv0299_config = {
1335 .inittab = alps_bsru6_inittab, 1335 .inittab = alps_bsru6_inittab,
1336 .mclk = 88000000UL, 1336 .mclk = 88000000UL,
1337 .invert = 1, 1337 .invert = 1,
1338 .enhanced_tuning = 0,
1339 .skip_reinit = 0, 1338 .skip_reinit = 0,
1340 .lock_output = STV0229_LOCKOUTPUT_1, 1339 .lock_output = STV0229_LOCKOUTPUT_1,
1341 .volt13_op0_op1 = STV0299_VOLT13_OP1, 1340 .volt13_op0_op1 = STV0299_VOLT13_OP1,