From owner-freebsd-multimedia Sat Feb 14 02:34:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA03156 for freebsd-multimedia-outgoing; Sat, 14 Feb 1998 02:34:29 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA03142 for ; Sat, 14 Feb 1998 02:34:26 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [194.198.43.36]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id KAA15833; Sat, 14 Feb 1998 10:34:18 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.6/8.8.6) id LAA17366; Sat, 14 Feb 1998 11:34:17 +0100 (MET) Message-ID: <19980214113416.41623@follo.net> Date: Sat, 14 Feb 1998 11:34:16 +0100 From: Eivind Eklund To: Ian Freislich , Eivind Eklund Cc: multimedia@FreeBSD.ORG Subject: Re: Audio using haupauge wintv card References: <19980214024906.28444@follo.net> <19848.887452158@iafrica.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <19848.887452158@iafrica.com>; from Ian Freislich on Sat, Feb 14, 1998 at 12:29:18PM +0200 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Feb 14, 1998 at 12:29:18PM +0200, Ian Freislich wrote: > Eivind Eklund wrote: > > What I'd do to attempt to make the sound work is change the audio MUX > > values for your card. The values from 0 to 0xf is in use; one of them > > should give you sound. > > Call me stupid. I presume you mean in /usr/src/sys/pci/brooktree848.c > and these lines: > /* CARD_HAUPPAUGE */ > { "Hauppauge WinCast/TV", /* the 'name' */ > NULL, /* the tuner */ > 0, /* dbx is optional */ > 0, > PFC8582_WADDR, /* EEProm type */ > (u_char)(256 / EEPROMBLOCKSIZE), /* 256 bytes */ > { 0x00, 0x02, 0x01, 0x01, 1 } }, /* audio MUX values */ > > Can you give me some idea of what each of these numbers is so that > I can make intelligent guesses. The first one is for the tuner, the second is for the external, etc. Look at the header file. Each of these select an audio source. You'll want to vary them from 0 to 15. Here's a patch to make it easy: Index: brooktree848.c =================================================================== RCS file: /home/ncvs/src/sys/pci/brooktree848.c,v retrieving revision 1.28 diff -u -r1.28 brooktree848.c --- brooktree848.c 1998/02/09 06:10:44 1.28 +++ brooktree848.c 1998/02/14 08:45:59 @@ -2012,6 +2012,11 @@ case TVTUNER_SETCHNL: temp_mute( bktr, TRUE ); temp = tv_channel( bktr, (int)*(unsigned long *)arg ); + bktr->card.audiomuxs[0] = + bktr->card.audiomuxs[1] = + bktr->card.audiomuxs[2] = + bktr->card.audiomuxs[3] = + (*(unsigned long *)arg & GPIO_AUDIOMUX_BITS); temp_mute( bktr, FALSE ); if ( temp < 0 ) return( EINVAL ); Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message