summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/da7219-aad.h
diff options
context:
space:
mode:
authorDavid Rau <we730128@gmail.com>2022-11-21 05:07:44 +0000
committerMark Brown <broonie@kernel.org>2022-12-01 11:22:13 +0000
commit969357ec94e670571d6593f2a93aba25e4577d4f (patch)
tree490d83391e2c65ed0ed2b9b24de2dae1983d6219 /sound/soc/codecs/da7219-aad.h
parentc1dd6bf6199752890d8c59d895dd45094da51d1f (diff)
downloadlinux-stable-969357ec94e670571d6593f2a93aba25e4577d4f.tar.gz
linux-stable-969357ec94e670571d6593f2a93aba25e4577d4f.tar.bz2
linux-stable-969357ec94e670571d6593f2a93aba25e4577d4f.zip
ASoC: da7219: Fix pole orientation detection on OMTP headsets when playing music
The OMTP pin define headsets can be mis-detected as line out instead of OMTP, causing obvious issues with audio quality. This patch is to put increased resistances within the device at a suitable point. To solve this issue better, the new mechanism setup ground switches with conditional delay control and these allow for more stabile detection process to operate as intended. This conditional delay control will not impact the hardware process but use extra system resource. This commit improves control of ground switches in the AAD logic. Signed-off-by: David Rau <david.rau.zg@renesas.com> Link: https://lore.kernel.org/r/20221121050744.2278-1-david.rau.zg@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219-aad.h')
-rw-r--r--sound/soc/codecs/da7219-aad.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7219-aad.h b/sound/soc/codecs/da7219-aad.h
index f48a12012ef3..21fdf53095cc 100644
--- a/sound/soc/codecs/da7219-aad.h
+++ b/sound/soc/codecs/da7219-aad.h
@@ -187,6 +187,7 @@ enum da7219_aad_event_regs {
struct da7219_aad_priv {
struct snd_soc_component *component;
int irq;
+ int gnd_switch_delay;
u8 micbias_pulse_lvl;
u32 micbias_pulse_time;