On Wed, Jul 08, 2009 at 11:14:07AM +0530, Harsha, Priya wrote: > >-----Original Message----- > >From: Mark Brown [mailto:broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx] > >Yes, the jacks currently appear as input devices to applications. > >Takashi was also considering adding some ALSA-specific ways of reading > >the state to go alongside these. > If I create a jack sense device, how would an application use it? > Currently do we have any mechanism in ALSA to send events to user space > when a jack is detected? If not, would it be ok if I stick to netlink Yes, they see it as a normal input device under /dev/input. The jack input device will provide one or more switches and buttons depending on what it can detect. > events for now. We have a platform specific daemon that is being > developed that listens on netlink events and that is why the driver > sends them. Your daemon should be able to use /dev/input for this. This will also help if users run other applications on the system since the standard API for jack sense will be there. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel