Skip to contentSkip to conversation

ASoC: Intel: sof_rt5682: add supports for new

PATCH In review Bard Liao 2 participants 5 messages Oct 4, 2024 – Oct 7, 2024

Subsystems (3)
lore
Share & tools
lore

Bard Liao

author maintainer
#0 lore raw

cover ASoC: Intel: sof_rt5682: add supports for new

Add HDMI-In support for MTL and rt5682 support for PTL.

Balamurugan C (1):
ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for
MTL.

Dharageswari R (1):
ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682

 sound/soc/intel/boards/sof_rt5682.c               | 15 +++++++++++++++
 sound/soc/intel/common/soc-acpi-intel-mtl-match.c |  7 +++++++
 sound/soc/intel/common/soc-acpi-intel-ptl-match.c | 13 +++++++++++++
 3 files changed, 35 insertions(+)
Signature · 1 line
2.43.0
author maintainer
#1 lore raw

PATCH 1/2 ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL.

From: Balamurugan C <[email protected]>

Added match table entry on mtl machines to support HDMI-In capture with rt5682 I2S audio codec. also added the respective quirk configuration in rt5682 machine driver.

---
 sound/soc/intel/boards/sof_rt5682.c               | 7 +++++++
 sound/soc/intel/common/soc-acpi-intel-mtl-match.c | 7 +++++++
 2 files changed, 14 insertions(+)
sound/soc/intel/boards/sof_rt5682.c +7 -0
index bc581fea0e3a..866589fece7a 100644
@@ -870,6 +870,13 @@ static const struct platform_device_id board_ids[] = {
 					SOF_SSP_PORT_BT_OFFLOAD(2) |
 					SOF_BT_OFFLOAD_PRESENT),
 	},
+	{
+		.name = "mtl_rt5682_c1_h02",
+		.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
+					SOF_SSP_PORT_CODEC(1) |
+					/* SSP 0 and SSP 2 are used for HDMI IN */
+					SOF_SSP_MASK_HDMI_CAPTURE(0x5)),
+	},
 	{
 		.name = "arl_rt5682_c1_h02",
 		.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
sound/soc/intel/common/soc-acpi-intel-mtl-match.c +7 -0
index d4435a34a3a3..fd02c864e25e 100644
@@ -42,6 +42,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_machines[] = {
 					SND_SOC_ACPI_TPLG_INTEL_SSP_MSB |
 					SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER,
 	},
+	{
+		.comp_ids = &mtl_rt5682_rt5682s_hp,
+		.drv_name = "mtl_rt5682_c1_h02",
+		.machine_quirk = snd_soc_acpi_codec_list,
+		.quirk_data = &mtl_lt6911_hdmi,
+		.sof_tplg_filename = "sof-mtl-rt5682-ssp1-hdmi-ssp02.tplg",
+	},
 	/* place boards for each headphone codec: sof driver will complete the
 	 * tplg name and machine driver will detect the amp type
 	 */
Signature · 1 line
2.43.0
author maintainer
#2 lore raw

PATCH 2/2 ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682

In reply to Bard Liao

From: Dharageswari R <[email protected]>

This patch adds the driver data for rt5682 codec on SSP0 and max98360a speaker amplifiers on SSP1 for PTL platform.

---
 sound/soc/intel/boards/sof_rt5682.c               |  8 ++++++++
 sound/soc/intel/common/soc-acpi-intel-ptl-match.c | 13 +++++++++++++
 2 files changed, 21 insertions(+)
sound/soc/intel/boards/sof_rt5682.c +8 -0
index 866589fece7a..5ceb376d4924 100644
@@ -884,6 +884,14 @@ static const struct platform_device_id board_ids[] = {
 					/* SSP 0 and SSP 2 are used for HDMI IN */
 					SOF_SSP_MASK_HDMI_CAPTURE(0x5)),
 	},
+	{
+		.name = "ptl_rt5682_def",
+		.driver_data = (kernel_ulong_t)(SOF_RT5682_MCLK_EN |
+					SOF_SSP_PORT_CODEC(0) |
+					SOF_SSP_PORT_AMP(1) |
+					SOF_SSP_PORT_BT_OFFLOAD(2) |
+					SOF_BT_OFFLOAD_PRESENT),
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(platform, board_ids);
sound/soc/intel/common/soc-acpi-intel-ptl-match.c +13 -0
index 90f97a44b607..61b16bc1ba8c 100644
@@ -9,8 +9,21 @@
 #include <sound/soc-acpi.h>
 #include <sound/soc-acpi-intel-match.h>
 #include "soc-acpi-intel-sdw-mockup-match.h"
+#include <sound/soc-acpi-intel-ssp-common.h>
+
+static const struct snd_soc_acpi_codecs ptl_rt5682_rt5682s_hp = {
+	.num_codecs = 2,
+	.codecs = {RT5682_ACPI_HID, RT5682S_ACPI_HID},
+};
 
 struct snd_soc_acpi_mach snd_soc_acpi_intel_ptl_machines[] = {
+	{
+		.comp_ids = &ptl_rt5682_rt5682s_hp,
+		.drv_name = "ptl_rt5682_def",
+		.sof_tplg_filename = "sof-ptl", /* the tplg suffix is added at run time */
+		.tplg_quirk_mask = SND_SOC_ACPI_TPLG_INTEL_AMP_NAME |
+					SND_SOC_ACPI_TPLG_INTEL_CODEC_NAME,
+	},
 	{},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_ptl_machines);
Signature · 1 line
2.43.0
maintainer
#3 lore raw
In reply to Bard Liao
Quoted 10 lines · Bard Liao

Add HDMI-In support for MTL and rt5682 support for PTL.

Balamurugan C (1):
ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for
MTL.

Dharageswari R (1):
ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682

[...]

Applied to

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

Thanks!

[1/2] ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL.

      commit: 0f5d2228a99a4733b2a6652e16255be9caf2616a
[2/2] ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682
      commit: 56d3705e4b36bf454965e66d8264356a23135aa7

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

maintainer
#4 lore raw
In reply to Bard Liao
Quoted 10 lines · Bard Liao

Add HDMI-In support for MTL and rt5682 support for PTL.

Balamurugan C (1):
ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for
MTL.

Dharageswari R (1):
ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682

[...]

Applied to

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

Thanks!

[1/2] ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL.

      commit: 0f5d2228a99a4733b2a6652e16255be9caf2616a
[2/2] ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682
      commit: 56d3705e4b36bf454965e66d8264356a23135aa7

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