[alsa-devel] [PATCH] ASoC: add TI ts3a227e headset chip driver

Dylan Reid dgreid at chromium.org
Wed Nov 12 23:31:41 CET 2014


On Wed, Nov 12, 2014 at 2:14 PM, Mark Brown <broonie at kernel.org> wrote:
> On Wed, Nov 12, 2014 at 01:50:23PM -0800, Dylan Reid wrote:
>
>> This chip also has built-in support for the new button standard
>> described in the Android "Wired audio headset specification" v1.0.
>> These buttons will be reported on a separate input device.
>
> We have a standard jack detection reporting interface in ASoC which can
> cope with buttons, please use it for them instead of creating a second
> device unless there's a strong reason.  There are enough slots for that
> and an interface for specifying the values for the keys.

thanks Mark, I missed snd_jack_set_key, that will be much better.

I'll rework the patch to use that and resend.


More information about the Alsa-devel mailing list