]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ASoC: amd: support other audio modes for raven
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Fri, 23 Oct 2020 18:07:17 +0000 (23:37 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 18:37:06 +0000 (18:37 +0000)
ACP supports different audio configurations other than I2S.
This patch will fix acp driver probe failure for other audio
configurations.

Tested-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/1603476441-3506-1-git-send-email-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/raven/pci-acp3x.c

index 31b797c8bfe6444ab6d05ccde297e0642762580c..cd5b097a9402a8f9d43b43fa2ffa7baa134af2f7 100644 (file)
@@ -231,9 +231,7 @@ static int snd_acp3x_probe(struct pci_dev *pci,
                }
                break;
        default:
-               dev_err(&pci->dev, "Invalid ACP audio mode : %d\n", val);
-               ret = -ENODEV;
-               goto disable_msi;
+               dev_info(&pci->dev, "ACP audio mode : %d\n", val);
        }
        pm_runtime_set_autosuspend_delay(&pci->dev, 2000);
        pm_runtime_use_autosuspend(&pci->dev);