Re: Trouble with sound/mips/au1x00.c AC97 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I've added to: "snd_au1000_ac97_new" the lines:

au1000->ac97_ioport->config = AC97C_SG | AC97C_SYNC;
udelay(100);
au1000->ac97_ioport->config = 0x0;

after the cold reset, as you suggested. Sadly this did not solve the problem.

It seems that the only solution I have at the moment is to add a longer delay between hard reset and warm reset. I've changed the "udelay(10)" to a "mdelay(250)" (I know, it is a huge delay) but now the module is loaded perfectly every time. Now I'll try to reduce the delay and find the min.
I don't know if this issue is related to our board or if you can explain it.

What about the spin_lock_irqsave stuff? Do you suggest to leave them in or it is better to return to the old simple spin_lock?


2007/3/12, Marco Braga <marco.braga@xxxxxxxxx>:
Hi Charles, just a quick note: the "spin_lock_irqrestore" should be "spin_unlock_irqrestore". Anyway, the changed does not solve my problem (I've also tried the change in au1000_ac97_write).
As you see in the logs at the end of the email, it seems that module loading has random results. I've managed to follow the problem to line 606, when it calls "snd_ac97_mixer". This call often returns an error.

I'll try with the resets now..


-- LOG: ------------------------------------------------

# modprobe snd_au1x00
[  584.704000] AC'97 0 does not respond - RESET
[  584.717000] AC'97 0 access error (not audio or modem codec)
insmod: cannot insert '/lib/modules/2.6.17.14/kernel/sound/mips/snd-au1x00.ko':
Success (13): Success
modprobe: failed to load module snd_au1x00

# modprobe snd_au1x00
[ 1345.967000] AC'97 0 does not respond - RESET
[ 1345.980000] AC'97 0 access error (not audio or modem codec)
insmod: cannot insert '/lib/modules/2.6.17.14/kernel/sound/mips/snd-au1x00.ko':
Success (13): Success
modprobe: failed to load module snd_au1x00

# modprobe snd_au1x00
[ 1351.211000] AC'97 0 does not respond - RESET
[ 1351.224000] AC'97 0 access error (not audio or modem codec)
insmod: cannot insert '/lib/modules/2.6.17.14/kernel/sound/mips/snd- au1x00.ko':
Success (13): Success
modprobe: failed to load module snd_au1x00

# modprobe snd_au1x00
[ 1355.471000] AC'97 0 analog subsections not ready
[ 1355.497000] ALSA AC97: Driver Initialized

# modprobe snd_au1x00
[ 1361.837000] ALSA AC97: Driver Initialized

# modprobe snd_au1x00
[ 1365.403000] AC'97 0 analog subsections not ready
[ 1365.428000] ALSA AC97: Driver Initialized

# modprobe snd_au1x00
[ 1369.037000] ALSA AC97: Driver Initialized

# modprobe snd_au1x00
[ 1372.374000] ALSA AC97: Driver Initialized




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux