Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=72e04f720f23cfa8d4400d832784f3a424379227
Commit:     72e04f720f23cfa8d4400d832784f3a424379227
Parent:     9121106a7f149f9702ed7c2ac0d86e9feb54ede8
Author:     Steven Toth <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 22 01:03:10 2008 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:05:12 2008 -0200

    V4L/DVB (7059): cx88: Ensure the tuner is reset correctly
    
    Previous patches assume the tuner was on a different gpio. This patch
    corrects this.
    
    Signed-off-by: Steven Toth <[EMAIL PROTECTED]>
    Signed-off-by: Chaogui Zhang <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/cx88/cx88-cards.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/media/video/cx88/cx88-cards.c 
b/drivers/media/video/cx88/cx88-cards.c
index 2542909..e6b7f51 100644
--- a/drivers/media/video/cx88/cx88-cards.c
+++ b/drivers/media/video/cx88/cx88-cards.c
@@ -1893,12 +1893,10 @@ int cx88_tuner_callback(void *priv, int command, int 
arg)
        switch(core->boardnr) {
        case CX88_BOARD_PINNACLE_PCTV_HD_800i:
                if(command == 0) { /* This is the reset command from xc5000 */
-                       /* Reset XC5000 tuner via GPIO pin #2 */
-                       cx_set(MO_GP0_IO, 0x00000400);
-                       cx_clear(MO_GP0_IO, 0x00000004);
-                       mdelay(200);
-                       cx_set(MO_GP0_IO, 0x00000004);
-                       mdelay(200);
+                       /* Reset XC5000 tuner via SYS_RSTO_pin */
+                       cx_write(MO_SRST_IO, 0);
+                       msleep(10);
+                       cx_write(MO_SRST_IO, 1);
                        return 0;
                }
                else {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to