Markus Braun <[EMAIL PROTECTED]> writes:

 > I have a IBM Thinkpad T21 with a Cirrus Logic CS 4614/22/24 audio
 > controller. I have used alsa 0.5.12a and before thet the module from teh
 > linux kernel. Both without any problems. Last weekend I switched to alsa
 > 0.9.0beta10. Now I have the problem, that I am only able to start alsa
 > once. If I reboot the computer I am not able to load the alsa modules
 > again. I get the message 
 > 
 > "ALSA card-cs46xx.c:188: Sound Fusion CS46xx soundcard not found or device busy"
 > 
 > The only way to load the modules is to powercycle the laptop. The CLKRUN
 > hack is activated in both versions.
 > 
 > Any suggestions how to find the problem?

   I posted a fix for this to the alsa-devel list a couple of months
ago, but it doesn't seem to have made it to the ALSA source yet. The
problem appeared on my Santa Cruz sound card, but it sounds like the
same problem.

   This is what I wrote:

>   After much peering around, traced the problem to function
> snd_ac97_mixer() in file lowlevel/generic/ac97_codec.c. Line 1407
> defines a max time delay after chip reset before failure:
>
>       end_time = jiffies + (HZ / 2);
>
>    This was apparently not long enough; changing it to
>
>       end_time = jiffies + (HZ);
>
>    seems to have cured the problem (although this is probably at least
> as empirical as the original!). The 4297 datasheet isn't much help
> here, so I'm not sure what the real value should be. With the original
> value, the delay loop would time out on an attempt to reload the
> module. I'm not sure why it would work on initial load; perhaps, ince
> this happened at boot time and the machine was presumably working
> harder, the effective delay period was somewhat longer.

   I'm still not sure about the last part. I'm also not sure why the
4297 takes so long to reset: HZ jiffies should translate to a one
second time delay, which seems unlikely. All I can say that, since I
made this change, I've never had a recurrence of the problem.

 .....Ron

-- 
Ron Murray   ([EMAIL PROTECTED])
https://www.rjmx.net/~ron
GPG Public Key Fingerprint: F2C1 FC47 5EF7 0317 133C  D66B 8ADA A3C4 D86C 74DE

_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to