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

Harsha, Priya priya.harsha at intel.com
Fri Jul 17 09:01:25 CEST 2009

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?


>-----Original Message-----
>From: Mark Brown [mailto:broonie at opensource.wolfsonmicro.com]
>Sent: Wednesday, July 08, 2009 3:16 PM
>To: Harsha, Priya
>Cc: Koul, Vinod; alsa-devel at alsa-project.org
>Subject: Re: [alsa-devel] [PATCH] [RFC 8/13] Intel SST sound card driver
>On Wed, Jul 08, 2009 at 11:14:07AM +0530, Harsha, Priya wrote:
>> >-----Original Message-----
>> >From: Mark Brown [mailto:broonie at opensource.wolfsonmicro.com]
>> >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.

More information about the Alsa-devel mailing list