]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
V4L/DVB (7978): cx18: explicitly test for XC2028 tuner
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 30 May 2008 14:03:12 +0000 (11:03 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 5 Jun 2008 09:35:54 +0000 (06:35 -0300)
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>
drivers/media/video/cx18/cx18-gpio.c

index 2f324b8467cbba35d2caf371f4ebafe7beb8760a..ceb63653c926f71e6b8dae4ce39e00e4e03314ea 100644 (file)
@@ -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;
        }