From owner-freebsd-multimedia Wed Feb 3 11:28:01 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA06781 for freebsd-multimedia-outgoing; Wed, 3 Feb 1999 11:28:01 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA06744 for ; Wed, 3 Feb 1999 11:27:51 -0800 (PST) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail.siemens.de (salomon.siemens.de [139.23.33.13]) by david.siemens.de (8.9.2/8.9.2) with ESMTP id UAA19043 for ; Wed, 3 Feb 1999 20:27:49 +0100 (MET) Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [146.180.31.23]) by mail.siemens.de (8.9.2/8.9.2) with ESMTP id UAA00657 for ; Wed, 3 Feb 1999 20:27:48 +0100 (MET) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.8.8/8.8.8) id UAA21643 for ; Wed, 3 Feb 1999 20:27:48 +0100 (CET) Date: Wed, 3 Feb 1999 20:27:46 +0100 From: Andre Albsmeier To: freebsd-multimedia@FreeBSD.ORG Subject: Patch to fxtv to cancel channel swithing noise Message-ID: <19990203202746.A10589@internal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Running fxtv on my Hauppauge TV card works relly nice (thanks to all who made this possible), but has a small thing that really bothers me: When changing channels, there is a loud, sharp noise being produced which really could damage my speakers if I have set the volume to a high level before. I have made a small patch to fxtv which mutes the audio output, switches the channels, waits a little until the noise has settled, and unmutes audio again. I agree that this is a hack, but hey, it works and maybe someone wants to use it. (If there are better solutions, tell me). FYI, this is the card: bktr0 rev 2 int a irq 11 on pci0:12:0 Hauppauge WinCast/TV, Philips PAL I tuner, msp3400c stereo, remote control. Detected a MSP3410D-B4 -Andre --- tvcapture.c.ORI Sat Jan 30 21:17:12 1999 +++ tvcapture.c Sat Jan 30 21:33:13 1999 @@ -587,15 +587,17 @@ return; } + if( ! (old_audio & AUDIO_MUTE) ) + TVCAPTURESetAudioMute( c, TRUE ); + if ( ioctl( c->tfd, TVTUNER_SETCHNL, &larg ) < 0 ) { DO_IOCTL_SERR( "TVTUNER_SETCHNL", larg ); return; } c->tuner_chan_active = TRUE; - old_audio &= AUDIO_MUTE; - if ( old_audio ) - TVCAPTURESetAudioMute( c, TRUE ); + usleep(500000); + TVCAPTURESetAudioMute( c, old_audio & AUDIO_MUTE ? TRUE : FALSE ); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message