]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soundwire: intel: Move suspend tracking from trigger to pm suspend
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 8 May 2026 10:17:55 +0000 (18:17 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 14 May 2026 15:09:42 +0000 (20:39 +0530)
commitacf676b9de0c86bc735a7f04962d3d688e156ffc
treefbd194e2ab5ea1f7c7abcfd154d26bc5c8b223d6
parent4e90368e8680d9ddcb06f82f2e63cbbcf21cef2c
soundwire: intel: Move suspend tracking from trigger to pm suspend

Mark all open DAI runtimes as suspended in the component .suspend
callback instead of relying on SNDRV_PCM_TRIGGER_SUSPEND, which is
not delivered during PAUSE or xrun states.

If during system suspend a dai is open it means that it is in either in
SUSPENDED, PAUSED or STOPPED  (due to xrun) state and they will need to be
re-initialized during resume (which is done in .prepare callback).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20260508101755.1247039-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel.c
drivers/soundwire/intel_ace2x.c