提交 72e04f72 编写于 作者: S Steven Toth 提交者: Mauro Carvalho Chehab

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: NSteven Toth <stoth@hauppauge.com>
Signed-off-by: NChaogui Zhang <czhang1974@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 9121106a
...@@ -1893,12 +1893,10 @@ int cx88_tuner_callback(void *priv, int command, int arg) ...@@ -1893,12 +1893,10 @@ int cx88_tuner_callback(void *priv, int command, int arg)
switch(core->boardnr) { switch(core->boardnr) {
case CX88_BOARD_PINNACLE_PCTV_HD_800i: case CX88_BOARD_PINNACLE_PCTV_HD_800i:
if(command == 0) { /* This is the reset command from xc5000 */ if(command == 0) { /* This is the reset command from xc5000 */
/* Reset XC5000 tuner via GPIO pin #2 */ /* Reset XC5000 tuner via SYS_RSTO_pin */
cx_set(MO_GP0_IO, 0x00000400); cx_write(MO_SRST_IO, 0);
cx_clear(MO_GP0_IO, 0x00000004); msleep(10);
mdelay(200); cx_write(MO_SRST_IO, 1);
cx_set(MO_GP0_IO, 0x00000004);
mdelay(200);
return 0; return 0;
} }
else { else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册