diff options
author | Kai-Heng Feng <kai.heng.feng@canonical.com> | 2021-01-13 02:11:23 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-07 15:37:14 +0100 |
commit | 1fe0ce2f9afda114675079125922850095792ee3 (patch) | |
tree | 5850475ca5eab6eb65c8155afc6bb2bb90205ef1 /sound/soc/sof/intel/hda-codec.c | |
parent | 946d15aa09d3c6b3414f54ada1879217aca03088 (diff) | |
download | kernel_replicant_linux-1fe0ce2f9afda114675079125922850095792ee3.tar.gz kernel_replicant_linux-1fe0ce2f9afda114675079125922850095792ee3.tar.bz2 kernel_replicant_linux-1fe0ce2f9afda114675079125922850095792ee3.zip |
ASoC: SOF: Intel: hda: Resume codec to do jack detection
[ Upstream commit bcd7059abc19e6ec5b2260dff6a008fb99c4eef9 ]
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 a6e7d0a4bdb0
("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel/hda-codec.c')
-rw-r--r-- | sound/soc/sof/intel/hda-codec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c index 8b0ddc4b8227..8d65004c917a 100644 --- a/sound/soc/sof/intel/hda-codec.c +++ b/sound/soc/sof/intel/hda-codec.c @@ -93,8 +93,7 @@ void hda_codec_jack_check(struct snd_sof_dev *sdev) * has been recorded in STATESTS */ if (codec->jacktbl.used) - schedule_delayed_work(&codec->jackpoll_work, - codec->jackpoll_interval); + pm_request_resume(&codec->core.dev); } #else void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) {} |