diff options
author | David Lin <CTLIN0@nuvoton.com> | 2022-09-13 14:06:41 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-13 18:12:08 +0200 |
commit | ed8570726ab005da0aa62cc24046ef83fa342e89 (patch) | |
tree | c346e0ffcc2e9c6be29f66c23468fc48c0772c0b /sound/soc/codecs/nau8825.h | |
parent | ASoC: Intel: fix unused-variable warning in probe_codec (diff) | |
download | linux-ed8570726ab005da0aa62cc24046ef83fa342e89.tar.xz linux-ed8570726ab005da0aa62cc24046ef83fa342e89.zip |
ASoC: nau8825: Add ADCOUT IO drive strength control
Add a property to control the driving of ADCOUT.
Signed-off-by: David Lin <CTLIN0@nuvoton.com>
Link: https://lore.kernel.org/r/20220913120641.792502-1-CTLIN0@nuvoton.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/nau8825.h')
-rw-r--r-- | sound/soc/codecs/nau8825.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8825.h b/sound/soc/codecs/nau8825.h index 887bbff03ec6..6d112b6145df 100644 --- a/sound/soc/codecs/nau8825.h +++ b/sound/soc/codecs/nau8825.h @@ -418,6 +418,8 @@ #define NAU8825_POWERUP_HP_DRV_L (1 << 0) /* CHARGE_PUMP (0x80) */ +#define NAU8825_ADCOUT_DS_SFT 12 +#define NAU8825_ADCOUT_DS_MASK (1 << NAU8825_ADCOUT_DS_SFT) #define NAU8825_JAMNODCLOW (1 << 10) #define NAU8825_POWER_DOWN_DACR (1 << 9) #define NAU8825_POWER_DOWN_DACL (1 << 8) @@ -477,6 +479,7 @@ struct nau8825 { int imp_rms[NAU8825_XTALK_IMM]; int xtalk_enable; bool xtalk_baktab_initialized; /* True if initialized. */ + bool adcout_ds; }; int nau8825_enable_jack_detect(struct snd_soc_component *component, |