diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2019-05-14 18:44:45 +0300 |
---|---|---|
committer | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2019-05-16 10:33:55 +0300 |
commit | d4b607077abbd7aba8fc680eab3eda5b0a0ed19a (patch) | |
tree | 6c280595bd117d66d58225e817c0cb0ecdefb653 /sound/soc/codecs/sgtl5000.h | |
parent | aebc126e35025886ac20012f6602c870660a5a07 (diff) |
ASoC: sgtl5000: Heavy anti-pop work
Add handlers for HP/DAC/ADC power on/off event.
Mute outputs on power on/off of any chip block to
avoid pops.
Improve logic for VAG to power on/off to avoid muxing pops.
Fix DAPM widgets' definitions to use new handlers.
Related to: #48500
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'sound/soc/codecs/sgtl5000.h')
-rw-r--r-- | sound/soc/codecs/sgtl5000.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/sgtl5000.h b/sound/soc/codecs/sgtl5000.h index 2ff43adcaec0..b3acbae2e75e 100644 --- a/sound/soc/codecs/sgtl5000.h +++ b/sound/soc/codecs/sgtl5000.h @@ -339,10 +339,14 @@ #define SGTL5000_ADC_STEREO 0x0040 #define SGTL5000_REFTOP_POWERUP 0x0020 #define SGTL5000_HP_POWERUP 0x0010 +#define SGTL5000_HP_POWERUP_SHIFT 4 #define SGTL5000_DAC_POWERUP 0x0008 +#define SGTL5000_DAC_POWERUP_SHIFT 3 #define SGTL5000_CAPLESS_HP_POWERUP 0x0004 #define SGTL5000_ADC_POWERUP 0x0002 +#define SGTL5000_ADC_POWERUP_SHIFT 1 #define SGTL5000_LINE_OUT_POWERUP 0x0001 +#define SGTL5000_LINE_OUT_POWERUP_SHIFT 0 /* * SGTL5000_CHIP_PLL_CTRL |