[alsa-devel] question on snd_jack_report

Kp, Jeeja jeeja.kp at intel.com
Sun Nov 1 15:24:00 CET 2009


When I call snd_jack_report with the status of the jack, am monitoring the /dev/input/eventX (using event.c) for Userspace events when Headset is inserted and I don't see any events even when snd_jack_report() is called. Is there any specific configuration that is required (xorg.config)?

-----Original Message-----
From: Mark Brown [mailto:broonie at opensource.wolfsonmicro.com] 
Sent: Wednesday, October 21, 2009 6:49 PM
To: Harsha, Priya
Cc: alsa-devel at alsa-project.org
Subject: Re: [alsa-devel] question on snd_jack_report

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