Re: [PATCH] [RFC 8/13] Intel SST sound card driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
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?

Thanks,
Harsha


>-----Original Message-----
>From: Mark Brown [mailto:broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx]
>Sent: Wednesday, July 08, 2009 3:16 PM
>To: Harsha, Priya
>Cc: Koul, Vinod; alsa-devel@xxxxxxxxxxxxxxxx
>Subject: Re:  [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@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

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux