On 17 Jul 2010, at 12:55, Sebastian H. wrote:

> 
> I'm looking for a way to detect if an USB-Sound-Card has been
> attached/detached without polling the card list with
> snd_card_next() and friends.
> Does ALSA provide a signaling mechanism for this or is there maybe an
> other Linux way to recommend?
> 

udev is the basic mechanism for this

Depending on your distro, you may also be able to use dbus.

jch


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to