[alsa-devel] How can you tell if the speaker jack on your sound card has anything plugged into it???

Robert Jarzmik rjarzmik at free.fr
Fri Apr 25 23:08:49 CEST 2008


Mark Brown <broonie at opensource.wolfsonmicro.com> writes:

> There's currently no standard way of getting this information from user
> space even where the hardware provides it.
Isn't the event api switch "SW_HEADPHONE_INSERT" standard ?
I thought it was designed for such use.

If I'm not mistaken, the Neo teams handles it that way, as I do for the mio :
 -> input_report_switch(mioa701_evdev, SW_HEADPHONE_INSERT, val);

--
Robert



More information about the Alsa-devel mailing list