[PATCH] xc5000.c xc_write_reg() wait time

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

 



This patch fixes the incorrect wait time in xc_write_reg(). Before the
patch, my Pinnacle PCTV HD 800i cannot tune to any QAM channels. After
the patch, it found all the channels without problems.

This was previously submitted back in January, as part of a much
bigger patch involving other stuff. The other parts involve hybrid tuner 
instance handling, and some code clean up. The tuner instance handling
part is obsolete now since Mike Krufky's tuner refactoring code does
precisely that and in a more efficient way, even though the xc5000 tuner
code has not been modified to take advantage of that yet.

Just for reference, the previous patch in the following thread:

http://www.linuxtv.org/pipermail/linux-dvb/2008-January/023392.html

--

Signed-off-by: Chaogui Zhang <czhang1974@xxxxxxxxx>

diff -r 55e8c99c8aa8 linux/drivers/media/common/tuners/xc5000.c
--- a/linux/drivers/media/common/tuners/xc5000.c	Wed Jul 30 07:18:13 2008 -0300
+++ b/linux/drivers/media/common/tuners/xc5000.c	Thu Jul 31 17:43:31 2008 -0400
@@ -250,7 +250,7 @@
 						/* busy flag cleared */
 					break;
 					} else {
-						xc_wait(100); /* wait 5 ms */
+						xc_wait(5); /* wait 5 ms */
 						WatchDogTimer--;
 					}
 				}

_______________________________________________
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