summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-05-30 16:03:12 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-05 11:35:54 +0200
commit4ecc24737700f07d6c2a8fdf8c1737e399f1830f (patch)
treecf6e57d692b3113086f8456aaf06619295cc6818
parentV4L/DVB (7977): cx18: fix init order and remove duplicate open_on_first_use. (diff)
downloadlinux-4ecc24737700f07d6c2a8fdf8c1737e399f1830f.tar.xz
linux-4ecc24737700f07d6c2a8fdf8c1737e399f1830f.zip
V4L/DVB (7978): cx18: explicitly test for XC2028 tuner
Testing whether xceive_pin is non-zero is not good enough as 0 is a valid value. Instead explicitly test whether the Xceive tuner is used. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/cx18/cx18-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-gpio.c b/drivers/media/video/cx18/cx18-gpio.c
index 2f324b8467cb..ceb63653c926 100644
--- a/drivers/media/video/cx18/cx18-gpio.c
+++ b/drivers/media/video/cx18/cx18-gpio.c
@@ -62,7 +62,7 @@ void cx18_gpio_init(struct cx18 *cx)
cx->gpio_dir = cx->card->gpio_init.direction;
cx->gpio_val = cx->card->gpio_init.initial_value;
- if (cx->card->xceive_pin) {
+ if (cx->card->tuners[0].tuner == TUNER_XC2028) {
cx->gpio_dir |= 1 << cx->card->xceive_pin;
cx->gpio_val |= 1 << cx->card->xceive_pin;
}