ASoC: amd: vangogh: Add check for acp config flags in vangogh platform
authorVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Tue, 30 May 2023 11:07:58 +0000 (16:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2023 15:52:20 +0000 (17:52 +0200)
commita7d4d28d2c0bd7e2bc5fe9075f70ab83b777b31d
treee437e762c68eeae6176be612424935dfe1557a84
parent633ac567bd9ee2a3e6262a2f517f646eecef9b97
ASoC: amd: vangogh: Add check for acp config flags in vangogh platform

[ Upstream commit e89f45edb747ed88e97a5771dd6d3dd1eb517873 ]

We have SOF and generic ACP support enabled for Vangogh platform
on some machines. Since we have same PCI id used for probing,
add check for machine configuration flag to avoid conflict with
newer pci drivers. Such machine flag has been initialized via
dmi match on few Vangogh based machines. If no flag is
specified probe and register older platform device.

Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://lore.kernel.org/r/20230530110802.674939-1-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/amd/vangogh/acp5x.h
sound/soc/amd/vangogh/pci-acp5x.c