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

From: sravisar

Date: Mon Nov 30 2026 - 04:03:29 EST


From: Siva Subramanian Ravi Saravanan <sravisar@xxxxxxx>

The ACP7.x PM handlers need to distinguish S4 from S3, since the ASP
firmware carveout in DDR is lost across S4 but preserved across S3.

snd_sof_prepare() derives sdev->system_suspend_target from
acpi_target_system_state() only when use_acpi_target_states is set;
otherwise it defaults to SOF_SUSPEND_S3, and S4 is never detected.

Set use_acpi_target_states for ACP7.B and ACP7.F.

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 6aa16d1a12b95..e6edefff5ab9d 100644
--- a/sound/soc/sof/amd/pci-acp7x.c
+++ b/sound/soc/sof/amd/pci-acp7x.c
@@ -67,6 +67,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 = {
@@ -110,6 +111,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