]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SOF: Intel: only detect codecs when HDA DSP probe
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 29 Aug 2025 08:29:08 +0000 (11:29 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 29 Aug 2025 08:50:37 +0000 (10:50 +0200)
commit5c39bc498f5ff7ef016abf3f16698f3e8db79677
treedc6ddf7a02a87b152572ad91e715d2bf8f26b838
parent6158a321c051095024e8306c8996b79e5f7f79b6
ASoC: SOF: Intel: only detect codecs when HDA DSP probe

SDW codecs use the global HDaudio WAKEEN/STS to detect wakes since LNL.
But the wake event is handled in the SDW driver. We should only clear
WAKESTS for the HDA and IDISP codecs that was detected when HDA DSP
probe. The SoundWire codec will be included in the codec_mask if we read
the STATESTS register when a SoundWire codec wake event happens.
The commit avoid updating bus->codec_mask in resume to not clear WAKESTS
of SoundWire codecs.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Message-ID: <20250829082908.2693-3-peter.ujfalusi@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-ctrl.c
sound/soc/sof/intel/hda-dsp.c
sound/soc/sof/intel/hda.c
sound/soc/sof/intel/hda.h