Hans,

The latest changeset of your v4l-dvb tree made the xceive tuner disappear on
my zap-tv1001 card:

# HG changeset patch
# User Hans Verkuil <[EMAIL PROTECTED]>
# Date 1211178712 -7200
# Node ID 00f49a25907fb7c6cc0a0cb7d214d2a9a1c6c5af
# Parent 1a4478a4fcca54fde0bd2f75806b596aa821fe35
Add support for Buffalo PC-MV5L/PCI card.

Attached is the proposed fix.

Regards,
Zoltan


# HG changeset patch
# User Zoltan Karcagi <[EMAIL PROTECTED]>
# Date 1211228503 -7200
# Node ID 9d24495218a747ff94399ac612553ebb9c1de002
# Parent  4c6a0454610257c222a3a0a6a071a8afd1f5f6f0
Fix xceive tuner init

At least on the Club3D ZAP-TV1001 card, to show up on the i2c bus, the xceive
tuner has to be explicitly activated first via the corresponding gpio line.

Signed-off-by: Zoltan Karcagi <[EMAIL PROTECTED]>

diff -r 4c6a04546102 -r 9d24495218a7 linux/drivers/media/video/ivtv/ivtv-gpio.c
--- a/linux/drivers/media/video/ivtv/ivtv-gpio.c	Mon May 19 21:55:14 2008 +0200
+++ b/linux/drivers/media/video/ivtv/ivtv-gpio.c	Mon May 19 22:21:43 2008 +0200
@@ -147,6 +147,7 @@ void ivtv_gpio_init(struct ivtv *itv)
 void ivtv_gpio_init(struct ivtv *itv)
 {
 	u16 dir = itv->card->gpio_init.direction;
+	u16 out;
 
 	if (itv->card->xceive_pin)
 		dir |= 1 << itv->card->xceive_pin;
@@ -158,7 +159,10 @@ void ivtv_gpio_init(struct ivtv *itv)
 		   read_reg(IVTV_REG_GPIO_DIR), read_reg(IVTV_REG_GPIO_OUT));
 
 	/* init output data then direction */
-	write_reg(itv->card->gpio_init.initial_value, IVTV_REG_GPIO_OUT);
+	out = itv->card->gpio_init.initial_value;
+	if (itv->card->xceive_pin)
+		out |= 1 << itv->card->xceive_pin;
+	write_reg(out, IVTV_REG_GPIO_OUT);
 	write_reg(dir, IVTV_REG_GPIO_DIR);
 }
 







_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to