>I guess another way of dealing with this kind of problem is to use a >semaphore rather than a spinlock, and a workqueue: when the interrupt >comes in, the call to snd_ctl_notify is put on the queue, where it will later >be run in process context, and can safely take the semaphore.
can i get a pointer to some code that does this? we need to do this for handling MIDI I/O in the hammerfall dsp driver. doing it from the interrupt handler causes audio dropouts because the midi i/o is so much slower. --p ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel