Commit bcd7059a authored by Kai-Heng Feng's avatar Kai-Heng Feng Committed by Mark Brown

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 a6e7d0a4
("ALSA: hda: fix jack detection with Realtek codecs when in D3"), the
difference is SOF unconditionally resumes the codec.
Signed-off-by: default avatarKai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20210112181128.1229827-1-kai.heng.feng@canonical.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0d38fd8d
...@@ -93,8 +93,7 @@ void hda_codec_jack_check(struct snd_sof_dev *sdev) ...@@ -93,8 +93,7 @@ void hda_codec_jack_check(struct snd_sof_dev *sdev)
* has been recorded in STATESTS * has been recorded in STATESTS
*/ */
if (codec->jacktbl.used) if (codec->jacktbl.used)
schedule_delayed_work(&codec->jackpoll_work, pm_request_resume(&codec->core.dev);
codec->jackpoll_interval);
} }
#else #else
void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) {} void hda_codec_jack_wake_enable(struct snd_sof_dev *sdev) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment