On Wed, 27 Nov 2002, Patrick Shirkey wrote:

> Jaroslav Kysela wrote:
> > 
> > Note that you'll have to terminate all applications using that soundcard
> > before you'll try to reconnect the device again. In next code, hopefully
> > the applications will be somehow terminated to make the cleanup process
> > automatic.
> > 
> 
> 
> Ok. That's the probable cause as I am having problems with jack not 
> releasing the device.
> 
> It seems that hotpluging out is a tricky issue because we have to decide 
> whether the application/s that are using the device should also be 
> terminated.
> 
> Is it possible to transparently swap snd-usb-audio with snd-dummy if it 
> has been installed? That could be a secondary default if people would 

It's too complicated and probably an overdesign. Also, what to do, if
another hardware is plugged to the system than previous one? The full
handshake between driver and application have to be triggered all times
(old "disconnected" file descriptors have to be closed).

> prefer their apps do not automatically segv.

We have two choices:

1) terminate all applications using a signal (SIG_KILL or SIG_TERM)
2) disable all operations with a file descriptor and give an error code
   to applications when disconnect occured so they can decide what to 
   do - terminate - or wait until hardware is not available again - (this
   is my goal)

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to