diff options
author | Seven Lee <wtli@nuvoton.com> | 2022-06-27 05:29:59 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-07-11 18:18:45 +0200 |
commit | 2551b6e89936f98406bce9c1d50110e3ff443f81 (patch) | |
tree | fdc1166bfbb253871367c93c459fc9fc03a379de /sound/soc/codecs/nau8821.h | |
parent | ASoC: codecs: Series of fixes for realtek codecs used on RVPs (diff) | |
download | linux-2551b6e89936f98406bce9c1d50110e3ff443f81.tar.xz linux-2551b6e89936f98406bce9c1d50110e3ff443f81.zip |
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.h | 1 |
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, |