On 07/24/2013 02:13 AM, Mark Brown wrote:
On Tue, Jul 23, 2013 at 05:10:29PM -0700, Felipe Tonello wrote:
On Tue, Jul 23, 2013 at 5:40 AM, Mark Brown broonie@kernel.org wrote:
This was the existing kernel API at the time that the code was added - I beleive people had been doing that for simple switches that detect the physical presence of a jack since it looks exactly like a button from a hardware point of view. See the original commit adding the code.
I saw it. I don't know what you think is the best way to go. I'm not sure if someone is using this input event API, since even PulseAudio even declined that implementation due KControl implementation.
It's used quite a bit in embedded systems, there are actually patches for PulseAudio which were deployed for a while- I guess they might have been removed or something.
The input event implementation was only in Ubuntu (for a release or two), and was never merged in upstream PA. (I guess one could find them by looking in the Ubuntu archives.)