diff options
author | Venkata Prasad Potturu <venkataprasad.potturu@amd.com> | 2024-09-03 13:34:26 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-09-03 13:57:49 +0200 |
commit | 1150c18ba35376518b6ed9af3e96c671336fa5c7 (patch) | |
tree | 1846d07148907fafb6df75162f9b5323a269881c /sound/soc | |
parent | ASoC: amd: acp: Add pte configuration for ACP7.0 platform (diff) | |
download | linux-1150c18ba35376518b6ed9af3e96c671336fa5c7.tar.xz linux-1150c18ba35376518b6ed9af3e96c671336fa5c7.zip |
ASoC: amd: acp: Add i2s master clock generation support for acp7.1 platform
Add i2s master generation support for acp7.1 platform based on pci device
id.
Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://patch.msgid.link/20240903113427.182997-12-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/amd/acp/acp70.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sound/soc/amd/acp/acp70.c b/sound/soc/amd/acp/acp70.c index 3b3bd15964fc..1b0b59a22924 100644 --- a/sound/soc/amd/acp/acp70.c +++ b/sound/soc/amd/acp/acp70.c @@ -140,8 +140,17 @@ static struct snd_soc_dai_driver acp70_dai[] = { static int acp70_i2s_master_clock_generate(struct acp_dev_data *adata) { struct pci_dev *smn_dev; + u32 device_id; + + if (adata->platform == ACP70) + device_id = 0x1507; + else if (adata->platform == ACP71) + device_id = 0x1122; + else + return -ENODEV; + + smn_dev = pci_get_device(PCI_VENDOR_ID_AMD, device_id, NULL); - smn_dev = pci_get_device(PCI_VENDOR_ID_AMD, 0x1507, NULL); if (!smn_dev) return -ENODEV; |