[alsa-devel] [PATCH] [RFC 8/13] Intel SST sound card driver

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Jul 17 12:18:04 CEST 2009


On Fri, Jul 17, 2009 at 12:31:25PM +0530, Harsha, Priya wrote:

> I was looking into creating jack sense device. I see that I can create
> jack sense for headphones/headset/mic etc,. but if I want to send events
> like long press and short press of headset keys, can I use this same
> framework in someway? Is there any way to event these kinds of actions
> to user space through ALSA?

The intention was that buttons would be reported as normal buttons,
probably BTN_MISC.  Nobody has merged a driver with short detection yet
so it's not been added to the jack API yet but that's a fairly trivial
mapping.

Within the input API buttons just have pressed and released states so as
unless there's something I'm not aware of you'll need to manually create
different press lengths with a timer.


More information about the Alsa-devel mailing list