aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTai-hwa Liang <avatar@FreeBSD.org>2018-08-26 13:06:57 +0000
committerTai-hwa Liang <avatar@FreeBSD.org>2018-08-26 13:06:57 +0000
commit8620f1555c4aa6d68bf34a0e22ff294f4fc0a2d8 (patch)
treec27771a90aaecb0c442b1757c13c268e76d8cce7
parent4b509df4b3ec429ad943bf5a0edb60a51786777e (diff)
downloadsrc-8620f1555c4aa6d68bf34a0e22ff294f4fc0a2d8.tar.gz
src-8620f1555c4aa6d68bf34a0e22ff294f4fc0a2d8.zip
MFC r338038: Extending the delay cycles to give the codec more time to pump ADC data across the AC-link.
Without this patch, some CS4614 cards will need users to reload the driver manually or the hardware won't be initialised properly. Something like: # kldload snd_csa # kldunload snd_csa # kldload snd_csa Tested with: Terratec SiXPack 5.1+
Notes
Notes: svn path=/stable/8/; revision=338328
-rw-r--r--sys/dev/sound/pci/csa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/csa.c b/sys/dev/sound/pci/csa.c
index 05d083bb45d4..75c9dd321472 100644
--- a/sys/dev/sound/pci/csa.c
+++ b/sys/dev/sound/pci/csa.c
@@ -719,7 +719,7 @@ csa_initialize(sc_p scp)
* the codec is pumping ADC data across the AC-link.
*/
acisv = 0;
- for (i = 0 ; i < 1000 ; i++) {
+ for (i = 0 ; i < 2000 ; i++) {
/*
* First, lets wait a short while to let things settle out a bit,
* and to prevent retrying the read too quickly.