2 Nov
2009
2 Nov
'09
7:01 p.m.
On Mon, Nov 02, 2009 at 11:08:09PM +0530, Kp, Jeeja wrote:
Sorry,it's evtest.c( this program polls /dev/input/eventX and prints the events). Basically when a Headphone is inserted into the jack, driver send snd_jack_report() with the status of present to ALSA. When the respective /dev/input/event5 is read from userspace, it must print the events. I don't see any events when snd_jack_report() is called.
Is there actually a state transition occurring? You will only see an event generated when the status of the jack changes so if the headphone is repeatedly reported as present but never reported as absent then you'll never see anything in user space.