Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2003 01:10:08 -0500
From:      Anish Mistry <mistry.7@osu.edu>
To:        freebsd-gnats-submit@FreeBSD.org, amistry@am-productions.biz
Cc:        freebsd-multimedia@FreeBSD.org
Subject:   Re: misc/47029: Static and popping with Hercules GameTheatre XP
Message-ID:  <200310310110.17741.mistry.7@osu.edu>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310310110.17741.mistry.7>