From owner-freebsd-multimedia@FreeBSD.ORG Thu Oct 30 22:12:27 2003 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D020D16A4CE; Thu, 30 Oct 2003 22:12:27 -0800 (PST) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CD4843FEC; Thu, 30 Oct 2003 22:12:26 -0800 (PST) (envelope-from mistry.7@osu.edu) Received: from 192.168.0.2 (adsl-64-108-97-7.dsl.wotnoh.ameritech.net [64.108.97.7]) (authenticated bits=0)h9V6ErZ3046501 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 31 Oct 2003 01:14:55 -0500 (EST) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-gnats-submit@FreeBSD.org, amistry@am-productions.biz Date: Fri, 31 Oct 2003 01:10:08 -0500 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_Azfo/0ZI08deMef" Message-Id: <200310310110.17741.mistry.7@osu.edu> cc: freebsd-multimedia@FreeBSD.org Subject: Re: misc/47029: Static and popping with Hercules GameTheatre XP X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 06:12:28 -0000 --Boundary-00=_Azfo/0ZI08deMef Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patch to fix problem. The external amp in the breakout box needs to be tur= ned=20 on. I was only able to test on 4.9-RELEASE since I can't afford to loose=20 this machine to -CURRENT. Also attached. =2D --- sys/dev/sound/pci/csapcm.c.orig Fri Dec 20 23:01:39 2002 +++ sys/dev/sound/pci/csapcm.c Fri Oct 31 00:59:26 2003 @@ -648,6 +648,13 @@ /* Crank up the power on the DAC and ADC. */ csa_setplaysamplerate(resp, 8000); csa_setcapturesamplerate(resp, 8000); + /* Hercules Game Theatre XP needs the external amp turned on! */ + /* Set defaults */ + csa_writeio(resp, BA0_EGPIODR, EGPIODR_GPOE0); + csa_writeio(resp, BA0_EGPIOPTR, EGPIOPTR_GPPT0); + /* Power up amplifier */ + csa_writeio(resp, BA0_EGPIODR, csa_readio(resp, BA0_EGPIODR) |=20 EGPIODR_GPOE2); + csa_writeio(resp, BA0_EGPIOPTR, csa_readio(resp, BA0_EGPIOPTR) |=20 EGPIOPTR_GPPT2); =20 return 0; } =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/ofzHxqA5ziudZT0RAltRAKDa8xQnH8ML05H7KvxHwCIb/nvSMgCgk60C w2KLMOYVgt6pocaY5tsfF8c=3D =3DmHLm =2D----END PGP SIGNATURE----- --Boundary-00=_Azfo/0ZI08deMef Content-Type: text/x-diff; charset="us-ascii"; name="hercules-gtxp-amp.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="hercules-gtxp-amp.patch" --- sys/dev/sound/pci/csapcm.c.orig Fri Dec 20 23:01:39 2002 +++ sys/dev/sound/pci/csapcm.c Fri Oct 31 00:59:26 2003 @@ -648,6 +648,13 @@ /* Crank up the power on the DAC and ADC. */ csa_setplaysamplerate(resp, 8000); csa_setcapturesamplerate(resp, 8000); + /* Hercules Game Theatre XP needs the external amp turned on! */ + /* Set defaults */ + csa_writeio(resp, BA0_EGPIODR, EGPIODR_GPOE0); + csa_writeio(resp, BA0_EGPIOPTR, EGPIOPTR_GPPT0); + /* Power up amplifier */ + csa_writeio(resp, BA0_EGPIODR, csa_readio(resp, BA0_EGPIODR) | EGPIODR_GPOE2); + csa_writeio(resp, BA0_EGPIOPTR, csa_readio(resp, BA0_EGPIOPTR) | EGPIOPTR_GPPT2); return 0; } --Boundary-00=_Azfo/0ZI08deMef--