Date: Sat, 14 Feb 1998 11:34:16 +0100 From: Eivind Eklund <eivind@yes.no> To: Ian Freislich <iang@iafrica.com>, Eivind Eklund <eivind@yes.no> Cc: multimedia@FreeBSD.ORG Subject: Re: Audio using haupauge wintv card Message-ID: <19980214113416.41623@follo.net> In-Reply-To: <19848.887452158@iafrica.com>; from Ian Freislich on Sat, Feb 14, 1998 at 12:29:18PM %2B0200 References: <19980214024906.28444@follo.net> <19848.887452158@iafrica.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980214113416.41623>