summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/nau8825.h
diff options
context:
space:
mode:
authorJohn Hsu2016-03-22 04:57:20 +0100
committerMark Brown2016-05-30 17:17:44 +0200
commiteeef16acf85c2ebce695fb559627d0300396511e (patch)
tree4254f20a1f49f182bf045f4f8dfd5ce8b9caa0ca /sound/soc/codecs/nau8825.h
parentASoC: nau8825: reduce standby power consumption (diff)
downloadkernel-qcow2-linux-eeef16acf85c2ebce695fb559627d0300396511e.tar.gz
kernel-qcow2-linux-eeef16acf85c2ebce695fb559627d0300396511e.tar.xz
kernel-qcow2-linux-eeef16acf85c2ebce695fb559627d0300396511e.zip
ASoC: nau8825: change output power for interrupt
The interrupt clock is gated by x1[10:8], one of them needs to be enabled all the time for interrupts to happen. We change codec to enable ADC because it's helpful to reduce playback pop noise. Don't use force enable pin to enable ADC instead of ADC widget event. That won't interfere DAPM operation and let bias work normally. Signed-off-by: John Hsu <KCHSU0@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/nau8825.h b/sound/soc/codecs/nau8825.h
index 5fe009dcfb3d..4427df99de24 100644
--- a/sound/soc/codecs/nau8825.h
+++ b/sound/soc/codecs/nau8825.h
@@ -99,6 +99,7 @@
#define NAU8825_ENABLE_DACR (1 << NAU8825_ENABLE_DACR_SFT)
#define NAU8825_ENABLE_DACL_SFT 9
#define NAU8825_ENABLE_ADC_SFT 8
+#define NAU8825_ENABLE_ADC (1 << NAU8825_ENABLE_ADC_SFT)
#define NAU8825_ENABLE_SAR_SFT 1
/* CLK_DIVIDER (0x3) */