Skip to contentSkip to conversation

ASoC: SOF: Intel: descriptor corrections for TGL and ADL

PATCH In review Pierre-Louis Bossart 2 participants 4 messages Apr 12, 2021

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

cover ASoC: SOF: Intel: descriptor corrections for TGL and ADL

One missed property for TigerLake and need for separate descriptors between ADL-S and the other flavors.

Libin Yang (1):
ASoC: SOF: Intel: add missing use_acpi_target_states for TGL platforms

Sathya Prakash M R (1):
ASoC: SOF: Intel: Update ADL P to use its own descriptor

 sound/soc/sof/intel/pci-tgl.c | 20 +++++++++++++++++++-
 sound/soc/sof/intel/tgl.c     |  2 +-
 2 files changed, 20 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 ASoC: SOF: Intel: add missing use_acpi_target_states for TGL platforms

From: Libin Yang <[email protected]>

All Intel TigerLake platforms should support the feature of getting the system state from acpi to deal with S0ix support.

This was missed in previous commits, likely due to copy/paste from older code.

---
 sound/soc/sof/intel/pci-tgl.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/sof/intel/pci-tgl.c +2 -0
index 38bc353f7313..77cc037655f1 100644
@@ -39,6 +39,7 @@ static const struct sof_dev_desc tgl_desc = {
 static const struct sof_dev_desc tglh_desc = {
 	.machines               = snd_soc_acpi_intel_tgl_machines,
 	.alt_machines		= snd_soc_acpi_intel_tgl_sdw_machines,
+	.use_acpi_target_states	= true,
 	.resindex_lpe_base      = 0,
 	.resindex_pcicfg_base   = -1,
 	.resindex_imr_base      = -1,
@@ -71,6 +72,7 @@ static const struct sof_dev_desc ehl_desc = {
 static const struct sof_dev_desc adls_desc = {
 	.machines               = snd_soc_acpi_intel_adl_machines,
 	.alt_machines           = snd_soc_acpi_intel_adl_sdw_machines,
+	.use_acpi_target_states	= true,
 	.resindex_lpe_base      = 0,
 	.resindex_pcicfg_base   = -1,
 	.resindex_imr_base      = -1,
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/2 ASoC: SOF: Intel: Update ADL P to use its own descriptor

In reply to Pierre-Louis Bossart

From: Sathya Prakash M R <[email protected]>

ADL P has specific machines and hence having its own table will help separate the machines and FW

---
 sound/soc/sof/intel/pci-tgl.c | 18 +++++++++++++++++-
 sound/soc/sof/intel/tgl.c     |  2 +-
 2 files changed, 18 insertions(+), 2 deletions(-)
sound/soc/sof/intel/pci-tgl.c +17 -1
index 77cc037655f1..88c3bf404dd7 100644
@@ -86,6 +86,22 @@ static const struct sof_dev_desc adls_desc = {
 	.ops = &sof_tgl_ops,
 };
 
+static const struct sof_dev_desc adl_desc = {
+	.machines               = snd_soc_acpi_intel_adl_machines,
+	.alt_machines           = snd_soc_acpi_intel_adl_sdw_machines,
+	.resindex_lpe_base      = 0,
+	.resindex_pcicfg_base   = -1,
+	.resindex_imr_base      = -1,
+	.irqindex_host_ipc      = -1,
+	.resindex_dma_base      = -1,
+	.chip_info = &tgl_chip_info,
+	.default_fw_path = "intel/sof",
+	.default_tplg_path = "intel/sof-tplg",
+	.default_fw_filename = "sof-adl.ri",
+	.nocodec_tplg_filename = "sof-adl-nocodec.tplg",
+	.ops = &sof_tgl_ops,
+};
+
 /* PCI IDs */
 static const struct pci_device_id sof_pci_ids[] = {
 	{ PCI_DEVICE(0x8086, 0xa0c8), /* TGL-LP */
@@ -99,7 +115,7 @@ static const struct pci_device_id sof_pci_ids[] = {
 	{ PCI_DEVICE(0x8086, 0x7ad0), /* ADL-S */
 		.driver_data = (unsigned long)&adls_desc},
 	{ PCI_DEVICE(0x8086, 0x51c8), /* ADL-P */
-		.driver_data = (unsigned long)&tgl_desc},
+		.driver_data = (unsigned long)&adl_desc},
 	{ 0, }
 };
 MODULE_DEVICE_TABLE(pci, sof_pci_ids);
sound/soc/sof/intel/tgl.c +1 -1
index 54ba1b88ba86..2ed788304414 100644
@@ -125,7 +125,7 @@ const struct snd_sof_dsp_ops sof_tgl_ops = {
 EXPORT_SYMBOL_NS(sof_tgl_ops, SND_SOC_SOF_INTEL_HDA_COMMON);
 
 const struct sof_intel_dsp_desc tgl_chip_info = {
-	/* Tigerlake */
+	/* Tigerlake , Alderlake */
 	.cores_num = 4,
 	.init_core_mask = 1,
 	.host_managed_cores_mask = BIT(0),
Signature · 1 line
2.25.1
maintainer
#3 lore raw
In reply to Pierre-Louis Bossart
Quoted 10 lines · Pierre-Louis Bossart

One missed property for TigerLake and need for separate descriptors between ADL-S and the other flavors.

Libin Yang (1):
ASoC: SOF: Intel: add missing use_acpi_target_states for TGL platforms

Sathya Prakash M R (1):
ASoC: SOF: Intel: Update ADL P to use its own descriptor

[...]

Applied to

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

Thanks!

[1/2] ASoC: SOF: Intel: add missing use_acpi_target_states for TGL platforms

      commit: 1b9889974ce93dea50d010972a93c0eb529ac612
[2/2] ASoC: SOF: Intel: Update ADL P to use its own descriptor
      commit: 4ad03f894b3c96d77e51474f0c9731793fac412e

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