Commit 1d4a8463 authored by Venkata Prasad Potturu's avatar Venkata Prasad Potturu Committed by Mark Brown

ASoC: SOF: amd: Add pci revision id check

Add pci revision id check for renoir and rembrandt platforms.
Signed-off-by: default avatarVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://lore.kernel.org/r/20230523072009.2379198-1-venkataprasad.potturu@amd.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 63def6c1
...@@ -55,6 +55,9 @@ ...@@ -55,6 +55,9 @@
#define ACP_DSP_TO_HOST_IRQ 0x04 #define ACP_DSP_TO_HOST_IRQ 0x04
#define ACP_RN_PCI_ID 0x01
#define ACP_RMB_PCI_ID 0x6F
#define HOST_BRIDGE_CZN 0x1630 #define HOST_BRIDGE_CZN 0x1630
#define HOST_BRIDGE_RMB 0x14B5 #define HOST_BRIDGE_RMB 0x14B5
#define ACP_SHA_STAT 0x8000 #define ACP_SHA_STAT 0x8000
......
...@@ -65,6 +65,9 @@ static int acp_pci_rmb_probe(struct pci_dev *pci, const struct pci_device_id *pc ...@@ -65,6 +65,9 @@ static int acp_pci_rmb_probe(struct pci_dev *pci, const struct pci_device_id *pc
{ {
unsigned int flag; unsigned int flag;
if (pci->revision != ACP_RMB_PCI_ID)
return -ENODEV;
flag = snd_amd_acp_find_config(pci); flag = snd_amd_acp_find_config(pci);
if (flag != FLAG_AMD_SOF && flag != FLAG_AMD_SOF_ONLY_DMIC) if (flag != FLAG_AMD_SOF && flag != FLAG_AMD_SOF_ONLY_DMIC)
return -ENODEV; return -ENODEV;
......
...@@ -65,6 +65,9 @@ static int acp_pci_rn_probe(struct pci_dev *pci, const struct pci_device_id *pci ...@@ -65,6 +65,9 @@ static int acp_pci_rn_probe(struct pci_dev *pci, const struct pci_device_id *pci
{ {
unsigned int flag; unsigned int flag;
if (pci->revision != ACP_RN_PCI_ID)
return -ENODEV;
flag = snd_amd_acp_find_config(pci); flag = snd_amd_acp_find_config(pci);
if (flag != FLAG_AMD_SOF && flag != FLAG_AMD_SOF_ONLY_DMIC) if (flag != FLAG_AMD_SOF && flag != FLAG_AMD_SOF_ONLY_DMIC)
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment