aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/soc/amd/renoir/rn-pci-acp3x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/amd/renoir/rn-pci-acp3x.c b/sound/soc/amd/renoir/rn-pci-acp3x.c
index d1faea545f45..165c93fd89e4 100644
--- a/sound/soc/amd/renoir/rn-pci-acp3x.c
+++ b/sound/soc/amd/renoir/rn-pci-acp3x.c
@@ -218,6 +218,7 @@ static int snd_rn_acp_probe(struct pci_dev *pci,
ret = -ENODEV;
goto de_init;
} else if (dmic_acpi_check == ACP_DMIC_AUTO) {
+#if defined(CONFIG_ACPI)
handle = ACPI_HANDLE(&pci->dev);
ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
if (ACPI_FAILURE(ret)) {
@@ -228,6 +229,7 @@ static int snd_rn_acp_probe(struct pci_dev *pci,
ret = -ENODEV;
goto de_init;
}
+#endif
}
adata->res = devm_kzalloc(&pci->dev,