]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (12100): em28xx: make sure the analog GPIOs are set if we used a card hint
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Fri, 19 Jun 2009 03:20:28 +0000 (00:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 23 Jun 2009 06:14:16 +0000 (03:14 -0300)
commit224f9427eaa3ef4e0663d1361e08eb74958ee3aa
tree7b20b253b717678c71a4343546ec4e123be6e2e7
parente299e0f1838cf7f2d013054d9a28bd70ab2dfeb1
V4L/DVB (12100): em28xx: make sure the analog GPIOs are set if we used a card hint

In cases where the board had a default USB ID, we would not indentify the
board until after the call to em28xx_set_mode().  As a result, for those
boards the analog GPIOs were not being set before probing the i2c bus for
devices (the probe would occur with the GPIOs being all high).

Make a call to em28xx_set_mode() so that the GPIOs are set properly before
probing the i2c bus for devices.

This problem was detected with the EVGA inDtube, where the tvp5150 is not
powered on unless GPIO1 is pulled low.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c