Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2018 01:14:46 +0000 (UTC)
From:      Tai-hwa Liang <avatar@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338038 - head/sys/dev/sound/pci
Message-ID:  <201808190114.w7J1EkYa048307@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avatar
Date: Sun Aug 19 01:14:46 2018
New Revision: 338038
URL: https://svnweb.freebsd.org/changeset/base/338038

Log:
  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+

Modified:
  head/sys/dev/sound/pci/csa.c

Modified: head/sys/dev/sound/pci/csa.c
==============================================================================
--- head/sys/dev/sound/pci/csa.c	Sun Aug 19 00:46:22 2018	(r338037)
+++ head/sys/dev/sound/pci/csa.c	Sun Aug 19 01:14:46 2018	(r338038)
@@ -710,7 +710,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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808190114.w7J1EkYa048307>