]> Git Repo - linux.git/commitdiff
ASoC: amd: vangogh: Add condition check for acp config flag
authorVenkata Prasad Potturu <[email protected]>
Wed, 6 Dec 2023 11:06:13 +0000 (16:36 +0530)
committerMark Brown <[email protected]>
Wed, 6 Dec 2023 19:10:01 +0000 (19:10 +0000)
Add condition check for acp config flag to load legacy driver only.

Signed-off-by: Venkata Prasad Potturu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/amd/vangogh/pci-acp5x.c

index c4634a8a17cdc321573b38db13a04500f20f34bb..3826443d77b97c27ccc188ae052deebd8cd924f3 100644 (file)
@@ -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;
This page took 0.059839 seconds and 4 git commands to generate.