projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
239556a
)
ASoC: amd: yc: add new YC platform varaint support
author
Vijendar Mukunda
<Vijendar.Mukunda@amd.com>
Mon, 11 Apr 2022 13:41:15 +0000
(19:11 +0530)
committer
Mark Brown
<broonie@kernel.org>
Mon, 11 Apr 2022 18:19:49 +0000
(19:19 +0100)
Update PCI revision id check for the new YC platform varaint.
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link:
https://lore.kernel.org/r/20220411134119.1767646-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/yc/pci-acp6x.c
patch
|
blob
|
history
diff --git
a/sound/soc/amd/yc/pci-acp6x.c
b/sound/soc/amd/yc/pci-acp6x.c
index 7e9a9a9d8ddd94fc9624b6a213fcb1e6acbd9296..20f7a99783f20ee8048de546c993e9335952e294 100644
(file)
--- a/
sound/soc/amd/yc/pci-acp6x.c
+++ b/
sound/soc/amd/yc/pci-acp6x.c
@@
-154,9
+154,14
@@
static int snd_acp6x_probe(struct pci_dev *pci,
irqflags = IRQF_SHARED;
/* Yellow Carp device check */
- if (pci->revision != 0x60)
+ switch (pci->revision) {
+ case 0x60:
+ case 0x6f:
+ break;
+ default:
+ dev_err(&pci->dev, "acp6x pci device not found\n");
return -ENODEV;
-
+ }
if (pci_enable_device(pci)) {
dev_err(&pci->dev, "pci_enable_device failed\n");
return -ENODEV;