diff options
author | Zhu Ning <zhuning0077@gmail.com> | 2023-07-17 05:32:21 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-25 13:11:52 +0200 |
commit | ac20a73d765c0374f5e7b5d0f2f43c4598d69c66 (patch) | |
tree | 05176680d79b9e4dd17c573ce309fcaeb74d2a3e /sound/soc/codecs/es8326.h | |
parent | ASoC: codecs: ES8326: Change Volatile Reg function (diff) | |
download | linux-ac20a73d765c0374f5e7b5d0f2f43c4598d69c66.tar.xz linux-ac20a73d765c0374f5e7b5d0f2f43c4598d69c66.zip |
ASoC: codecs: ES8326: Fix power-up sequence
Old power-up sequence causes large pop noise during start-up.
Using a new sequence instead.
Also, the registers are now reset to default value in suspend
function.
Signed-off-by: Zhu Ning <zhuning0077@gmail.com>
Link: https://lore.kernel.org/r/20230717033223.42506-3-zhuning0077@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/es8326.h')
-rw-r--r-- | sound/soc/codecs/es8326.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sound/soc/codecs/es8326.h b/sound/soc/codecs/es8326.h index cd04d11a88d9..90a08351d6ac 100644 --- a/sound/soc/codecs/es8326.h +++ b/sound/soc/codecs/es8326.h @@ -160,6 +160,13 @@ #define ES8326_HP_TYPE_AUTO (1 << 0) #define ES8326_HP_TYPE_AUTO_INV (0 << 0) +/* ES8326_INT_SOURCE */ +#define ES8326_INT_SRC_DAC_MOZ (1 << 0) +#define ES8326_INT_SRC_ADC_MOZ (1 << 1) +#define ES8326_INT_SRC_BUTTON (1 << 2) +#define ES8326_INT_SRC_PIN9 (1 << 3) +#define ES8326_INT_SRC_PIN27 (1 << 4) + /* ES8326_SDINOUT1_IO */ #define ES8326_IO_INPUT (0 << 0) #define ES8326_IO_SDIN_SLOT0 (1 << 0) @@ -183,6 +190,7 @@ #define ES8326_HPBUTTON_FLAG (1 << 0) /* ES8326_CHIP_VERSION 0xFF */ -#define ES8326_VERSION_B (1 << 0) +#define ES8326_VERSION (1 << 0) +#define ES8326_VERSION_B (3 << 0) #endif |