Skip to contentSkip to conversation

ASoC: amd: acp: add Kconfig options for acp7.0 based platform driver

PATCH In review Syed Saba Kareem 6 participants 9 messages Nov 13, 2023 – Dec 18, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 ASoC: amd: acp: add Kconfig options for acp7.0 based platform driver

ACP7.0 based platform legacy drivers can be built by selecting necessary kernel config option. This patch enables build support of the same.

---
changes since v1:
- added missing commit message.

 sound/soc/amd/acp/Kconfig  | 12 ++++++++++++
 sound/soc/amd/acp/Makefile |  2 ++
 2 files changed, 14 insertions(+)
sound/soc/amd/acp/Kconfig +12 -0
index 5fb322212938..c8ac0027f741 100644
@@ -73,6 +73,18 @@ config SND_AMD_ASOC_ACP63
 	  Say Y if you want to enable AUDIO on ACP6.3
 	  If unsure select "N".
 
+config SND_AMD_ASOC_ACP70
+	tristate "AMD ACP ASOC Acp7.0 Support"
+	depends on X86 && PCI
+	depends on ACPI
+	select SND_SOC_AMD_ACP_PCM
+	select SND_SOC_AMD_ACP_I2S
+	select SND_SOC_AMD_ACP_PDM
+	help
+	This option enables Acp7.0 PDM support on AMD platform.
+	Say Y if you want to enable AUDIO on ACP7.0
+          If unsure select "N".
+
 config SND_SOC_AMD_MACH_COMMON
 	tristate
 	depends on X86 && PCI && I2C
sound/soc/amd/acp/Makefile +2 -0
index dd85700f1c5f..ff5f7893b81e 100644
@@ -15,6 +15,7 @@ snd-acp-pci-objs     := acp-pci.o
 snd-acp-renoir-objs     := acp-renoir.o
 snd-acp-rembrandt-objs  := acp-rembrandt.o
 snd-acp63-objs := acp63.o
+snd-acp70-objs := acp70.o
 
 #machine specific driver
 snd-acp-mach-objs     := acp-mach-common.o
@@ -30,6 +31,7 @@ obj-$(CONFIG_SND_SOC_AMD_ACP_PCI) += snd-acp-pci.o
 obj-$(CONFIG_SND_AMD_ASOC_RENOIR) += snd-acp-renoir.o
 obj-$(CONFIG_SND_AMD_ASOC_REMBRANDT) += snd-acp-rembrandt.o
 obj-$(CONFIG_SND_AMD_ASOC_ACP63) += snd-acp63.o
+obj-$(CONFIG_SND_AMD_ASOC_ACP70) += snd-acp70.o
 
 obj-$(CONFIG_SND_SOC_AMD_MACH_COMMON) += snd-acp-mach.o
 obj-$(CONFIG_SND_SOC_AMD_LEGACY_MACH) += snd-acp-legacy-mach.o
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 2/2 ASoC: amd: acp: add pm ops support for renoir platform

Add pm ops for renoir platform.

---
 sound/soc/amd/acp/acp-renoir.c | 38 +++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)
sound/soc/amd/acp/acp-renoir.c +37 -1
index a591482a0726..8539fbacdf4c 100644
@@ -20,6 +20,7 @@
 #include <sound/soc.h>
 #include <sound/soc-dai.h>
 #include <linux/dma-mapping.h>
+#include <linux/pm_runtime.h>
 
 #include "amd.h"
 #include "acp-mach.h"
@@ -195,7 +196,11 @@ static int renoir_audio_probe(struct platform_device *pdev)
 	dev_set_drvdata(dev, adata);
 	acp_enable_interrupts(adata);
 	acp_platform_register(dev);
-
+	pm_runtime_set_autosuspend_delay(&pdev->dev, ACP_SUSPEND_DELAY_MS);
+	pm_runtime_use_autosuspend(&pdev->dev);
+	pm_runtime_mark_last_busy(&pdev->dev);
+	pm_runtime_set_active(&pdev->dev);
+	pm_runtime_enable(&pdev->dev);
 	return 0;
 }
 
