misc/47029: Static and popping with Hercules GameTheatre XP

Anish Mistry mistry.7 at osu.edu
Thu Oct 30 22:12:28 PST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patch to fix problem.  The external amp in the breakout box needs to be turned 
on.  I was only able to test on 4.9-RELEASE since I can't afford to loose 
this machine to -CURRENT.
Also attached.

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

- -- 
Anish Mistry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/ofzHxqA5ziudZT0RAltRAKDa8xQnH8ML05H7KvxHwCIb/nvSMgCgk60C
w2KLMOYVgt6pocaY5tsfF8c=
=mHLm
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hercules-gtxp-amp.patch
Type: text/x-diff
Size: 659 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20031031/0b40e582/hercules-gtxp-amp.bin


More information about the freebsd-multimedia mailing list