]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: hda: Resume codec to do jack detection
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 12 Jan 2021 18:11:23 +0000 (02:11 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 13 Jan 2021 15:24:05 +0000 (15:24 +0000)
commit1501ff71f2f74b08f2507f6505cf126d00371bab
treef7f61fb87f33d6f216b028fc3f16cd39e6f74813
parentfc57ebf4e4d3ab2ce5128006a3c905479c0d9260
ASoC: SOF: Intel: hda: Resume codec to do jack detection

Instead of queueing jackpoll_work, runtime resume the codec to let it
use different jack detection methods based on jackpoll_interval.

This partially matches SOF driver's behavior with commit 7e5bbcf68199
("ALSA: hda: fix jack detection with Realtek codecs when in D3"), the
difference is SOF unconditionally resumes the codec.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20210112181128.1229827-1-kai.heng.feng@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-codec.c