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)
commitcdf7bfa8926fb26d5900103ae09eb5f3eddb95cc
tree7b20b253b717678c71a4343546ec4e123be6e2e7
parentf867c3f4eab1d5006df4f3734fab1134feffbeba
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