[DVB patch 6/8] dst: fix tuning problem

Johannes Stezenbach
2005-07-02T01:57:51Z

[-- Attachment #1: dvb-dst-tuning-fix.patch --]
[-- Type: text/plain, Size: 1017 bytes --]

From: Steffen Motzer <motzersn@t-link.de>

Fix tuning failure for 200103A, 200103A failed to tune to low band
due to wrong tone setting on the 200103A.

Signed-off-by: Steffen Motzer <motzersn@t-link.de>
Signed-off-by: Manu Abraham <manu@kromtek.com>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>

drivers/media/dvb/bt8xx/dst.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)

Index: linux-2.6.13-rc1-mm1/drivers/media/dvb/bt8xx/dst.c
===================================================================
--- linux-2.6.13-rc1-mm1.orig/drivers/media/dvb/bt8xx/dst.c 2005-07-02 03:22:09.000000000 +0200
+++ linux-2.6.13-rc1-mm1/drivers/media/dvb/bt8xx/dst.c 2005-07-02 03:22:31.000000000 +0200
@@ -1147,7 +1147,11 @@ static int dst_set_tone(struct dvb_front

switch (tone) {
case SEC_TONE_OFF:
- state->tx_tuna[2] = 0xff;
+ if (state->type_flags & DST_TYPE_HAS_OBS_REGS)
+ state->tx_tuna[2] = 0x00;
+ else
+ state->tx_tuna[2] = 0xff;
+
break;

case SEC_TONE_ON:

--