Re: question on snd_jack_report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, October 21, 2009 6:49 PM
To: Harsha, Priya
Cc: alsa-devel@xxxxxxxxxxxxxxxx
Subject: Re:  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.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux