From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcel Holtmann Subject: Plugin loading and unloading Date: Sat, 23 Apr 2005 16:36:00 +0200 Message-ID: <1114266960.10706.30.camel@pegasus> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi guys, I am working again on the A2DP Bluetooth plugin and the caching support in the latest ALSA library is nice and allows me to keep the underlaying link connected while stupid programs like XMMS closes the PCM when they switch the tracks. The PCM opening part and reusing of the underlaying AVDTP connection is easy, but I am a little bit concerned about the plugin unloading time. So is it possible to add init() and exit() functions that are called when the plugin is loaded and unloaded. Like we have for kernel modules? Do the ALSA library has a timer mechanism that we can use inside a plugin. Since it is a bad idea to hold the Bluetooth connection open for all the time, I like to add a idle timeout. This allows me to put the connection into sniff mode to save power or terminate it. Also the listing of plugins is still missing. I am fine with a general or plugin specific flag to make its PCM visible. Regards Marcel ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click