[linux-dvb] [PATCH] xc5000.c xc_write_reg() wait time

Chaogui Zhang czhang1974 at gmail.com
Fri Aug 1 00:16:19 CEST 2008

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:



Signed-off-by: Chaogui Zhang <czhang1974 at gmail.com>

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 */
 					} else {
-						xc_wait(100); /* wait 5 ms */
+						xc_wait(5); /* wait 5 ms */

More information about the linux-dvb mailing list