[alsa-devel] question on snd_jack_report
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.
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.
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.
participants (2)
-
Kp, Jeeja
-
Mark Brown