[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210104140853.228448-1-kai.heng.feng@canonical.com>
Date: Mon, 4 Jan 2021 22:08:50 +0800
From: Kai-Heng Feng <kai.heng.feng@...onical.com>
To: pierre-louis.bossart@...ux.intel.com, lgirdwood@...il.com,
ranjani.sridharan@...ux.intel.com, kai.vehmanen@...ux.intel.com,
daniel.baluta@....com
Cc: Kai-Heng Feng <kai.heng.feng@...onical.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Guennadi Liakhovetski <guennadi.liakhovetski@...ux.intel.com>,
Rander Wang <rander.wang@...el.com>,
Payal Kshirsagar <payalskshirsagar1234@...il.com>,
sound-open-firmware@...a-project.org (moderated list:SOUND - SOUND OPEN
FIRMWARE (SOF) DRIVERS),
alsa-devel@...a-project.org (moderated list:SOUND - SOC LAYER / DYNAMIC
AUDIO POWER MANAGEM...), linux-kernel@...r.kernel.org (open list)
Subject: [PATCH v2 1/3] 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 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@...onical.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
Powered by blists - more mailing lists