Skip to content

Commit

Permalink
V4L/DVB (7059): cx88: Ensure the tuner is reset correctly
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 9121106 commit 72e04f7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/media/video/cx88/cx88-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 72e04f7

Please sign in to comment.