Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new
@ 2024-10-04  3:01 Bard Liao
  2024-10-04  3:01 ` [PATCH 1/2] ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL Bard Liao
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bard Liao @ 2024-10-04  3:01 UTC (permalink / raw)
  To: broonie, tiwai
  Cc: linux-sound, pierre-louis.bossart, bard.liao, peter.ujfalusi

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(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL.
  2024-10-04  3:01 [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Bard Liao
@ 2024-10-04  3:01 ` Bard Liao
  2024-10-04  3:01 ` [PATCH 2/2] ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682 Bard Liao
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Bard Liao @ 2024-10-04  3:01 UTC (permalink / raw)
  To: broonie, tiwai
  Cc: linux-sound, pierre-louis.bossart, bard.liao, peter.ujfalusi

From: Balamurugan C <balamurugan.c@intel.com>

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.

Signed-off-by: Balamurugan C <balamurugan.c@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 sound/soc/intel/boards/sof_rt5682.c               | 7 +++++++
 sound/soc/intel/common/soc-acpi-intel-mtl-match.c | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index bc581fea0e3a..866589fece7a 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -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 |
diff --git a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c
index d4435a34a3a3..fd02c864e25e 100644
--- a/sound/soc/intel/common/soc-acpi-intel-mtl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-mtl-match.c
@@ -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
 	 */
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682
  2024-10-04  3:01 [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Bard Liao
  2024-10-04  3:01 ` [PATCH 1/2] ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL Bard Liao
@ 2024-10-04  3:01 ` Bard Liao
  2024-10-05  9:50 ` [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Mark Brown
  2024-10-07 16:08 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Bard Liao @ 2024-10-04  3:01 UTC (permalink / raw)
  To: broonie, tiwai
  Cc: linux-sound, pierre-louis.bossart, bard.liao, peter.ujfalusi

From: Dharageswari R <dharageswari.r@intel.com>

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

Signed-off-by: Dharageswari R <dharageswari.r@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 sound/soc/intel/boards/sof_rt5682.c               |  8 ++++++++
 sound/soc/intel/common/soc-acpi-intel-ptl-match.c | 13 +++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c
index 866589fece7a..5ceb376d4924 100644
--- a/sound/soc/intel/boards/sof_rt5682.c
+++ b/sound/soc/intel/boards/sof_rt5682.c
@@ -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);
diff --git a/sound/soc/intel/common/soc-acpi-intel-ptl-match.c b/sound/soc/intel/common/soc-acpi-intel-ptl-match.c
index 90f97a44b607..61b16bc1ba8c 100644
--- a/sound/soc/intel/common/soc-acpi-intel-ptl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-ptl-match.c
@@ -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);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new
  2024-10-04  3:01 [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Bard Liao
  2024-10-04  3:01 ` [PATCH 1/2] ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL Bard Liao
  2024-10-04  3:01 ` [PATCH 2/2] ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682 Bard Liao
@ 2024-10-05  9:50 ` Mark Brown
  2024-10-07 16:08 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-10-05  9:50 UTC (permalink / raw)
  To: tiwai, Bard Liao
  Cc: linux-sound, pierre-louis.bossart, bard.liao, peter.ujfalusi

On Fri, 04 Oct 2024 11:01:32 +0800, Bard Liao wrote:
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new
  2024-10-04  3:01 [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Bard Liao
                   ` (2 preceding siblings ...)
  2024-10-05  9:50 ` [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Mark Brown
@ 2024-10-07 16:08 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-10-07 16:08 UTC (permalink / raw)
  To: tiwai, Bard Liao
  Cc: linux-sound, pierre-louis.bossart, bard.liao, peter.ujfalusi

On Fri, 04 Oct 2024 11:01:32 +0800, Bard Liao wrote:
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-07 16:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-04  3:01 [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Bard Liao
2024-10-04  3:01 ` [PATCH 1/2] ASoC: Intel: sof_rt5682: Add HDMI-In capture with rt5682 support for MTL Bard Liao
2024-10-04  3:01 ` [PATCH 2/2] ASoC: Intel: sof_rt5682: Add support for ptl_max98360a_rt5682 Bard Liao
2024-10-05  9:50 ` [PATCH 0/2] ASoC: Intel: sof_rt5682: add supports for new Mark Brown
2024-10-07 16:08 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox