Skip to content

Commit a3b0e80

Browse files
Venkata-Prasad-Potturubroonie
authored andcommitted
ASoC: amd: acp: Add legacy driver support acp7.2 based platforms
Add pci revision id 0x72 in pci and platform driver to support acp7.2 based platforms. Signed-off-by: Venkata Prasad Potturu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c1d10f4 commit a3b0e80

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

sound/soc/amd/acp/acp-legacy-common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ static int acp_power_on(struct acp_chip_info *chip)
372372
break;
373373
case ACP70_PCI_ID:
374374
case ACP71_PCI_ID:
375+
case ACP72_PCI_ID:
375376
acp_pgfsm_stat_reg = ACP70_PGFSM_STATUS;
376377
acp_pgfsm_ctrl_reg = ACP70_PGFSM_CONTROL;
377378
break;
@@ -573,6 +574,7 @@ void check_acp_config(struct pci_dev *pci, struct acp_chip_info *chip)
573574
break;
574575
case ACP70_PCI_ID:
575576
case ACP71_PCI_ID:
577+
case ACP72_PCI_ID:
576578
pdm_addr = ACP70_PDM_ADDR;
577579
check_acp70_config(chip);
578580
break;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
153153
break;
154154
case 0x70:
155155
case 0x71:
156+
case 0x72:
156157
chip->name = "acp_asoc_acp70";
157158
chip->rsrc = &acp70_rsrc;
158159
chip->acp_hw_ops_init = acp70_hw_ops_init;

sound/soc/amd/acp/acp-platform.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ void config_acp_dma(struct acp_chip_info *chip, struct acp_stream *stream, int s
140140
switch (chip->acp_rev) {
141141
case ACP70_PCI_ID:
142142
case ACP71_PCI_ID:
143+
case ACP72_PCI_ID:
143144
switch (stream->dai_id) {
144145
case I2S_SP_INSTANCE:
145146
if (stream->dir == SNDRV_PCM_STREAM_PLAYBACK)
@@ -205,6 +206,7 @@ static int acp_dma_open(struct snd_soc_component *component, struct snd_pcm_subs
205206
case ACP63_PCI_ID:
206207
case ACP70_PCI_ID:
207208
case ACP71_PCI_ID:
209+
case ACP72_PCI_ID:
208210
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
209211
runtime->hw = acp6x_pcm_hardware_playback;
210212
else

sound/soc/amd/acp/acp70.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ static int acp_acp70_audio_probe(struct platform_device *pdev)
136136
switch (chip->acp_rev) {
137137
case ACP70_PCI_ID:
138138
case ACP71_PCI_ID:
139+
case ACP72_PCI_ID:
139140
break;
140141
default:
141142
dev_err(&pdev->dev, "Un-supported ACP Revision %d\n", chip->acp_rev);

sound/soc/amd/acp/acp_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
#define ACP63_PCI_ID 0x63
1616
#define ACP70_PCI_ID 0x70
1717
#define ACP71_PCI_ID 0x71
18+
#define ACP72_PCI_ID 0x72
1819

1920
#endif

0 commit comments

Comments
 (0)