summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx23885/cx23885-cards.c
diff options
context:
space:
mode:
authorChristopher Pascoe2009-04-27 16:27:04 +0200
committerMauro Carvalho Chehab2009-04-29 21:00:38 +0200
commitd4dc673da9a94716ca2410306c1b36b5faf6c4cc (patch)
tree51b214a62ea7c9ffae0e5ea0d1b2cef4ff9509a7 /drivers/media/video/cx23885/cx23885-cards.c
parentV4L/DVB (11612): mx3_camera: Fix compilation with CONFIG_PM (diff)
downloadkernel-qcow2-linux-d4dc673da9a94716ca2410306c1b36b5faf6c4cc.tar.gz
kernel-qcow2-linux-d4dc673da9a94716ca2410306c1b36b5faf6c4cc.tar.xz
kernel-qcow2-linux-d4dc673da9a94716ca2410306c1b36b5faf6c4cc.zip
V4L/DVB (11626): cx23885: Two fixes for DViCO FusionHDTV DVB-T Dual Express
Two fixes for DViCO FusionHDTV DVB-T Dual Express: * Reset correct tuner when reinitializing xc3028. * Disable the I2C gate control to avoid locking up the I2C bus. Tested-by: John Knops <jknops@australiaonline.net.au> Reviewed-by: Steven Toth <stoth@linuxtv.org> Signed-off-by: Christopher Pascoe <linuxdvb@itee.uq.edu.au> Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-cards.c')
-rw-r--r--drivers/media/video/cx23885/cx23885-cards.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/cx23885/cx23885-cards.c b/drivers/media/video/cx23885/cx23885-cards.c
index a3c0565be1a9..6d6293f7d428 100644
--- a/drivers/media/video/cx23885/cx23885-cards.c
+++ b/drivers/media/video/cx23885/cx23885-cards.c
@@ -441,9 +441,9 @@ int cx23885_tuner_callback(void *priv, int component, int command, int arg)
case CX23885_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL_EXP:
/* Two identical tuners on two different i2c buses,
* we need to reset the correct gpio. */
- if (port->nr == 0)
+ if (port->nr == 1)
bitmask = 0x01;
- else if (port->nr == 1)
+ else if (port->nr == 2)
bitmask = 0x04;
break;
}