Power up the external amplifiers additionally to powering up the DAC and ADC.

PR:		47029
Submitted by:	Anish Mistry <mistry.7@osu.edu>
Tested by:	David Murphy <dm@dmz.ie>
This commit is contained in:
Alexander Leidinger 2005-09-11 14:15:05 +00:00
parent 70001ecea2
commit 5ad14b759d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149988

View File

@ -667,6 +667,14 @@ csa_init(struct csa_info *csa)
/* Crank up the power on the DAC and ADC. */
csa_setplaysamplerate(resp, 8000);
csa_setcapturesamplerate(resp, 8000);
/* 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;
}