Message ID | 20210112181128.1229827-1-kai.heng.feng@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bcd7059abc19e6ec5b2260dff6a008fb99c4eef9 |
Headers | show |
Series | [v4,1/3] ASoC: SOF: Intel: hda: Resume codec to do jack detection | expand |
On Wed, 13 Jan 2021 02:11:23 +0800, Kai-Heng Feng wrote: > 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. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/3] ASoC: SOF: Intel: hda: Resume codec to do jack detection commit: bcd7059abc19e6ec5b2260dff6a008fb99c4eef9 [2/3] ASoC: SOF: Intel: hda: Modify existing helper to disable WAKEEN commit: 31ba0c0776027896553bd8477baff7c8b5d95699 [3/3] ASoC: SOF: Intel: hda: Avoid checking jack on system suspend commit: ef4d764c99f792b725d4754a3628830f094f5c58 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c index 6875fa570c2c..df59c79cfdfc 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) {}
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> --- v4: No change. v3: Remove wrong assumption that only Realtek codec is used by SOF. v2: No change. sound/soc/sof/intel/hda-codec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)