All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product
@ 2022-12-26  1:09 Bard Liao
  2022-12-26  1:09 ` [PATCH 2/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C11 product Bard Liao
  2022-12-26 23:34 ` [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Bard Liao @ 2022-12-26  1:09 UTC (permalink / raw)
  To: broonie, tiwai
  Cc: alsa-devel, Zorro.Zhang, pierre-louis.bossart, ranjani.sridharan,
	peter.ujfalusi, bard.liao

From: Gongjun Song <gongjun.song@intel.com>

Support configuration with SoundWire RT1316 amplifiers on link0 and
link1, and RT711 on link2 for headphone/headset. This product does
not support local microphones.

Signed-off-by: Gongjun Song <gongjun.song@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 .../intel/common/soc-acpi-intel-rpl-match.c   | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c b/sound/soc/intel/common/soc-acpi-intel-rpl-match.c
index 31b43116e3d8..c70d85bfedbf 100644
--- a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-rpl-match.c
@@ -203,6 +203,25 @@ static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link2_rt1316_link01_rt71
 	{}
 };
 
+static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link2_rt1316_link01[] = {
+	{
+		.mask = BIT(2),
+		.num_adr = ARRAY_SIZE(rt711_sdca_2_adr),
+		.adr_d = rt711_sdca_2_adr,
+	},
+	{
+		.mask = BIT(0),
+		.num_adr = ARRAY_SIZE(rt1316_0_group2_adr),
+		.adr_d = rt1316_0_group2_adr,
+	},
+	{
+		.mask = BIT(1),
+		.num_adr = ARRAY_SIZE(rt1316_1_group2_adr),
+		.adr_d = rt1316_1_group2_adr,
+	},
+	{}
+};
+
 static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link0_rt1318_link12_rt714_link3[] = {
 	{
 		.mask = BIT(0),
@@ -277,6 +296,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_sdw_machines[] = {
 		.drv_name = "sof_sdw",
 		.sof_tplg_filename = "sof-rpl-rt1316-l12-rt714-l0.tplg",
 	},
+	{
+		.link_mask = 0x7, /* rt711 on link2 & two rt1316s on link0 and link1 */
+		.links = rpl_sdw_rt711_link2_rt1316_link01,
+		.drv_name = "sof_sdw",
+		.sof_tplg_filename = "sof-rpl-rt711-l2-rt1316-l01.tplg",
+	},
 	{
 		.link_mask = 0x1, /* link0 required */
 		.links = rpl_rvp,
-- 
2.25.1


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

* [PATCH 2/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C11 product
  2022-12-26  1:09 [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product Bard Liao
@ 2022-12-26  1:09 ` Bard Liao
  2022-12-26 23:34 ` [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Bard Liao @ 2022-12-26  1:09 UTC (permalink / raw)
  To: broonie, tiwai
  Cc: alsa-devel, Zorro.Zhang, pierre-louis.bossart, ranjani.sridharan,
	peter.ujfalusi, bard.liao

From: Gongjun Song <gongjun.song@intel.com>

Support configuration with SoundWire RT1318 amplifiers on link1 and
link2, and RT711 on link0 for headphone/headset. This product does
not support local microphones.

Signed-off-by: Gongjun Song <gongjun.song@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 .../intel/common/soc-acpi-intel-rpl-match.c   | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c b/sound/soc/intel/common/soc-acpi-intel-rpl-match.c
index c70d85bfedbf..07f96a11ea2f 100644
--- a/sound/soc/intel/common/soc-acpi-intel-rpl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-rpl-match.c
@@ -246,6 +246,25 @@ static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link0_rt1318_link12_rt71
 	{}
 };
 
+static const struct snd_soc_acpi_link_adr rpl_sdw_rt711_link0_rt1318_link12[] = {
+	{
+		.mask = BIT(0),
+		.num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
+		.adr_d = rt711_sdca_0_adr,
+	},
+	{
+		.mask = BIT(1),
+		.num_adr = ARRAY_SIZE(rt1318_1_group1_adr),
+		.adr_d = rt1318_1_group1_adr,
+	},
+	{
+		.mask = BIT(2),
+		.num_adr = ARRAY_SIZE(rt1318_2_group1_adr),
+		.adr_d = rt1318_2_group1_adr,
+	},
+	{}
+};
+
 static const struct snd_soc_acpi_link_adr rpl_sdw_rt1316_link12_rt714_link0[] = {
 	{
 		.mask = BIT(1),
@@ -290,6 +309,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_sdw_machines[] = {
 		.drv_name = "sof_sdw",
 		.sof_tplg_filename = "sof-rpl-rt711-l0-rt1318-l12-rt714-l3.tplg",
 	},
+	{
+		.link_mask = 0x7, /* rt711 on link0 & two rt1318s on link1 and link2 */
+		.links = rpl_sdw_rt711_link0_rt1318_link12,
+		.drv_name = "sof_sdw",
+		.sof_tplg_filename = "sof-rpl-rt711-l0-rt1318-l12.tplg",
+	},
 	{
 		.link_mask = 0x7, /* rt714 on link0 & two rt1316s on link1 and link2 */
 		.links = rpl_sdw_rt1316_link12_rt714_link0,
-- 
2.25.1


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

* Re: [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product
  2022-12-26  1:09 [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product Bard Liao
  2022-12-26  1:09 ` [PATCH 2/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C11 product Bard Liao
@ 2022-12-26 23:34 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2022-12-26 23:34 UTC (permalink / raw)
  To: tiwai, Bard Liao
  Cc: alsa-devel, Zorro.Zhang, pierre-louis.bossart, ranjani.sridharan,
	peter.ujfalusi, bard.liao

On Mon, 26 Dec 2022 09:09:16 +0800, Bard Liao wrote:
> Support configuration with SoundWire RT1316 amplifiers on link0 and
> link1, and RT711 on link2 for headphone/headset. This product does
> not support local microphones.
> 
> 

Applied to

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

Thanks!

[1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product
      commit: 896c3dc21f1e84cb2f60d54572fc3377eb57e004
[2/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C11 product
      commit: b25a31b463391cc47a654594eb154ebf5dd0d60a

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] 3+ messages in thread

end of thread, other threads:[~2022-12-26 23:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-26  1:09 [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product Bard Liao
2022-12-26  1:09 ` [PATCH 2/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C11 product Bard Liao
2022-12-26 23:34 ` [PATCH 1/2] ASoC: Intel: soc-acpi: add configuration for variant of 0C40 product Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.