Bug 118709

Summary: My sound stucks & can't restart !
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Alexey Eremenko <al4321>
Component: SoundAssignee: Takashi Iwai <tiwai>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alexey Eremenko 2005-09-24 12:06:42 UTC
After using skype for some time, my sound became inaccessible:
I have tried to restart my sound system, but it failed.

linux:/ # rcalsasound reload
Shutting down sound driverERROR: Module snd_mixer_oss is in use
ERROR: Module snd_via82xx is in use
ERROR: Module snd_ac97_codec is in use by snd_via82xx
ERROR: Module snd_ac97_bus is in use by snd_ac97_codec
ERROR: Module snd_pcm is in use by snd_via82xx,snd_ac97_codec
ERROR: Module snd_timer is in use by snd_pcm
ERROR: Module snd_mpu401_uart is in use by snd_via82xx
ERROR: Module snd_rawmidi is in use by snd_mpu401_uart
ERROR: Module snd_seq_device is in use by snd_rawmidi
ERROR: Module snd is in use by
snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
                                                                      failed
Starting sound driver:  via82xxFATAL: Module snd_via82xx not found.
                                                                      failed


My hardware:AMD Sempron CPU, 1GB RAM, VIA KM400 chipset, VIA 8237 audio
My Software:SUSE 10.0 RC1, Skype 1.2
Comment 1 Takashi Iwai 2005-09-26 12:03:17 UTC
Most likely a thread of skype or some other process is still alive, which keeps
touching the OSS device.  That can't be fixed in the init script safely.  It's
rather a problem of application.

Just make sure that you killed the app completely.

Alternatively, you can try aoss to run apps with ALSA OSS emulation.  It'd be
even a better option (if it works).
Comment 2 Alexey Eremenko 2005-09-27 17:59:14 UTC
Well, no, I have killed all thread of all software that accessing my sound     
device.     
Anyway - the only possible solutions to this problem is either reset my     
computer (bad solution) or make the driver that gets " rcalsasound reload "    
command to invalidate all calls of all apps to a sound devices, by redirecting    
those app's audio output to /dev/null  (smart solution)   
  
i.e. If you have a program in memory (say XMMS) that u forgotten to shutdown,  
but u have restarted the audio drivers, XMMS won't crash, the OS won't crash, 
u won't need reset your PC, just you will hear sound no more.  
Comment 3 Takashi Iwai 2005-09-28 07:42:52 UTC
It's not enough to kill only threads but also to kill the whole process since
many programs restart threads automatically.
Comment 4 Takashi Iwai 2007-02-26 14:22:03 UTC
Resolved to WONTFIX as rcalsasound doesn't guarantee the restart of badly mannered processes.