aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/nau8825.h
diff options
context:
space:
mode:
authorJohn Hsu <KCHSU0@nuvoton.com>2017-11-24 18:08:26 +0800
committerMark Brown <broonie@kernel.org>2017-11-29 10:32:12 +0000
commit226d7449135ffc62866c06d73b28cac90b3f31e4 (patch)
treec562801418dd2e0bd869740daaf3b499dd78d5c0 /sound/soc/codecs/nau8825.h
parentLinux 4.15-rc1 (diff)
downloadlinux-dev-226d7449135ffc62866c06d73b28cac90b3f31e4.tar.xz
linux-dev-226d7449135ffc62866c06d73b28cac90b3f31e4.zip
ASoC: nau8825: disable crosstalk by default
The driver makes the crosstalk funciton disabled by default which can simplify the codec function. The platform may not need this funciton and reduce the potential risk. Therefore, We change the property "nuvoton,crosstalk-bypass" to "nuvoton,crosstalk-enable". The crosstalk measurement is enabled if the property is set. Otherwise, it is disabled. Besides, add more condition in the entry point of the crosstalk sequence to disable the function completely. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/nau8825.h b/sound/soc/codecs/nau8825.h
index 8aee5c8647ae..199d6ea4dcdc 100644
--- a/sound/soc/codecs/nau8825.h
+++ b/sound/soc/codecs/nau8825.h
@@ -476,7 +476,7 @@ struct nau8825 {
int xtalk_event_mask;
bool xtalk_protect;
int imp_rms[NAU8825_XTALK_IMM];
- int xtalk_bypass;
+ int xtalk_enable;
};
int nau8825_enable_jack_detect(struct snd_soc_codec *codec,