summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/nau8825.h
diff options
context:
space:
mode:
authorJohn Hsu <supercraig0719@gmail.com>2017-06-22 11:57:55 +0800
committerMark Brown <broonie@kernel.org>2017-06-23 13:02:17 +0100
commit2bda4288e771e51946e70329c9b79605e4612f10 (patch)
treef537464046f983c96731a1a2378fd6d4e4ad4e5a /sound/soc/codecs/nau8825.h
parent8fe19795da1b9dea2353f016622842a2f163039e (diff)
downloadop-kernel-dev-2bda4288e771e51946e70329c9b79605e4612f10.zip
op-kernel-dev-2bda4288e771e51946e70329c9b79605e4612f10.tar.gz
ASoC: nau8825: make crosstalk function optional
Make crosstalk functoin optional. The jack detection can speed up without crosstalk detection. Let the decision of function usage to platform design. The patch helps the issue concern as follows: Google issue 35574278: Chell_headphone pop back from S3 There is a concern as follows: cras getting blocked for 2 seconds (worst-case 3 seconds) As I understand, ChromeOS expects resume finishes in 1 seconds. Video/Audio playing after 3 seconds of resume seems against the spec. If we really have to make the choice I would choose pop noise instead of waiting for 3 seconds. Signed-off-by: John Hsu <KCHSU0@nuvoton.com> Signed-off-by: John Hsu <supercraig0719@gmail.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 514fd13..8aee5c86 100644
--- a/sound/soc/codecs/nau8825.h
+++ b/sound/soc/codecs/nau8825.h
@@ -476,6 +476,7 @@ struct nau8825 {
int xtalk_event_mask;
bool xtalk_protect;
int imp_rms[NAU8825_XTALK_IMM];
+ int xtalk_bypass;
};
int nau8825_enable_jack_detect(struct snd_soc_codec *codec,
OpenPOWER on IntegriCloud