[alsa-devel] question on snd_jack_report
Mark Brown
broonie at opensource.wolfsonmicro.com
Wed Oct 21 15:19:14 CEST 2009
On Wed, Oct 21, 2009 at 06:22:47PM +0530, Harsha, Priya wrote:
Please fix your MUA to wrap at 80 columns, I have once more reflowed
your text to fit.
> When I call snd_jack_report with the status of the jack, from the user
> user space which parameter should I check in the
> sys/class/input/input2 to know if the jack is present or not?
Assuming you're looking to check the presence of a device in the jack
(rather than the presence of the jack itself) then there's nothing in
sysfs, you read this information from the device node. See evtest.c
(google should show up lots of copies) for sample code doing this.
More information about the Alsa-devel
mailing list