summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/csa.c
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2000-01-01 09:07:03 +0000
committertanimura <tanimura@FreeBSD.org>2000-01-01 09:07:03 +0000
commit41a606e47393e252b5a06b1bfce96ec5bb95786d (patch)
tree6705d3e1f75e7c2f231e6e73910c8361dd96f9cf /sys/dev/sound/pci/csa.c
parent8ff2a6f6d47061b56460be29405a1864df862624 (diff)
downloadFreeBSD-src-41a606e47393e252b5a06b1bfce96ec5bb95786d.zip
FreeBSD-src-41a606e47393e252b5a06b1bfce96ec5bb95786d.tar.gz
Correct the delay durations as in the sample sources provided by Crystal Semiconductor.
Diffstat (limited to 'sys/dev/sound/pci/csa.c')
-rw-r--r--sys/dev/sound/pci/csa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/sound/pci/csa.c b/sys/dev/sound/pci/csa.c
index c339460..8ab596e 100644
--- a/sys/dev/sound/pci/csa.c
+++ b/sys/dev/sound/pci/csa.c
@@ -286,7 +286,7 @@ csa_initialize(sc_p scp)
* for a reset.
*/
csa_writeio(resp, BA0_ACCTL, 0);
- DELAY(250);
+ DELAY(100);
csa_writeio(resp, BA0_ACCTL, ACCTL_RSTN);
/*
@@ -362,7 +362,7 @@ csa_initialize(sc_p scp)
* First, lets wait a short while to let things settle out a bit,
* and to prevent retrying the read too quickly.
*/
- DELAY(250);
+ DELAY(125);
/*
* Read the AC97 status register to see if we've seen a CODEC READY
@@ -398,7 +398,7 @@ csa_initialize(sc_p scp)
#if notdef
DELAY(10000000L); /* clw */
#else
- DELAY(2500);
+ DELAY(1000);
#endif /* notdef */
/*
* Read the input slot valid register and see if input slots 3 and
@@ -477,7 +477,7 @@ csa_clearserialfifos(csa_res *resp)
for (i = 0 ; i < 256 ; i++) {
/* Make sure the previous FIFO write operation has completed. */
for (j = 0 ; j < 5 ; j++) {
- DELAY(250);
+ DELAY(100);
serbst = csa_readio(resp, BA0_SERBST);
if ((serbst & SERBST_WBSY) == 0)
break;
OpenPOWER on IntegriCloud