@@ -208,11 +213,42 @@ static void renoir_audio_remove(struct platform_device *pdev)
 	acp_platform_unregister(dev);
 }
 
+static int __maybe_unused rn_pcm_resume(struct device *dev)
+{
+	struct acp_dev_data *adata = dev_get_drvdata(dev);
+	struct acp_stream *stream;
+	struct snd_pcm_substream *substream;
+	snd_pcm_uframes_t buf_in_frames;
+	u64 buf_size;
+
+	spin_lock(&adata->acp_lock);
+	list_for_each_entry(stream, &adata->stream_list, list) {
+		substream = stream->substream;
+		if (substream && substream->runtime) {
+			buf_in_frames = (substream->runtime->buffer_size);
+			buf_size = frames_to_bytes(substream->runtime, buf_in_frames);
+			config_pte_for_stream(adata, stream);
+			config_acp_dma(adata, stream, buf_size);
+			if (stream->dai_id)
+				restore_acp_i2s_params(substream, adata, stream);
+			else
+				restore_acp_pdm_params(substream, adata);
+		}
+	}
+	spin_unlock(&adata->acp_lock);
+	return 0;
+}
+
+static const struct dev_pm_ops rn_dma_pm_ops = {
+	SET_SYSTEM_SLEEP_PM_OPS(NULL, rn_pcm_resume)
+};
+
 static struct platform_driver renoir_driver = {
 	.probe = renoir_audio_probe,
 	.remove_new = renoir_audio_remove,
 	.driver = {
 		.name = "acp_asoc_renoir",
+		.pm = &rn_dma_pm_ops,
 	},
 };
 
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH V2 2/2] ASoC: amd: acp: add pm ops support for renoir platform

Quoted 28 lines
sound/soc/amd/acp/acp-renoir.c +15 -1
@@ -195,7 +196,11 @@ static int renoir_audio_probe(struct platform_device *pdev)
 	dev_set_drvdata(dev, adata);
 	acp_enable_interrupts(adata);
 	acp_platform_register(dev);
-
+	pm_runtime_set_autosuspend_delay(&pdev->dev, ACP_SUSPEND_DELAY_MS);
+	pm_runtime_use_autosuspend(&pdev->dev);
+	pm_runtime_mark_last_busy(&pdev->dev);
+	pm_runtime_set_active(&pdev->dev);
+	pm_runtime_enable(&pdev->dev);
 	return 0;
 }
 
@@ -208,11 +213,42 @@ static void renoir_audio_remove(struct platform_device *pdev)
 	acp_platform_unregister(dev);
 }
 
+static int __maybe_unused rn_pcm_resume(struct device *dev)
+{
+	struct acp_dev_data *adata = dev_get_drvdata(dev);
+	struct acp_stream *stream;
+	struct snd_pcm_substream *substream;
+	snd_pcm_uframes_t buf_in_frames;
+	u64 buf_size;
+
+	spin_lock(&adata->acp_lock);
+	list_for_each_entry(stream, &adata->stream_list, list) {

sound/soc/amd/acp/acp-renoir.c static void renoir_audio_remove(struct platform_device *pdev) · line 235

Quoted 10 lines
sound/soc/amd/acp/acp-renoir.c +10 -0
+		substream = stream->substream;
+		if (substream && substream->runtime) {
+			buf_in_frames = (substream->runtime->buffer_size);
+			buf_size = frames_to_bytes(substream->runtime, buf_in_frames);
+			config_pte_for_stream(adata, stream);
+			config_acp_dma(adata, stream, buf_size);
+			if (stream->dai_id)
+				restore_acp_i2s_params(substream, adata, stream);
+			else
+				restore_acp_pdm_params(substream, adata);

when are those parameters saved...

sound/soc/amd/acp/acp-renoir.c static void renoir_audio_remove(struct platform_device *pdev)

Quoted 7 lines
sound/soc/amd/acp/acp-renoir.c +7 -0
+		}
+	}
+	spin_unlock(&adata->acp_lock);
+	return 0;
+}
+
+static const struct dev_pm_ops rn_dma_pm_ops = {> +	SET_SYSTEM_SLEEP_PM_OPS(NULL, rn_pcm_resume)

... since there's nothing done on suspend?

Also there's something weird here since the patch enables pm_runtime but there's nothing related to pm_runtime here, i.e. SET_RUNTIME_PM_OPS() is missing.

Quoted 11 lines
sound/soc/amd/acp/acp-renoir.c +3 -0
+};
+
 static struct platform_driver renoir_driver = {
 	.probe = renoir_audio_probe,
 	.remove_new = renoir_audio_remove,
 	.driver = {
 		.name = "acp_asoc_renoir",
+		.pm = &rn_dma_pm_ops,
 	},
 };
 
