[linux-dvb] [PATCH 1/1] gl861/qt1010: fix tuning issue

Jan Nijs jan.nijs at scarlet.be
Tue Oct 10 00:14:59 CEST 2006


From: Jan Nijs <jan.nijs at scarlet.be>

This patch fixes the tuning issue I was having.
Tuning to 482MHz was impossible. Now this driver works
as expected for me.

I also removed a line that set the tuner access gate to disabled
(register 0x62), while a few writes later it is re-enabled.
This doesn't impact the correct working of the driver for me.

Carl, do you confirm that these changes don't have any impact
when you use the driver on another frequency?
I can only test 482MHz as this is the only channel in my
neighborhood.

Signed-off-by: Jan Nijs <jan.nijs at scarlet.be>

---
diff -uNrp megasky/linux/drivers/media/dvb/frontends/qt1010.h megasky-temp/linux/drivers/media/dvb/frontends/qt1010.h
--- megasky/linux/drivers/media/dvb/frontends/qt1010.h	2006-10-07 00:28:54.000000000 +0200
+++ megasky-temp/linux/drivers/media/dvb/frontends/qt1010.h	2006-10-09 23:38:55.000000000 +0200
@@ -150,6 +150,8 @@ static int qt1010_set_params(struct dvb_
 		rd[15].value = 0xd0;
 	else if (div < 217)
 		rd[15].value = 0xd3;
+	else if (div == 217)
+		rd[15].value = 0xd4;
 	else if (div < 233)
 		rd[15].value = 0xd6;
 	else if (div < 249)
diff -uNrp megasky/linux/drivers/media/dvb/frontends/zl10353.c megasky-temp/linux/drivers/media/dvb/frontends/zl10353.c
--- megasky/linux/drivers/media/dvb/frontends/zl10353.c	2006-10-07 00:18:01.000000000 +0200
+++ megasky-temp/linux/drivers/media/dvb/frontends/zl10353.c	2006-10-09 23:47:45.000000000 +0200
@@ -146,9 +146,9 @@ static int zl10353_set_parameters(struct
 	zl10353_single_write(fe, 0x66, 0xE9);
 	zl10353_single_write(fe, 0x6C, 0xCD);
 	zl10353_single_write(fe, 0x6D, 0x7E);
-	zl10353_single_write(fe, 0x62, 0x0A);
 
 	zl10353_single_write(fe, 0x65, 0x67);
+	zl10353_single_write(fe, 0x5a, 0x0c);
 	zl10353_single_write(fe, 0x62, 0x1A);
 
 	// if there is no attached secondary tuner, we call set_params to program



More information about the linux-dvb mailing list