[alsa-devel] Event or signal for microphone connect/disconnect
27 Jul
2011
27 Jul
'11
9:51 a.m.
Hi,
I have 2 microphones on my laptop: 1 pluggable on the mic port and 1 on the surface . Is there any way to receive events/signal that the microphone on the mic port is connected/disconnected.
I want to implement this feature in a recording program.
Thank you
Ionut Putinei
27 Jul
27 Jul
2:11 p.m.
Putinei Ionut wrote:
Is there any way to receive events/signal that the microphone on the mic port is connected/disconnected.
If supported by the hardware and the driver, such jack connection events are reported through an input device (/dev/input/*). The input device interface is somewhat documented at the end of linux/Documentation/input/input.txt.
Regards, Clemens
4897
Age (days ago)
4897
Last active (days ago)
1 comments
2 participants
participants (2)
-
Clemens Ladisch
-
Putinei Ionut