diff options
author | Steven Toth <stoth@hauppauge.com> | 2008-01-21 23:03:10 -0500 |
---|---|---|
committer | Steven Toth <stoth@hauppauge.com> | 2008-01-21 23:03:10 -0500 |
commit | 96c8b3df2a0b219a58a0873511a8fb7b7f6cfd4f (patch) | |
tree | 29b8f26e8f406f4fba61a7fd89f3045d528717f5 /linux/drivers/media/video | |
parent | 0bf19ca136ed9d99a46a8b55ecf2a3e4018e2e56 (diff) | |
download | mediapointer-dvb-s2-96c8b3df2a0b219a58a0873511a8fb7b7f6cfd4f.tar.gz mediapointer-dvb-s2-96c8b3df2a0b219a58a0873511a8fb7b7f6cfd4f.tar.bz2 |
cx88: Ensure the tuner is reset correctly
From: Steven Toth <stoth@hauppauge.com>
Previous patches assume the tuner was on a different gpio. This patch
corrects this.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-cards.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-cards.c b/linux/drivers/media/video/cx88/cx88-cards.c index 4adecb6a9..2a972b34f 100644 --- a/linux/drivers/media/video/cx88/cx88-cards.c +++ b/linux/drivers/media/video/cx88/cx88-cards.c @@ -1939,12 +1939,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 { |