summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-05-30 13:03:12 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-05-30 13:03:12 +0200
commit57666826019dd00470e7838c4edf8e558f0b56dd (patch)
tree4e44b5f34e044991681e8a99c4a1e6e5e121be9c /linux/drivers
parentc9f65b1431da7ce5d47b478ab6939dd0c7ff75ee (diff)
downloadmediapointer-dvb-s2-57666826019dd00470e7838c4edf8e558f0b56dd.tar.gz
mediapointer-dvb-s2-57666826019dd00470e7838c4edf8e558f0b56dd.tar.bz2
cx18: explicitly test for XC2028 tuner
From: Hans Verkuil <hverkuil@xs4all.nl> 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>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/cx18/cx18-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx18/cx18-gpio.c b/linux/drivers/media/video/cx18/cx18-gpio.c
index 2f324b846..ceb63653c 100644
--- a/linux/drivers/media/video/cx18/cx18-gpio.c
+++ b/linux/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;
}