diff options
author | David Rau <we730128@gmail.com> | 2022-11-21 05:07:44 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-01 11:22:13 +0000 |
commit | 969357ec94e670571d6593f2a93aba25e4577d4f (patch) | |
tree | 490d83391e2c65ed0ed2b9b24de2dae1983d6219 /sound/soc/codecs/da7219-aad.h | |
parent | c1dd6bf6199752890d8c59d895dd45094da51d1f (diff) | |
download | linux-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.h | 1 |
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; |