[PATCH 1/2] ASoC: SOF: amd: acp7x: enable ACPI target power states

From: sravisar

Date: Wed Nov 25 2026 - 00:39:14 EST


From: Siva Subramanian Ravi Saravanan <sravisar@xxxxxxx>

The ACP7.x suspend and resume handlers need to tell S4 (hibernate)
apart from S3, because the ASP firmware carveout in DDR loses its
contents across S4 but not across S3. They rely on
sdev->system_suspend_target for this, but snd_sof_prepare() only
derives it from acpi_target_system_state() when the device descriptor
sets use_acpi_target_states. Otherwise system_suspend_target stays at
its SOF_SUSPEND_S3 default and the S4 path is never taken.

Set use_acpi_target_states in the ACP7.B and ACP7.F descriptors so that
system_suspend_target reflects the actual target state (S0ix, S3, S4 or
S5).

Signed-off-by: Siva Subramanian Ravi Saravanan <sravisar@xxxxxxx>
---
sound/soc/sof/amd/pci-acp7x.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/sound/soc/sof/amd/pci-acp7x.c b/sound/soc/sof/amd/pci-acp7x.c
index 5a21ab8ebb4b9..b27798f2007bc 100644
--- a/sound/soc/sof/amd/pci-acp7x.c
+++ b/sound/soc/sof/amd/pci-acp7x.c
@@ -66,6 +66,7 @@ static const struct sof_dev_desc acp7b_desc = {
.nocodec_tplg_filename = "sof-acp.tplg",
.ops = &sof_acp7x_ops,
.ops_init = sof_acp7x_ops_init,
+ .use_acpi_target_states = true,
};

static const struct sof_amd_acp_desc acp7f_chip_info = {
@@ -108,6 +109,7 @@ static const struct sof_dev_desc acp7f_desc = {
.nocodec_tplg_filename = "sof-acp.tplg",
.ops = &sof_acp7x_ops,
.ops_init = sof_acp7x_ops_init,
+ .use_acpi_target_states = true,
};

static const struct pci_device_id acp7b_pci_id = {
--
2.43.0