From owner-freebsd-multimedia Mon Jun 7 2:52:49 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from fleming.cs.strath.ac.uk (fleming.cs.strath.ac.uk [130.159.196.126]) by hub.freebsd.org (Postfix) with ESMTP id 19EB114C96 for ; Mon, 7 Jun 1999 02:52:43 -0700 (PDT) (envelope-from roger@cs.strath.ac.uk) Received: from cs.strath.ac.uk (scary.dmem.strath.ac.uk [130.159.202.5]) by fleming.cs.strath.ac.uk (8.8.8/8.8.8) with ESMTP id KAA14377 Mon, 7 Jun 1999 10:52:30 +0100 (BST) Message-ID: <375B96A3.8FEA7FF2@cs.strath.ac.uk> Date: Mon, 07 Jun 1999 10:53:39 +0100 From: Roger Hardiman Organization: Strathclyde University X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.2-STABLE i386) MIME-Version: 1.0 To: Doug White Cc: multimedia@FreeBSD.ORG Subject: Re: Hauppauge SVIDEO camera help References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Doug, > Attempts to get this to work with my WinCast/TV have yielded no success. > I've tried adjusting the GPIO mask in the kernel to 0x00 as suggested in > an eariler mail No, the GPIO to 0x00 fix was for the Intel Create and Share camera on an Intel Bt848 card. There should be no need to change anything for the Hauppauge. > but no dice on either the SVIDEO or CSVIDEO inputs in > fxtv. The LED does not come on. GPIO is the right area. Time for some hacking. I'm sure you are up to it Doug. There is an ioctl for allowing user land access to the GPIO port. Here is the code fragment. Note you need to add options BKTR_GPIO_ACCESS to your kernel config file and make a new kernel. /* Ioctl's for direct gpio access */ #ifdef BKTR_GPIO_ACCESS case BT848_GPIO_GET_EN: *(int*)arg = bt848->gpio_out_en; break; case BT848_GPIO_SET_EN: bt848->gpio_out_en = *(int*)arg; break; case BT848_GPIO_GET_DATA: *(int*)arg = bt848->gpio_data; break; case BT848_GPIO_SET_DATA: bt848->gpio_data = *(int*)arg; break; #endif /* BKTR_GPIO_ACCESS */ You want to try this 1) start FXTV and set to CSVIDEO for the Hauppauge camera. 2) start your own program which toggles various GPIO lines. 3) I would try this for starters. int out_enable = 0xffffff; /* set all 24 bits to 1 */ int d, x; ioctl (f, BT848_GPIO_SET_EN, &out_enable); for (x=0; x<24; x++) { d = 1<