[alsa-devel] FW: question on snd_jack_report
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@opensource.wolfsonmicro.com] Sent: Wednesday, October 21, 2009 6:49 PM To: Harsha, Priya Cc: alsa-devel@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.
On Sun, Nov 01, 2009 at 07:55:12PM +0530, Kp, Jeeja wrote:
Please don't top post and please fix your MUA to word wrap at 80 columns. Not doing these things makes your messages much harder to read and reply to. I've reflowed your text into 80 columns.
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)?
What is event.c? If this is some part of the X.Org server then you'd be better asking the X folks about how to configure and use the X server, it rewraps the data it's getting from the kernel.
participants (2)
-
Kp, Jeeja
-
Mark Brown