[alsa-devel] question on snd_jack_report

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Nov 2 19:01:21 CET 2009


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.


More information about the Alsa-devel mailing list