#3 lore raw

Re: [PATCH V2 2/2] ASoC: amd: acp: add pm ops support for renoir platform

On 11/13/23 20:15, Pierre-Louis Bossart wrote:
Thanks for your time.

Quoted 30 lines
Quoted 30 lines
sound/soc/amd/acp/acp-renoir.c +18 -1
@@ -195,7 +196,11 @@ static int renoir_audio_probe(struct platform_device *pdev)
  	dev_set_drvdata(dev, adata);
  	acp_enable_interrupts(adata);
  	acp_platform_register(dev);
-
+	pm_runtime_set_autosuspend_delay(&pdev->dev, ACP_SUSPEND_DELAY_MS);
+	pm_runtime_use_autosuspend(&pdev->dev);
+	pm_runtime_mark_last_busy(&pdev->dev);
+	pm_runtime_set_active(&pdev->dev);
+	pm_runtime_enable(&pdev->dev);
  	return 0;
  }
 
@@ -208,11 +213,42 @@ static void renoir_audio_remove(struct platform_device *pdev)
  	acp_platform_unregister(dev);
  }
 
+static int __maybe_unused rn_pcm_resume(struct device *dev)
+{
+	struct acp_dev_data *adata = dev_get_drvdata(dev);
+	struct acp_stream *stream;
+	struct snd_pcm_substream *substream;
+	snd_pcm_uframes_t buf_in_frames;
+	u64 buf_size;
+
+	spin_lock(&adata->acp_lock);
+	list_for_each_entry(stream, &adata->stream_list, list) {
+		substream = stream->substream;
+		if (substream && substream->runtime) {
+			buf_in_frames = (substream->runtime->buffer_size);
Quoted 8 lines

sound/soc/amd/acp/acp-renoir.c static void renoir_audio_remove(struct platform_device *pdev) · line 235

Quoted 7 lines
sound/soc/amd/acp/acp-renoir.c +7 -0
+			buf_size = frames_to_bytes(substream->runtime, buf_in_frames);
+			config_pte_for_stream(adata, stream);
+			config_acp_dma(adata, stream, buf_size);
+			if (stream->dai_id)
+				restore_acp_i2s_params(substream, adata, stream);
+			else
+				restore_acp_pdm_params(substream, adata);

when are those parameters saved...

We are saving adata in acp_i2s_hwparams <https://elixir.bootlin.com/linux/v6.7-rc1/C/ident/acp_i2s_hwparams> and acp_i2s_set_tdm_slot,

These are the parameters saving in adata struct tdm_tx_fmt, tdm_rx_fmt, lrclk_div and bclk_div.

Quoted 9 lines

sound/soc/amd/acp/acp-renoir.c static void renoir_audio_remove(struct platform_device *pdev)

Quoted 7 lines
sound/soc/amd/acp/acp-renoir.c +7 -0
+		}
+	}
+	spin_unlock(&adata->acp_lock);
+	return 0;
+}
+
+static const struct dev_pm_ops rn_dma_pm_ops = {> +	SET_SYSTEM_SLEEP_PM_OPS(NULL, rn_pcm_resume)

... since there's nothing done on suspend?

Quoted 3 lines

Also there's something weird here since the patch enables pm_runtime but there's nothing related to pm_runtime here, i.e. SET_RUNTIME_PM_OPS() is missing.

runtime pm ops are not required as this is a dma driver.

Quoted 11 lines
Quoted 11 lines
sound/soc/amd/acp/acp-renoir.c +3 -0
+};
+
  static struct platform_driver renoir_driver = {
  	.probe = renoir_audio_probe,
  	.remove_new = renoir_audio_remove,
  	.driver = {
  		.name = "acp_asoc_renoir",
+		.pm = &rn_dma_pm_ops,
  	},
  };
 
#4 lore raw

Re: [PATCH V2 2/2] ASoC: amd: acp: add pm ops support for renoir platform

In reply to Syed Saba Kareem

Hi, Thorsten here, the Linux kernel's regression tracker. Top-posting for once, to make this easily accessible to everyone.

Does anyone know what happened to below patch? It afaics was meant to fix a regression that made it into 6.6. For details see:

https://lore.kernel.org/lkml/[email protected]/
https://lore.kernel.org/lkml/[email protected]/

Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.

Quoted 75 lines · Syed Saba Kareem

Add pm ops for renoir platform.

---
 sound/soc/amd/acp/acp-renoir.c | 38 +++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)
sound/soc/amd/acp/acp-renoir.c +37 -1
index a591482a0726..8539fbacdf4c 100644
@@ -20,6 +20,7 @@
 #include <sound/soc.h>
 #include <sound/soc-dai.h>
 #include <linux/dma-mapping.h>
+#include <linux/pm_runtime.h>
 
 #include "amd.h"
 #include "acp-mach.h"
@@ -195,7 +196,11 @@ static int renoir_audio_probe(struct platform_device *pdev)
 	dev_set_drvdata(dev, adata);
 	acp_enable_interrupts(adata);
 	acp_platform_register(dev);
-
+	pm_runtime_set_autosuspend_delay(&pdev->dev, ACP_SUSPEND_DELAY_MS);
+	pm_runtime_use_autosuspend(&pdev->dev);
+	pm_runtime_mark_last_busy(&pdev->dev);
+	pm_runtime_set_active(&pdev->dev);
+	pm_runtime_enable(&pdev->dev);
 	return 0;
 }
 
@@ -208,11 +213,42 @@ static void renoir_audio_remove(struct platform_device *pdev)
 	acp_platform_unregister(dev);
 }
 
+static int __maybe_unused rn_pcm_resume(struct device *dev)
+{
+	struct acp_dev_data *adata = dev_get_drvdata(dev);
+	struct acp_stream *stream;
+	struct snd_pcm_substream *substream;
+	snd_pcm_uframes_t buf_in_frames;
+	u64 buf_size;
+
+	spin_lock(&adata->acp_lock);
+	list_for_each_entry(stream, &adata->stream_list, list) {
+		substream = stream->substream;
+		if (substream && substream->runtime) {
+			buf_in_frames = (substream->runtime->buffer_size);
+			buf_size = frames_to_bytes(substream->runtime, buf_in_frames);
+			config_pte_for_stream(adata, stream);
+			config_acp_dma(adata, stream, buf_size);
+			if (stream->dai_id)
+				restore_acp_i2s_params(substream, adata, stream);
+			else
+				restore_acp_pdm_params(substream, adata);
+		}
+	}
+	spin_unlock(&adata->acp_lock);
+	return 0;
+}
+
+static const struct dev_pm_ops rn_dma_pm_ops = {
+	SET_SYSTEM_SLEEP_PM_OPS(NULL, rn_pcm_resume)
+};
+
 static struct platform_driver renoir_driver = {
 	.probe = renoir_audio_probe,
 	.remove_new = renoir_audio_remove,
 	.driver = {
 		.name = "acp_asoc_renoir",
+		.pm = &rn_dma_pm_ops,
 	},
 };
 
#5 lore raw

RE: [PATCH V2 2/2] ASoC: amd: acp: add pm ops support for renoir platform

[AMD Official Use Only - General]

Hi Thorsten,
The patch got merged to broonie git.
Please find the below link for the details.
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git/commit/sound/soc/amd/acp?id=c95a2a0be0b1bba2e051faa105c2e0401fc2de33

Thanks,
Syed Saba Kareem.

-----Original Message-----
From: Linux regression tracking (Thorsten Leemhuis) <[email protected]>
Sent: Friday, December 15, 2023 4:44 PM
To: Saba Kareem, Syed <[email protected]>; [email protected]; [email protected]
Cc: Mukunda, Vijendar <[email protected]>; Hiregoudar, Basavaraj <[email protected]>; Dommati, Sunil-kumar <[email protected]>; Limonciello, Mario <[email protected]>; Gong, Richard <[email protected]>; [email protected]; Liam Girdwood <[email protected]>; Jaroslav Kysela <[email protected]>; Takashi Iwai <[email protected]>; Kuninori Morimoto <[email protected]>; Nicolas Ferre <[email protected]>; Uwe Kleine-König <[email protected]>; open list <[email protected]>; Linux kernel regressions list <[email protected]>
Subject: Re: [PATCH V2 2/2] ASoC: amd: acp: add pm ops support for renoir platform

Hi, Thorsten here, the Linux kernel's regression tracker. Top-posting for once, to make this easily accessible to everyone.

Does anyone know what happened to below patch? It afaics was meant to fix a regression that made it into 6.6. For details see:

https://lore.kernel.org/lkml/[email protected]/
https://lore.kernel.org/lkml/[email protected]/

Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) --
Everything you wanna know about Linux kernel regression tracking:
https://linux-regtracking.leemhuis.info/about/#tldr
If I did something stupid, please tell me, as explained on that page.

Quoted 75 lines · Syed Saba Kareem

Add pm ops for renoir platform.

---
 sound/soc/amd/acp/acp-renoir.c | 38
+++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/sound/soc/amd/acp/acp-renoir.c index a591482a0726..8539fbacdf4c 100644

sound/soc/amd/acp/acp-renoir.c +35 -1
@@ -20,6 +20,7 @@
 #include <sound/soc.h>
 #include <sound/soc-dai.h>
 #include <linux/dma-mapping.h>
+#include <linux/pm_runtime.h>
 
 #include "amd.h"
 #include "acp-mach.h"
@@ -195,7 +196,11 @@ static int renoir_audio_probe(struct platform_device *pdev)
      dev_set_drvdata(dev, adata);
      acp_enable_interrupts(adata);
      acp_platform_register(dev);
-
+     pm_runtime_set_autosuspend_delay(&pdev->dev, ACP_SUSPEND_DELAY_MS);
+     pm_runtime_use_autosuspend(&pdev->dev);
+     pm_runtime_mark_last_busy(&pdev->dev);
+     pm_runtime_set_active(&pdev->dev);
+     pm_runtime_enable(&pdev->dev);
      return 0;
 }
 
@@ -208,11 +213,42 @@ static void renoir_audio_remove(struct platform_device *pdev)
      acp_platform_unregister(dev);
 }
 
+static int __maybe_unused rn_pcm_resume(struct device *dev) {
+     struct acp_dev_data *adata = dev_get_drvdata(dev);
+     struct acp_stream *stream;
+     struct snd_pcm_substream *substream;
+     snd_pcm_uframes_t buf_in_frames;
+     u64 buf_size;
+
+     spin_lock(&adata->acp_lock);
+     list_for_each_entry(stream, &adata->stream_list, list) {
+             substream = stream->substream;
+             if (substream && substream->runtime) {
+                     buf_in_frames = (substream->runtime->buffer_size);
+                     buf_size = frames_to_bytes(substream->runtime, buf_in_frames);
+                     config_pte_for_stream(adata, stream);
+                     config_acp_dma(adata, stream, buf_size);
+                     if (stream->dai_id)
+                             restore_acp_i2s_params(substream, adata, stream);
+                     else
+                             restore_acp_pdm_params(substream, adata);
+             }
+     }
+     spin_unlock(&adata->acp_lock);
+     return 0;
+}
+
+static const struct dev_pm_ops rn_dma_pm_ops = {
+     SET_SYSTEM_SLEEP_PM_OPS(NULL, rn_pcm_resume) };
+
 static struct platform_driver renoir_driver = {
      .probe = renoir_audio_probe,
      .remove_new = renoir_audio_remove,
      .driver = {
              .name = "acp_asoc_renoir",
+             .pm = &rn_dma_pm_ops,
      },
 };
 
#6 lore raw
In reply to Syed Saba Kareem
Quoted 18 lines · Syed Saba Kareem

ACP7.0 based platform legacy drivers can be built by selecting necessary kernel config option. This patch enables build support of the same.

---
changes since v1:
- added missing commit message.

  sound/soc/amd/acp/Kconfig  | 12 ++++++++++++
  sound/soc/amd/acp/Makefile |  2 ++
  2 files changed, 14 insertions(+)
sound/soc/amd/acp/Kconfig +0 -0
index 5fb322212938..c8ac0027f741 100644

sound/soc/amd/acp/Kconfig config SND_AMD_ASOC_ACP63 · line 82

Quoted 10 lines
sound/soc/amd/acp/Kconfig +7 -0
@@ -73,6 +73,18 @@ config SND_AMD_ASOC_ACP63
  	  Say Y if you want to enable AUDIO on ACP6.3
  	  If unsure select "N".
 
+config SND_AMD_ASOC_ACP70
+	tristate "AMD ACP ASOC Acp7.0 Support"
+	depends on X86 && PCI
+	depends on ACPI
+	select SND_SOC_AMD_ACP_PCM
+	select SND_SOC_AMD_ACP_I2S
+	select SND_SOC_AMD_ACP_PDM

Do you not need:

select SND_SOC_AMD_ACP_LEGACY_COMMON

Like how ACP63, Rembrandt, and Renoir all select?

Quoted 28 lines
sound/soc/amd/acp/Kconfig +5 -0
+	help
+	This option enables Acp7.0 PDM support on AMD platform.
+	Say Y if you want to enable AUDIO on ACP7.0
+          If unsure select "N".
+
  config SND_SOC_AMD_MACH_COMMON
  	tristate
  	depends on X86 && PCI && I2C
sound/soc/amd/acp/Makefile +2 -0
index dd85700f1c5f..ff5f7893b81e 100644
@@ -15,6 +15,7 @@ snd-acp-pci-objs     := acp-pci.o
  snd-acp-renoir-objs     := acp-renoir.o
  snd-acp-rembrandt-objs  := acp-rembrandt.o
  snd-acp63-objs := acp63.o
+snd-acp70-objs := acp70.o
 
  #machine specific driver
  snd-acp-mach-objs     := acp-mach-common.o
@@ -30,6 +31,7 @@ obj-$(CONFIG_SND_SOC_AMD_ACP_PCI) += snd-acp-pci.o
  obj-$(CONFIG_SND_AMD_ASOC_RENOIR) += snd-acp-renoir.o
  obj-$(CONFIG_SND_AMD_ASOC_REMBRANDT) += snd-acp-rembrandt.o
  obj-$(CONFIG_SND_AMD_ASOC_ACP63) += snd-acp63.o
