diff options
author | Venkata Prasad Potturu <venkataprasad.potturu@amd.com> | 2023-12-06 14:06:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-12-06 22:10:01 +0300 |
commit | f18818eb0dbe0339c0efd02a34a3f5651749cb84 (patch) | |
tree | c266a1de5531cf124fd6d813585ef2e154df9926 /sound/soc/amd | |
parent | c3ab23a10771bbe06300e5374efa809789c65455 (diff) | |
download | linux-f18818eb0dbe0339c0efd02a34a3f5651749cb84.tar.xz |
ASoC: amd: vangogh: Add condition check for acp config flag
Add condition check for acp config flag to load legacy driver only.
Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://lore.kernel.org/r/20231206110620.1695591-2-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd')
-rw-r--r-- | sound/soc/amd/vangogh/pci-acp5x.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/amd/vangogh/pci-acp5x.c b/sound/soc/amd/vangogh/pci-acp5x.c index c4634a8a17cd..3826443d77b9 100644 --- a/sound/soc/amd/vangogh/pci-acp5x.c +++ b/sound/soc/amd/vangogh/pci-acp5x.c @@ -2,7 +2,7 @@ // // AMD Vangogh ACP PCI Driver // -// Copyright (C) 2021 Advanced Micro Devices, Inc. All rights reserved. +// Copyright (C) 2021, 2023 Advanced Micro Devices, Inc. All rights reserved. #include <linux/pci.h> #include <linux/module.h> @@ -13,6 +13,7 @@ #include <linux/pm_runtime.h> #include "acp5x.h" +#include "../mach-config.h" struct acp5x_dev_data { void __iomem *acp5x_base; @@ -131,7 +132,7 @@ static int snd_acp5x_probe(struct pci_dev *pci, /* Return if acp config flag is defined */ flag = snd_amd_acp_find_config(pci); - if (flag) + if (flag != FLAG_AMD_LEGACY) return -ENODEV; irqflags = IRQF_SHARED; |