Skip to content

ASoC: Map BTN_0 for Android Headsets to KEY_PLAYPAUSE

Benson Leung lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ASoC: Intel: kbl_rt5663_rt5514_max98927: Map BTN_0 to KEY_PLAYPAUSEsound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c+1 -10 replies
2/5ASoC: Intel: kbl_rt5663_max98927: Map BTN_0 to KEY_PLAYPAUSEsound/soc/intel/boards/kbl_rt5663_max98927.c+1 -10 replies
3/5ASoC: ts3a227e: Map BTN_0 to KEY_PLAYPAUSEsound/soc/codecs/ts3a227e.c+1 -10 replies
4/5ASoC: rk3399_gru_sound: Map BTN_0 to KEY_PLAYPAUSEsound/soc/rockchip/rk3399_gru_sound.c+2 -10 replies
5/5ASoC: qcom: apq8016-sbc: Map BTN_0 to KEY_PLAYPAUSEsound/soc/qcom/apq8016_sbc.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] ASoC: Map BTN_0 for Android Headsets to KEY_PLAYPAUSE

The Android 3.5mm Headset jack specification mentions that BTN_0 should be mapped to KEY_MEDIA, but this is less logical than KEY_PLAYPAUSE, which has much broader userspace support.

For example, the Chrome OS userspace now supports KEY_PLAYPAUSE to toggle play/pause of videos and audio, but does not handle KEY_MEDIA.

Furthermore, Android itself now supports KEY_PLAYPAUSE equivalently, as the new USB headset spec requires KEY_PLAYPAUSE for BTN_0.
https://source.android.com/devices/accessories/headset/usb-headset-spec

[PATCH 1/5] ASoC: Intel: kbl_rt5663_rt5514_max98927: Map BTN_0 to [PATCH 2/5] ASoC: Intel: kbl_rt5663_max98927: Map BTN_0 to [PATCH 3/5] ASoC: ts3a227e: Map BTN_0 to KEY_PLAYPAUSE [PATCH 4/5] ASoC: rk3399_gru_sound: Map BTN_0 to KEY_PLAYPAUSE [PATCH 5/5] ASoC: qcom: apq8016-sbc: Map BTN_0 to KEY_PLAYPAUSE