Hi, At Tue, 21 Jan 2003 00:00:20 +1100, Matt Flax wrote: > > Hello, > > I have several alsa modules running (see below) and would like to stop > them and restart them because I run 'alsa rc6' and sound appears to stop > during testing of my applications (due to my own segfaults). > The problem (see below) is that the init.d script tries to rmmod the > alsa modules, but they don't get unloaded ! > > I use the alsa-driver-0.9.0rc6/utils/alsasound init.d script. > when I type : > # /etc/init.d/alsasound stop > Shutting down sound driver: snd-cmipci: Device or resource busy > snd-pcm: Device or resource busy > snd-mpu401-uart: Device or resource busy > snd-rawmidi: Device or resource busy > snd-opl3-lib: Device or resource busy > snd-timer: Device or resource busy > snd-seq-device: Device or resource busy > snd-hwdep: Device or resource busy > snd: Device or resource busy > done > > The modules don't get unloaded so they can't re-load. > Any ideas as to how to fix the problem with the init.d script ???
the alsasound init script checks the applications accessing to the alsa devices via fuser. perhaps some application tries to re-use the device once after it's killed. for example, xmms polls the mixer device (or pcm device possibly) in a certain period and this prevents to unload the modules properly. or, the process couldn't be killed by any reason. anyway, please check which process refers to the device. if the ALSA devices are being used, you can try the following. % fuser /dev/snd/* for checking the OSS devices, replace the argument with the OSS device files such like /dev/dsp* /dev/mixer* /dev/midi* /dev/audio* Takashi > > thanks > Matt > > _________________ running modules ___________________________ > snd-cmipci 14436 1 > snd-pcm 53600 1 [snd-cmipci] > snd-mpu401-uart 2624 0 [snd-cmipci] > snd-rawmidi 11616 0 [snd-mpu401-uart] > snd-opl3-lib 5280 0 [snd-cmipci] > snd-timer 9312 0 [snd-pcm snd-opl3-lib] > snd-seq-device 3696 0 [snd-rawmidi snd-opl3-lib] > snd-hwdep 3424 0 [snd-opl3-lib] > snd 23848 3 [snd-cmipci snd-pcm snd-mpu401-uart > snd-rawmid > i snd-opl3-lib snd-timer snd-seq-device snd-hwdep] > soundcore 3556 3 [snd] > > > -- > http://mffm.darktech.org > > WSOLA TimeScale Audio Mod : http://mffmtimescale.sourceforge.net/ > FFTw C++ : http://mffmfftwrapper.sourceforge.net/ > Vector Bass : http://mffmvectorbass.sourceforge.net/ > Multimedia Time Code : http://mffmtimecode.sourceforge.net/ > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > Alsa-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/alsa-devel > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel