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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
-----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-----
[-- Attachment #2 --]
--- 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;
}
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310310110.17741.mistry.7>
