summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/nau8821.h
diff options
context:
space:
mode:
authorSeven Lee <wtli@nuvoton.com>2022-06-27 06:29:59 +0300
committerMark Brown <broonie@kernel.org>2022-07-11 19:18:45 +0300
commit2551b6e89936f98406bce9c1d50110e3ff443f81 (patch)
treefdc1166bfbb253871367c93c459fc9fc03a379de /sound/soc/codecs/nau8821.h
parent8e26c518d300b356078f229e50e3f192005befca (diff)
downloadlinux-2551b6e89936f98406bce9c1d50110e3ff443f81.tar.xz
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>
Diffstat (limited to 'sound/soc/codecs/nau8821.h')
-rw-r--r--sound/soc/codecs/nau8821.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8821.h b/sound/soc/codecs/nau8821.h
index a92edfeb9d3a..c44251f54d48 100644
--- a/sound/soc/codecs/nau8821.h
+++ b/sound/soc/codecs/nau8821.h
@@ -525,6 +525,7 @@ struct nau8821 {
int jack_eject_debounce;
int fs;
int dmic_clk_threshold;
+ int key_enable;
};
int nau8821_enable_jack_detect(struct snd_soc_component *component,