Skip to content

Commit 25490b4

Browse files
vijendarmukundagregkh
authored andcommitted
ASoC: amd: ps: use macro for ACP6.3 pci revision id
[ Upstream commit 4b36a47 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f8f4d77 commit 25490b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sound/soc/amd/ps/acp63.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define ACP_DEVICE_ID 0x15E2
1212
#define ACP63_REG_START 0x1240000
1313
#define ACP63_REG_END 0x125C000
14+
#define ACP63_PCI_REV 0x63
1415

1516
#define ACP_SOFT_RESET_SOFTRESET_AUDDONE_MASK 0x00010001
1617
#define ACP_PGFSM_CNTL_POWER_ON_MASK 1

sound/soc/amd/ps/pci-ps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ static int snd_acp63_probe(struct pci_dev *pci,
559559

560560
/* Pink Sardine device check */
561561
switch (pci->revision) {
562-
case 0x63:
562+
case ACP63_PCI_REV:
563563
break;
564564
default:
565565
dev_dbg(&pci->dev, "acp63 pci device not found\n");

0 commit comments

Comments
 (0)