ASoC: nau8821: Add headset button detection
authorSeven Lee <wtli@nuvoton.com>
Mon, 27 Jun 2022 03:29:59 +0000 (11:29 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 11 Jul 2022 16:18:45 +0000 (17:18 +0100)
commit2551b6e89936f98406bce9c1d50110e3ff443f81
treefdc1166bfbb253871367c93c459fc9fc03a379de
parent8e26c518d300b356078f229e50e3f192005befca
ASoC: nau8821: Add headset button detection

This patch adds the function of headphone button detection,
Button detection will be enabled if the device tree
has a key_enable property.

Signed-off-by: Seven Lee <wtli@nuvoton.com>
Link: https://lore.kernel.org/r/20220627032959.3442064-1-wtli@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/nau8821.txt
sound/soc/codecs/nau8821.c
sound/soc/codecs/nau8821.h