提交 20b5ee5d 编写于 作者: C Curt Meyers 提交者: Mauro Carvalho Chehab

V4L/DVB (3366): Kworld ATSC110: initialize the tuner for analog mode on module load

- Enable the tuv1236 tuner on the Kworld-ATSC110 card so that the
  tuner can be identified when tuners.ko loads.
- With this change it is no longer necessary to remove and reload
  the tuner module in order to get the tuv1236 identified.
- This code was copied from the ATI HDTV Wonder init routine (in cx88-cards.c)
  which also uses the TUV1236D.
Signed-off-by: NCurt Meyers <cmeyers@boilerbots.com>
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 ccb1ef19
...@@ -3549,6 +3549,18 @@ int saa7134_board_init2(struct saa7134_dev *dev) ...@@ -3549,6 +3549,18 @@ int saa7134_board_init2(struct saa7134_dev *dev)
i2c_transfer(&dev->i2c_adap, &msg, 1); i2c_transfer(&dev->i2c_adap, &msg, 1);
} }
break; break;
case SAA7134_BOARD_KWORLD_ATSC110:
{
/* enable tuner */
int i;
u8 buffer [] = { 0x10,0x12,0x13,0x04,0x16,0x00,0x14,0x04,0x017,0x00 };
dev->i2c_client.addr = 0x0a;
for (i = 0; i < 5; i++)
if (2 != i2c_master_send(&dev->i2c_client,&buffer[i*2],2))
printk(KERN_WARNING "%s: Unable to enable tuner(%i).\n",
dev->name, i);
}
break;
} }
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册