summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-07-14 23:35:47 -0400
committerDevin Heitmueller <dheitmueller@kernellabs.com>2009-07-14 23:35:47 -0400
commitd4a045723fae91cc87a8dd7c71f47bf6fc6ae09f (patch)
treea7db7e6f43aa8a0223666a8538fae2010dc802ce
parent0898779f1c75c6821866a08052cd171590af009c (diff)
downloadmediapointer-dvb-s2-d4a045723fae91cc87a8dd7c71f47bf6fc6ae09f.tar.gz
mediapointer-dvb-s2-d4a045723fae91cc87a8dd7c71f47bf6fc6ae09f.tar.bz2
em28xx: Make sure the tuner is initialized if generic empia USB id was used
From: Devin Heitmueller <dheitmueller@kernellabs.com> In cases where the device has a generic Empia USB ID, the call in the precard setup phase did not set the tuner GPIO. As a result, the tuner may not be taken out of reset before attempting initialization in the analog driver. This problem was not seen before with the EVGA inDtube, since that particular board has the analog GPIO setup to include taking the tuner out of reset. Thanks to Andreas Lunderhage for testing patches and providing a remote debug environment for the Pinnacle 320e. Priority: normal Cc: Andreas Lunderhage <lunderhage@home.se> Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
-rw-r--r--linux/drivers/media/video/em28xx/em28xx-cards.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-cards.c b/linux/drivers/media/video/em28xx/em28xx-cards.c
index 3599d6223..3be05dcc1 100644
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c
@@ -2342,6 +2342,7 @@ void em28xx_card_setup(struct em28xx *dev)
em28xx_set_mode() in em28xx_pre_card_setup() was a no-op,
so make the call now so the analog GPIOs are set properly
before probing the i2c bus. */
+ em28xx_gpio_set(dev, dev->board.tuner_gpio);
em28xx_set_mode(dev, EM28XX_ANALOG_MODE);
break;
case EM2820_BOARD_SILVERCREST_WEBCAM: