Unverified Commit a3b0e804 authored by Venkata Prasad Potturu's avatar Venkata Prasad Potturu Committed by Mark Brown
Browse files

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: default avatarVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://patch.msgid.link/20250702094425.155185-2-venkataprasad.potturu@amd.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c1d10f4c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -372,6 +372,7 @@ static int acp_power_on(struct acp_chip_info *chip)
		break;
	case ACP70_PCI_ID:
	case ACP71_PCI_ID:
	case ACP72_PCI_ID:
		acp_pgfsm_stat_reg = ACP70_PGFSM_STATUS;
		acp_pgfsm_ctrl_reg = ACP70_PGFSM_CONTROL;
		break;
@@ -573,6 +574,7 @@ void check_acp_config(struct pci_dev *pci, struct acp_chip_info *chip)
		break;
	case ACP70_PCI_ID:
	case ACP71_PCI_ID:
	case ACP72_PCI_ID:
		pdm_addr = ACP70_PDM_ADDR;
		check_acp70_config(chip);
		break;
+1 −0
Original line number Diff line number Diff line
@@ -153,6 +153,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id
		break;
	case 0x70:
	case 0x71:
	case 0x72:
		chip->name = "acp_asoc_acp70";
		chip->rsrc = &acp70_rsrc;
		chip->acp_hw_ops_init = acp70_hw_ops_init;
+2 −0
Original line number Diff line number Diff line
@@ -140,6 +140,7 @@ void config_acp_dma(struct acp_chip_info *chip, struct acp_stream *stream, int s
	switch (chip->acp_rev) {
	case ACP70_PCI_ID:
	case ACP71_PCI_ID:
	case ACP72_PCI_ID:
		switch (stream->dai_id) {
		case I2S_SP_INSTANCE:
			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
	case ACP63_PCI_ID:
	case ACP70_PCI_ID:
	case ACP71_PCI_ID:
	case ACP72_PCI_ID:
		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
			runtime->hw = acp6x_pcm_hardware_playback;
		else
+1 −0
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@ static int acp_acp70_audio_probe(struct platform_device *pdev)
	switch (chip->acp_rev) {
	case ACP70_PCI_ID:
	case ACP71_PCI_ID:
	case ACP72_PCI_ID:
		break;
	default:
		dev_err(&pdev->dev, "Un-supported ACP Revision %d\n", chip->acp_rev);
+1 −0
Original line number Diff line number Diff line
@@ -15,5 +15,6 @@
#define ACP63_PCI_ID		0x63
#define ACP70_PCI_ID		0x70
#define ACP71_PCI_ID		0x71
#define ACP72_PCI_ID		0x72

#endif