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>
This commit is contained in:
Seven Lee 2022-06-27 11:29:59 +08:00 • committed by Mark Brown
commit 2551b6e899
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
3 changed files with 37 additions and 1 deletions