[alsa-devel] ALSA's jack reporting framework map to Android framework
broonie at opensource.wolfsonmicro.com
Sat Jun 12 19:05:52 CEST 2010
On Sat, Jun 12, 2010 at 09:28:34AM +0530, Harsha, Priya wrote:
Please fix your MUA to word wrap your messages, it makes them more
legible and easier to reply to.
> The ALSA's jack reporting framework reports jacks at
> /dev/input/eventx. But the Android framework expects the jack reporting
> to be done in /sys/.../switch/h2w.
That ... is simply 'class' - the Android kernel includes a new sysfs
class for switches, CCing in Mike Lockwood who wrote it in case he's got
any input from the Android side.
> Any suggestions as to how the ALSA's jack reporting framework to
> Android framework? Are there any audio drivers that have mapped this?
The obvious thing to do here seems to be to update the Android framework
to be able to use the standard kernel interfaces. I obviously can't
speak for Google but it seems like the sort of patch they'd be willing
to accept, especially if you retain the ability to use the non-standard
extensions that are currently being used.
I guess an alternative would be to have the Android kernels add an
adaptor in the input subsystem (for various reasons not all jack sense
goes through ALSA) so that input subsystem switches get represented via
the Android switch ABI, though that would increase the amount of out of
tree code that needs to be carried and so seems like the wrong direction
to be heading.
More information about the Alsa-devel