diff options
author | Zhu Ning <zhuning0077@gmail.com> | 2022-10-28 05:04:56 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-11-07 16:58:03 +0300 |
commit | 89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68 (patch) | |
tree | d10de68ee933cf0e8b5c499503c862063dbf684c /include/linux/purgatory.h | |
parent | 3d59eaef49ca2db581156a7b77c9afc0546eefc0 (diff) | |
download | linux-89cdb224f2abe37ec4ac21ba0d9ddeb5a6a9cf68.tar.xz |
ASoC: sof_es8336: reduce pop noise on speaker
The Speaker GPIO needs to be turned on slightly behind the codec turned on.
It also need to be turned off slightly before the codec turned down.
Current code uses delay in DAPM_EVENT to do it but the mdelay delays the
DAPM itself and thus has no effect. A delayed_work is added to turn on the
speaker.
The Speaker is turned off in .trigger since trigger is called slightly
before the DAPM events.
Signed-off-by: Zhu Ning <zhuning@everest-semi.com>
------------
v1: cancel delayed work while disabling speaker.
Link: https://lore.kernel.org/r/20221028020456.90286-1-zhuning0077@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/purgatory.h')
0 files changed, 0 insertions, 0 deletions