Distribution: Slackware current Hardware Environment: K7S5A, Athlon-xp 2600+, 266 FSB, 2100 DDR 1G, SB16. Software Environment: Problem Description: When the kernel first starts to initialize everything along with loading modules my sound module does not load correctly. When I bring up alsamixer there are several "simple controls" missing, even when I try to access the controls via amixer. I have to wait untill I get to a shell to modprobe the module for it to insert correctly. I have also tried building the module into the kernel with the same result of missing "simple controls". Also note that without these "simple controls" I can have no volume control so I do not hear any sound when it is in this state. I have already scratched off my alsa packages as the culprit, it has nothing to do with the alsa packages installed on my system such as the alsa-utils and what not. Steps to reproduce: Compile snd-ens1371 into the kernel or as a module that is auto loaded.
Can you provide more info when the driver is as module before the manual modprobe? - output from 'lsmod' - output from 'amixer controls' - any lines related to sound from /var/log/messages
This bug might be similar with this one: https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1023
lsmod output: Module Size Used by snd_ens1371 23716 0 snd_rawmidi 25952 1 snd_ens1371 snd_ac97_codec 78072 1 snd_ens1371 amixer controls output: numid=11,iface=MIXER,name='3D Control - Center' numid=12,iface=MIXER,name='3D Control - Depth' numid=8,iface=MIXER,name='3D Control - Switch' numid=3,iface=MIXER,name='PCM Playback Switch' numid=4,iface=MIXER,name='PCM Playback Volume' numid=22,iface=MIXER,name='Line In->Rear Out Switch' numid=1,iface=MIXER,name='Mic Boost (+20dB)' numid=10,iface=MIXER,name='Mic Select' numid=2,iface=MIXER,name='Aux Playback Volume' numid=9,iface=MIXER,name='Mono Output Select' numid=5,iface=MIXER,name='Capture Source' numid=6,iface=MIXER,name='Capture Switch' numid=7,iface=MIXER,name='Capture Volume' numid=13,iface=MIXER,name='IEC958 Playback Con Mask' numid=14,iface=MIXER,name='IEC958 Playback Pro Mask' numid=15,iface=MIXER,name='IEC958 Playback Default' numid=16,iface=MIXER,name='IEC958 Playback Switch' numid=18,iface=MIXER,name='IEC958 Playback Switch',index=1 numid=17,iface=MIXER,name='External Amplifier' numid=19,iface=PCM,name='IEC958 Playback Default',index=1 numid=20,iface=PCM,name='IEC958 Playback Mask',index=1 numid=21,iface=PCM,name='IEC958 Playback PCM Stream',index=1 /var/log/messages: Mar 31 10:07:38 blah kernel: Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC). Mar 31 10:07:38 blah kernel: ALSA device list: Mar 31 10:07:38 blah kernel: No soundcards found. Athough it looks like it doesn't see my card, i've seen this before when I had no problems with the sound module, so I think this message is unrelated. Also I took a look at that bug report at the alsa bug report page and it is very similer to what I am experiencing, although I do not know if its the same problem.
Robert, it would be useful to test 2.6.12-rc5 and/or 2.6.12-rc5-mm1, see if this problem is still present, thanks.
Unfortunatly my sound blaster card doesn't work anymore, I still need to get a new one to see if the problem persists. Sorry I can't test it to see if the problem persists.
Correction regarding last comment. I am able to test it, I had taken everything out of my case to change cases and I guess I didn't mount my sb16 correctly even though I checked it twice, I guess third time was the charm. Anyway I will compile both kernels and check to see if it works.
Problem is still there, I am missing the "Master" control with both kernels. Here are the amixer 'controls' and lsmod outputs for both kernels. 2.6.12-rc5 lsmod output: Module Size Used by snd_ens1371 23652 0 snd_rawmidi 26464 1 snd_ens1371 snd_ac97_codec 82616 1 snd_ens1371 2.6.12-rc5 amixer 'controls' output: numid=1,iface=MIXER,name='Master Mono Playback Volume' numid=25,iface=MIXER,name='3D Control - Center' numid=26,iface=MIXER,name='3D Control - Depth' numid=22,iface=MIXER,name='3D Control - Switch' numid=17,iface=MIXER,name='PCM Playback Switch' numid=18,iface=MIXER,name='PCM Playback Volume' numid=36,iface=MIXER,name='Line In->Rear Out Switch' numid=9,iface=MIXER,name='Line Playback Switch' numid=10,iface=MIXER,name='Line Playback Volume' numid=11,iface=MIXER,name='CD Playback Switch' numid=12,iface=MIXER,name='CD Playback Volume' numid=8,iface=MIXER,name='Mic Boost (+20dB)' numid=24,iface=MIXER,name='Mic Select' numid=6,iface=MIXER,name='Mic Playback Switch' numid=7,iface=MIXER,name='Mic Playback Volume' numid=4,iface=MIXER,name='Phone Playback Switch' numid=5,iface=MIXER,name='Phone Playback Volume' numid=13,iface=MIXER,name='Video Playback Switch' numid=14,iface=MIXER,name='Video Playback Volume' numid=2,iface=MIXER,name='PC Speaker Playback Switch' numid=3,iface=MIXER,name='PC Speaker Playback Volume' numid=15,iface=MIXER,name='Aux Playback Switch' numid=16,iface=MIXER,name='Aux Playback Volume' numid=23,iface=MIXER,name='Mono Output Select' numid=19,iface=MIXER,name='Capture Source' numid=20,iface=MIXER,name='Capture Switch' numid=21,iface=MIXER,name='Capture Volume' numid=27,iface=MIXER,name='IEC958 Playback Con Mask' numid=28,iface=MIXER,name='IEC958 Playback Pro Mask' numid=29,iface=MIXER,name='IEC958 Playback Default' numid=30,iface=MIXER,name='IEC958 Playback Switch' numid=32,iface=MIXER,name='IEC958 Playback Switch',index=1 numid=31,iface=MIXER,name='External Amplifier' numid=33,iface=PCM,name='IEC958 Playback Default',index=1 numid=34,iface=PCM,name='IEC958 Playback Mask',index=1 numid=35,iface=PCM,name='IEC958 Playback PCM Stream',index=1 2.6.12-rc5-mm1 lsmod output: Module Size Used by snd_ens1371 23716 0 snd_rawmidi 26528 1 snd_ens1371 snd_ac97_codec 85244 1 snd_ens1371 2.6.12-rc5-mm1 amixer 'controls' output: numid=22,iface=MIXER,name='3D Control - Center' numid=23,iface=MIXER,name='3D Control - Depth' numid=19,iface=MIXER,name='3D Control - Switch' numid=14,iface=MIXER,name='PCM Playback Switch' numid=15,iface=MIXER,name='PCM Playback Volume' numid=33,iface=MIXER,name='Line In->Rear Out Switch' numid=6,iface=MIXER,name='Line Playback Switch' numid=7,iface=MIXER,name='Line Playback Volume' numid=8,iface=MIXER,name='CD Playback Switch' numid=9,iface=MIXER,name='CD Playback Volume' numid=5,iface=MIXER,name='Mic Boost (+20dB)' numid=21,iface=MIXER,name='Mic Select' numid=3,iface=MIXER,name='Mic Playback Switch' numid=4,iface=MIXER,name='Mic Playback Volume' numid=1,iface=MIXER,name='Phone Playback Switch' numid=2,iface=MIXER,name='Phone Playback Volume' numid=10,iface=MIXER,name='Video Playback Switch' numid=11,iface=MIXER,name='Video Playback Volume' numid=12,iface=MIXER,name='Aux Playback Switch' numid=13,iface=MIXER,name='Aux Playback Volume' numid=20,iface=MIXER,name='Mono Output Select' numid=16,iface=MIXER,name='Capture Source' numid=17,iface=MIXER,name='Capture Switch' numid=18,iface=MIXER,name='Capture Volume' numid=24,iface=MIXER,name='IEC958 Playback Con Mask' numid=25,iface=MIXER,name='IEC958 Playback Pro Mask' numid=26,iface=MIXER,name='IEC958 Playback Default' numid=27,iface=MIXER,name='IEC958 Playback Switch' numid=29,iface=MIXER,name='IEC958 Playback Switch',index=1 numid=28,iface=MIXER,name='External Amplifier' numid=30,iface=PCM,name='IEC958 Playback Default',index=1 numid=31,iface=PCM,name='IEC958 Playback Mask',index=1 numid=32,iface=PCM,name='IEC958 Playback PCM Stream',index=1 I hope this information is useful, let me know if you need anymore.
Also on a side note, I tried using my onboard sound and it worked just fine, so it definently is a Sound Blaster 16 thing, not to sure about the other Sound Blasters. I was thinking it might be the way my distro loads modules at startup so I wanted to rule that out. It definently only affects my sb16.
Created attachment 5102 [details] Increase wait delay for AC'97 codec (test patch)
Could you test the patch above?
Patch works I seem to have all my controls, here is the output of amixer 'controls' and lsmod anyway. lsmod output: Module Size Used by nvidia 3921660 12 snd_ens1371 23716 2 snd_rawmidi 26528 1 snd_ens1371 snd_ac97_codec 85372 1 snd_ens1371 amixer 'controls' output: numid=5,iface=MIXER,name='Master Mono Playback Switch' numid=6,iface=MIXER,name='Master Mono Playback Volume' numid=1,iface=MIXER,name='Master Playback Switch' numid=2,iface=MIXER,name='Master Playback Volume' numid=3,iface=MIXER,name='Headphone Playback Switch' numid=4,iface=MIXER,name='Headphone Playback Volume' numid=30,iface=MIXER,name='3D Control - Center' numid=31,iface=MIXER,name='3D Control - Depth' numid=27,iface=MIXER,name='3D Control - Switch' numid=22,iface=MIXER,name='PCM Playback Switch' numid=23,iface=MIXER,name='PCM Playback Volume' numid=41,iface=MIXER,name='Line In->Rear Out Switch' numid=14,iface=MIXER,name='Line Playback Switch' numid=15,iface=MIXER,name='Line Playback Volume' numid=16,iface=MIXER,name='CD Playback Switch' numid=17,iface=MIXER,name='CD Playback Volume' numid=13,iface=MIXER,name='Mic Boost (+20dB)' numid=29,iface=MIXER,name='Mic Select' numid=11,iface=MIXER,name='Mic Playback Switch' numid=12,iface=MIXER,name='Mic Playback Volume' numid=9,iface=MIXER,name='Phone Playback Switch' numid=10,iface=MIXER,name='Phone Playback Volume' numid=18,iface=MIXER,name='Video Playback Switch' numid=19,iface=MIXER,name='Video Playback Volume' numid=7,iface=MIXER,name='PC Speaker Playback Switch' numid=8,iface=MIXER,name='PC Speaker Playback Volume' numid=20,iface=MIXER,name='Aux Playback Switch' numid=21,iface=MIXER,name='Aux Playback Volume' numid=28,iface=MIXER,name='Mono Output Select' numid=24,iface=MIXER,name='Capture Source' numid=25,iface=MIXER,name='Capture Switch' numid=26,iface=MIXER,name='Capture Volume' numid=32,iface=MIXER,name='IEC958 Playback Con Mask' numid=33,iface=MIXER,name='IEC958 Playback Pro Mask' numid=34,iface=MIXER,name='IEC958 Playback Default' numid=35,iface=MIXER,name='IEC958 Playback Switch' numid=37,iface=MIXER,name='IEC958 Playback Switch',index=1 numid=36,iface=MIXER,name='External Amplifier' numid=38,iface=PCM,name='IEC958 Playback Default',index=1 numid=39,iface=PCM,name='IEC958 Playback Mask',index=1 numid=40,iface=PCM,name='IEC958 Playback PCM Stream',index=1 I was going to test the sound out with one of the 3d games that I play but they won't start up with the latest development kernels, but I tested the sound with mplayer listening to streaming media and it works no problem. It appears the problem is fixed. I appreciate the hard work fixing this bug. If you need anymore information please let me know. Thanks.
What's the status of this issue in kernel 2.6.16.5?
I no longer use the sb16 card and my system has been practically rebuilt with all the changes I made to it. I'm not even sure where I put that card at. I am not able to test it right now. I'll probably look for the card and see if the problem is fixed.
Please reopen this bug if you'll be able to reproduce it.