Re: tda10086 diseqc support? (Lifeview FlyDVB Trio)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Zenon Mousmoulas schrieb:
> Hartmut Hackmann @ Monday, June 18, 2007 2:07 AM:
>> Yes, there is a known problem and a proposed patch. I need to
>> cross check whether this breaks other drivers.
> 
> Hi,
> 
> Can you please post/send this patch? I would like to try it. I'm not sure if it is identical to any previously posted patch.
> I don't know if I can help with cross checking though since I don't have any other cards.
> 
> Best Regards,
> Zenon
> 
I will attach a modified version of the patch posted by Thomas Unverzagt. It should
apply to the current repository.
Please test it and report.

Best Regards
  Hartmut
--- linux/drivers/media/dvb/frontends/tda10086.c.old	2007-06-18 22:32:33.000000000 +0200
+++ linux/drivers/media/dvb/frontends/tda10086.c	2007-06-18 23:01:14.000000000 +0200
@@ -159,7 +159,7 @@
 	tda10086_write_byte(state, 0x3d, 0x80);
 
 	// setup SEC
-	tda10086_write_byte(state, 0x36, 0x00); // all SEC off
+	tda10086_write_byte(state, 0x36, 0x80); // all SEC off, no 22k tone
 	tda10086_write_byte(state, 0x34, (((1<<19) * (22000/1000)) / (SACLK/1000)));      // } tone frequency
 	tda10086_write_byte(state, 0x35, (((1<<19) * (22000/1000)) / (SACLK/1000)) >> 8); // }
 
@@ -186,11 +186,11 @@
 
 	switch(tone) {
 	case SEC_TONE_OFF:
-		tda10086_write_byte(state, 0x36, 0x00);
+		tda10086_write_byte(state, 0x36, 0x80);
 		break;
 
 	case SEC_TONE_ON:
-		tda10086_write_byte(state, 0x36, 0x01);
+		tda10086_write_byte(state, 0x36, 0x81);
 		break;
 	}
 
@@ -213,7 +213,7 @@
 	for(i=0; i< cmd->msg_len; i++) {
 		tda10086_write_byte(state, 0x48+i, cmd->msg[i]);
 	}
-	tda10086_write_byte(state, 0x36, 0x08 | ((cmd->msg_len - 1) << 4));
+	tda10086_write_byte(state, 0x36, 0x88 | ((cmd->msg_len - 1) << 4));
 
 	tda10086_diseqc_wait(state);
 
@@ -231,11 +231,11 @@
 
 	switch(minicmd) {
 	case SEC_MINI_A:
-		tda10086_write_byte(state, 0x36, 0x04);
+		tda10086_write_byte(state, 0x36, 0x84);
 		break;
 
 	case SEC_MINI_B:
-		tda10086_write_byte(state, 0x36, 0x06);
+		tda10086_write_byte(state, 0x36, 0x86);
 		break;
 	}
 
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux