mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-21 06:50:25 +00:00
ASoC: amd: yc: add new YC platform varaint support
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>
This commit is contained in:
parent
239556a343
commit
b1630fcbfd
1 changed files with 7 additions and 2 deletions
|
@ -154,9 +154,14 @@ static int snd_acp6x_probe(struct pci_dev *pci,
|
||||||
|
|
||||||
irqflags = IRQF_SHARED;
|
irqflags = IRQF_SHARED;
|
||||||
/* Yellow Carp device check */
|
/* 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;
|
return -ENODEV;
|
||||||
|
}
|
||||||
if (pci_enable_device(pci)) {
|
if (pci_enable_device(pci)) {
|
||||||
dev_err(&pci->dev, "pci_enable_device failed\n");
|
dev_err(&pci->dev, "pci_enable_device failed\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
Loading…
Add table
Reference in a new issue