All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table
@ 2021-05-21 15:56 Kai Vehmanen
  2021-05-21 15:56 ` [PATCH 2/2] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload Kai Vehmanen
  2021-05-21 19:37 ` [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Kai Vehmanen @ 2021-05-21 15:56 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: cezary.rojewski, kai.vehmanen, Jie Yang, pierre-louis.bossart,
	ranjani.sridharan, Bard Liao, yung-chuan.liao,
	Vamshi Krishna Gopal

From: Vamshi Krishna Gopal <vamshi.krishna.gopal@intel.com>

RT5682 and Max98373 are added with SDW0,SDW2 links respectively.

Signed-off-by: Vamshi Krishna Gopal <vamshi.krishna.gopal@intel.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
 .../intel/common/soc-acpi-intel-adl-match.c   | 45 +++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/sound/soc/intel/common/soc-acpi-intel-adl-match.c b/sound/soc/intel/common/soc-acpi-intel-adl-match.c
index 39ac6d52106f..22c465f1d5d8 100644
--- a/sound/soc/intel/common/soc-acpi-intel-adl-match.c
+++ b/sound/soc/intel/common/soc-acpi-intel-adl-match.c
@@ -223,6 +223,30 @@ static const struct snd_soc_acpi_link_adr adl_sdw_rt1316_link2_rt714_link0[] = {
 	{}
 };
 
+static const struct snd_soc_acpi_adr_device mx8373_2_adr[] = {
+	{
+		.adr = 0x000223019F837300ull,
+		.num_endpoints = 1,
+		.endpoints = &spk_l_endpoint,
+		.name_prefix = "Left"
+	},
+	{
+		.adr = 0x000227019F837300ull,
+		.num_endpoints = 1,
+		.endpoints = &spk_r_endpoint,
+		.name_prefix = "Right"
+	}
+};
+
+static const struct snd_soc_acpi_adr_device rt5682_0_adr[] = {
+	{
+		.adr = 0x000021025D568200ull,
+		.num_endpoints = 1,
+		.endpoints = &single_endpoint,
+		.name_prefix = "rt5682"
+	}
+};
+
 static const struct snd_soc_acpi_link_adr adl_rvp[] = {
 	{
 		.mask = BIT(0),
@@ -232,6 +256,20 @@ static const struct snd_soc_acpi_link_adr adl_rvp[] = {
 	{}
 };
 
+static const struct snd_soc_acpi_link_adr adl_chromebook_base[] = {
+	{
+		.mask = BIT(0),
+		.num_adr = ARRAY_SIZE(rt5682_0_adr),
+		.adr_d = rt5682_0_adr,
+	},
+	{
+		.mask = BIT(2),
+		.num_adr = ARRAY_SIZE(mx8373_2_adr),
+		.adr_d = mx8373_2_adr,
+	},
+	{}
+};
+
 static const struct snd_soc_acpi_codecs adl_max98373_amp = {
 	.num_codecs = 1,
 	.codecs = {"MX98373"}
@@ -295,6 +333,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
 		.drv_name = "sof_sdw",
 		.sof_tplg_filename = "sof-adl-rt711.tplg",
 	},
+	{
+		.link_mask = 0x5, /* rt5682 on link0 & 2xmax98373 on link 2 */
+		.links = adl_chromebook_base,
+		.drv_name = "sof_sdw",
+		.sof_fw_filename = "sof-adl.ri",
+		.sof_tplg_filename = "sof-adl-sdw-max98373-rt5682.tplg",
+	},
 	{},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_sdw_machines);

base-commit: aa736700f42fa0813e286ca2f9274ffaa25163b9
-- 
2.31.0


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

* [PATCH 2/2] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload
  2021-05-21 15:56 [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table Kai Vehmanen
@ 2021-05-21 15:56 ` Kai Vehmanen
  2021-05-21 19:37 ` [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Kai Vehmanen @ 2021-05-21 15:56 UTC (permalink / raw)
  To: alsa-devel, broonie
  Cc: cezary.rojewski, kai.vehmanen, Jie Yang, pierre-louis.bossart,
	ranjani.sridharan, Bard Liao, yung-chuan.liao,
	Vamshi Krishna Gopal, Yong Zhi

From: Vamshi Krishna Gopal <vamshi.krishna.gopal@intel.com>

Brya is another ADL-P product.

AlderLake has support for Bluetooth audio offload capability.
Enable the BT-offload quirk for ADL-P Brya and the Intel RVP.

Signed-off-by: Vamshi Krishna Gopal <vamshi.krishna.gopal@intel.com>
Signed-off-by: Yong Zhi <yong.zhi@intel.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
 sound/soc/intel/boards/sof_sdw.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index 0f1ad9e0a53b..dd5d8e6af626 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -199,7 +199,21 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
 		.driver_data = (void *)(SOF_RT711_JD_SRC_JD1 |
 					SOF_SDW_TGL_HDMI |
 					SOF_RT715_DAI_ID_FIX |
-					SOF_SDW_PCH_DMIC),
+					SOF_SDW_PCH_DMIC |
+					SOF_BT_OFFLOAD_SSP(2) |
+					SOF_SSP_BT_OFFLOAD_PRESENT),
+	},
+	{
+		.callback = sof_sdw_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Google"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Brya"),
+		},
+		.driver_data = (void *)(SOF_SDW_TGL_HDMI |
+					SOF_SDW_PCH_DMIC |
+					SOF_SDW_FOUR_SPK |
+					SOF_BT_OFFLOAD_SSP(2) |
+					SOF_SSP_BT_OFFLOAD_PRESENT),
 	},
 	{}
 };
-- 
2.31.0


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

* Re: [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table
  2021-05-21 15:56 [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table Kai Vehmanen
  2021-05-21 15:56 ` [PATCH 2/2] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload Kai Vehmanen
@ 2021-05-21 19:37 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-05-21 19:37 UTC (permalink / raw)
  To: alsa-devel, Kai Vehmanen
  Cc: cezary.rojewski, Jie Yang, ranjani.sridharan,
	pierre-louis.bossart, Mark Brown, Vamshi Krishna Gopal,
	yung-chuan.liao, Bard Liao

On Fri, 21 May 2021 18:56:31 +0300, Kai Vehmanen wrote:
> RT5682 and Max98373 are added with SDW0,SDW2 links respectively.

Applied to

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

Thanks!

[1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table
      commit: c0fbe9fd311a07bd8919e61d412db22e4b08dc43
[2/2] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload
      commit: 03effde3a2ea1d82c4dd6b634fc6174545d2c34f

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:[~2021-05-21 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 15:56 [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table Kai Vehmanen
2021-05-21 15:56 ` [PATCH 2/2] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload Kai Vehmanen
2021-05-21 19:37 ` [PATCH 1/2] ASoC: Intel: common: Add entries for sdw codecs in ADL match table 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.