On Fri, Apr 06, 2018 at 08:28:35AM +0100, David Woodhouse wrote: > On Fri, 2018-04-06 at 06:45 +0530, Naveen M wrote: > > Thanks for the review and update. Shall correct this in V2. > > Also there are other machines which still use KEY_MEDIA - > > kbl_da7219_max98357a.c, cht_bsw_nau8824.c > > Shall correct these too. > kbl_da7219_max98357a and rk3399_gru_sound also seem to have > KEY_VOICECOMMAND on BTN_3 and volume up/down on 1/2; is that correct? > Until I spotted that, I was going to suggest a generic helper to set > all four, since they should *all* be setting the four events to > KEY_PLAYPAUSE, KEY_VOICECOMMAND, KEY_VOLUMEUP, KEY_VOLUMEDOWN > respectively. Headsets are very system specific, it's going to depend on both how the manufacturer headset is labelled and how the hardware interprets the buttons on it. There's a diversity of standards for both unfortunately and no way to identify what's plugged in usefully.
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel