All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/3] ASoC: SOF: Intel: hda: Resume codec to do jack detection
@ 2021-01-04 14:08 ` Kai-Heng Feng
  0 siblings, 0 replies; 16+ messages in thread
From: Kai-Heng Feng @ 2021-01-04 14:08 UTC (permalink / raw)
  To: pierre-louis.bossart, lgirdwood, ranjani.sridharan, kai.vehmanen,
	daniel.baluta
  Cc: Kai-Heng Feng, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Guennadi Liakhovetski, Rander Wang, Payal Kshirsagar,
	moderated list:SOUND - SOUND OPEN FIRMWARE (SOF) DRIVERS,
	moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...,
	open list

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

This matches SOF driver's behavior with commit a6e7d0a4bdb0 ("ALSA: hda:
fix jack detection with Realtek codecs when in D3"). Since SOF only uses
Realtek codec, we don't need any additional check for the resume.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
---
v2:
 No change.

 sound/soc/sof/intel/hda-codec.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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) {}
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-01-07 10:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 14:08 [PATCH v2 1/3] ASoC: SOF: Intel: hda: Resume codec to do jack detection Kai-Heng Feng
2021-01-04 14:08 ` Kai-Heng Feng
2021-01-04 14:08 ` [PATCH v2 2/3] ASoC: SOF: Intel: hda: Modify existing helper to disable WAKEEN Kai-Heng Feng
2021-01-04 14:08   ` Kai-Heng Feng
2021-01-05 12:59   ` Kai Vehmanen
2021-01-05 12:59     ` Kai Vehmanen
2021-01-04 14:08 ` [PATCH v2 3/3] ASoC: SOF: Intel: hda: Avoid checking jack on system suspend Kai-Heng Feng
2021-01-04 14:08   ` Kai-Heng Feng
2021-01-05 12:25   ` Kai Vehmanen
2021-01-05 12:25     ` Kai Vehmanen
2021-01-07 10:32     ` Kai-Heng Feng
2021-01-07 10:32       ` Kai-Heng Feng
2021-01-05 12:57 ` [PATCH v2 1/3] ASoC: SOF: Intel: hda: Resume codec to do jack detection Kai Vehmanen
2021-01-05 12:57   ` Kai Vehmanen
2021-01-07  4:00   ` Kai-Heng Feng
2021-01-07  4:00     ` Kai-Heng Feng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.