diff options
author | David Rau <David.Rau.opensource@dm.renesas.com> | 2023-05-23 18:18:21 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-05-23 19:49:36 +0200 |
commit | dc0ff0fa3a9bf9f7be3a9530f8f6079324f54fa5 (patch) | |
tree | f7f954f0f734ebfb8e1b5461b36a756303ffe22a /include | |
parent | ASoC: dt-bindings: da7219: Add jack-ins-det-pty property (diff) | |
download | linux-dc0ff0fa3a9bf9f7be3a9530f8f6079324f54fa5.tar.xz linux-dc0ff0fa3a9bf9f7be3a9530f8f6079324f54fa5.zip |
ASoC: da7219: Add Jack insertion detection polarity
Add support of selecting insertion detection polarity
- Default polarity (Low)
- Inverted polarity (High)
Correct the keywords of parsing `dlg,jack-det-rate`
bases on the new DT binding.
Signed-off-by: David Rau <David.Rau.opensource@dm.renesas.com>
Link: https://lore.kernel.org/r/20230523161821.4260-4-David.Rau.opensource@dm.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/da7219-aad.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/da7219-aad.h b/include/sound/da7219-aad.h index 24ee7baa2589..41320522daa2 100644 --- a/include/sound/da7219-aad.h +++ b/include/sound/da7219-aad.h @@ -44,6 +44,11 @@ enum da7219_aad_jack_ins_deb { DA7219_AAD_JACK_INS_DEB_1S, }; +enum da7219_aad_jack_ins_det_pty { + DA7219_AAD_JACK_INS_DET_PTY_LOW = 0, + DA7219_AAD_JACK_INS_DET_PTY_HIGH, +}; + enum da7219_aad_jack_det_rate { DA7219_AAD_JACK_DET_RATE_32_64MS = 0, DA7219_AAD_JACK_DET_RATE_64_128MS, @@ -80,6 +85,7 @@ struct da7219_aad_pdata { enum da7219_aad_btn_cfg btn_cfg; enum da7219_aad_mic_det_thr mic_det_thr; enum da7219_aad_jack_ins_deb jack_ins_deb; + enum da7219_aad_jack_ins_det_pty jack_ins_det_pty; enum da7219_aad_jack_det_rate jack_det_rate; enum da7219_aad_jack_rem_deb jack_rem_deb; |