+obj-$(CONFIG_SND_AMD_ASOC_ACP70) += snd-acp70.o
 
  obj-$(CONFIG_SND_SOC_AMD_MACH_COMMON) += snd-acp-mach.o
  obj-$(CONFIG_SND_SOC_AMD_LEGACY_MACH) += snd-acp-legacy-mach.o
#7 lore raw
Quoted 31 lines · Mario Limonciello
Quoted 19 lines · Syed Saba Kareem

ACP7.0 based platform legacy drivers can be built by selecting necessary kernel config option. This patch enables build support of the same.

---
changes since v1:
      - added missing commit message.

  sound/soc/amd/acp/Kconfig  | 12 ++++++++++++
  sound/soc/amd/acp/Makefile |  2 ++

  2 files changed, 14 insertions(+)
sound/soc/amd/acp/Kconfig +0 -0
index 5fb322212938..c8ac0027f741 100644
@@ -73,6 +73,18 @@ config SND_AMD_ASOC_ACP63

        Say Y if you want to enable AUDIO on ACP6.3

Quoted 8 lines

        If unsure select "N".
  +config SND_AMD_ASOC_ACP70
+    tristate "AMD ACP ASOC Acp7.0 Support"
+    depends on X86 && PCI
+    depends on ACPI
+    select SND_SOC_AMD_ACP_PCM
+    select SND_SOC_AMD_ACP_I2S
+    select SND_SOC_AMD_ACP_PDM

Do you not need:

Quoted 4 lines

    select SND_SOC_AMD_ACP_LEGACY_COMMON

Like how ACP63, Rembrandt, and Renoir all select?

Yes, this flag is missing will upstream the fix as an incremental patch.

Quoted 27 lines
Quoted 26 lines

+    help
+    This option enables Acp7.0 PDM support on AMD platform. +    Say Y if you want to enable AUDIO on ACP7.0
+          If unsure select "N".
+
  config SND_SOC_AMD_MACH_COMMON
      tristate
      depends on X86 && PCI && I2C

sound/soc/amd/acp/Makefile +0 -0
index dd85700f1c5f..ff5f7893b81e 100644
@@ -15,6 +15,7 @@ snd-acp-pci-objs     := acp-pci.o

  snd-acp-renoir-objs     := acp-renoir.o
  snd-acp-rembrandt-objs  := acp-rembrandt.o
  snd-acp63-objs := acp63.o
+snd-acp70-objs := acp70.o
    #machine specific driver
  snd-acp-mach-objs     := acp-mach-common.o

sound/soc/amd/acp/Makefile +0 -0
@@ -30,6 +31,7 @@ obj-$(CONFIG_SND_SOC_AMD_ACP_PCI) += snd-acp-pci.o

  obj-$(CONFIG_SND_AMD_ASOC_RENOIR) += snd-acp-renoir.o obj-$(CONFIG_SND_AMD_ASOC_REMBRANDT) += snd-acp-rembrandt.o obj-$(CONFIG_SND_AMD_ASOC_ACP63) += snd-acp63.o +obj-$(CONFIG_SND_AMD_ASOC_ACP70) += snd-acp70.o obj-$(CONFIG_SND_SOC_AMD_MACH_COMMON) += snd-acp-mach.o obj-$(CONFIG_SND_SOC_AMD_LEGACY_MACH) += snd-acp-legacy-mach.o

maintainer
#8 lore raw
In reply to Syed Saba Kareem
Quoted 5 lines · Syed Saba Kareem

ACP7.0 based platform legacy drivers can be built by selecting necessary kernel config option. This patch enables build support of the same.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: amd: acp: add Kconfig options for acp7.0 based platform driver

      commit: d3534684ada99ef8c0899eb28c62b4462483ee19

[2/2] ASoC: amd: acp: add pm ops support for renoir platform
(no commit info)

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark