mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
ASoC: amd: add ACPI dependency check
Add ACPI dependency for evaluating DMIC hardware runtime. Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://lore.kernel.org/r/1594118813-18689-1-git-send-email-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2cb7802b50
commit
68d1abe186
@ -218,6 +218,7 @@ static int snd_rn_acp_probe(struct pci_dev *pci,
|
|||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
goto de_init;
|
goto de_init;
|
||||||
} else if (dmic_acpi_check == ACP_DMIC_AUTO) {
|
} else if (dmic_acpi_check == ACP_DMIC_AUTO) {
|
||||||
|
#if defined(CONFIG_ACPI)
|
||||||
handle = ACPI_HANDLE(&pci->dev);
|
handle = ACPI_HANDLE(&pci->dev);
|
||||||
ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
|
ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
|
||||||
if (ACPI_FAILURE(ret)) {
|
if (ACPI_FAILURE(ret)) {
|
||||||
@ -228,6 +229,7 @@ static int snd_rn_acp_probe(struct pci_dev *pci,
|
|||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
goto de_init;
|
goto de_init;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
adata->res = devm_kzalloc(&pci->dev,
|
adata->res = devm_kzalloc(&pci->dev,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user