ASoC: amd: ps: use macro for ACP6.3 pci revision id
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Fri, 7 Feb 2025 06:27:56 +0000 (11:57 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 7 Feb 2025 13:33:39 +0000 (13:33 +0000)
Use macro for ACP6.3 PCI revision id instead of hard coded value.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://patch.msgid.link/20250207062819.1527184-3-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/ps/acp63.h
sound/soc/amd/ps/pci-ps.c

index 01910273624bd34da27479035a50e1d3842c6e36..8f3a597f658b84ea762aa5f14e30117e2f0cb0ea 100644 (file)
@@ -11,6 +11,7 @@
 #define ACP_DEVICE_ID 0x15E2
 #define ACP63_REG_START                0x1240000
 #define ACP63_REG_END          0x125C000
+#define ACP63_PCI_REV          0x63
 
 #define ACP_SOFT_RESET_SOFTRESET_AUDDONE_MASK  0x00010001
 #define ACP63_PGFSM_CNTL_POWER_ON_MASK 1
index f5beb7f149130f50cf4ef4621ace812c0501fbf3..9cc66a807ad963a5a8f118e919693e63161f4fc7 100644 (file)
@@ -562,7 +562,7 @@ static int snd_acp63_probe(struct pci_dev *pci,
 
        /* Pink Sardine device check */
        switch (pci->revision) {
-       case 0x63:
+       case ACP63_PCI_REV:
                break;
        default:
                dev_dbg(&pci->dev, "acp63 pci device not found\n");