Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices
@ 2025-02-04  5:39 Bard Liao
  2025-02-04  5:39 ` [PATCH 1/3] ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID Bard Liao
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bard Liao @ 2025-02-04  5:39 UTC (permalink / raw)
  To: broonie, tiwai; +Cc: linux-sound, pierre-louis.bossart, bard.liao

This patch series adds support for Asus Zenbook S14 and Fatcat board.

Richard Fitzgerald (2):
  ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID
  ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14

Uday M Bhat (1):
  ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload
    enabled in PTL platform

 sound/soc/intel/boards/sof_sdw.c | 41 +++++++++++++++++++++++++++-----
 1 file changed, 35 insertions(+), 6 deletions(-)

-- 
2.43.0


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

* [PATCH 1/3] ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID
  2025-02-04  5:39 [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Bard Liao
@ 2025-02-04  5:39 ` Bard Liao
  2025-02-04  5:39 ` [PATCH 2/3] ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14 Bard Liao
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Bard Liao @ 2025-02-04  5:39 UTC (permalink / raw)
  To: broonie, tiwai; +Cc: linux-sound, pierre-louis.bossart, bard.liao

From: Richard Fitzgerald <rf@opensource.cirrus.com>

Add lookup of PCI subsystem vendor:device ID to find a quirk.

The subsystem ID (SSID) is part of the PCI specification to uniquely
identify a particular system-specific implementation of a hardware
device.

Unlike DMI information, it identifies the sound hardware itself, rather
than a specific model of PC. SSID can be more reliable and stable than
DMI strings, and is preferred by some vendors as the way to identify
the actual sound hardware.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 sound/soc/intel/boards/sof_sdw.c | 30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index b0d35fda7b17..381fae5943fe 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -13,6 +13,7 @@
 #include <linux/soundwire/sdw.h>
 #include <linux/soundwire/sdw_type.h>
 #include <linux/soundwire/sdw_intel.h>
+#include <sound/core.h>
 #include <sound/soc-acpi.h>
 #include "sof_sdw_common.h"
 #include "../../codecs/rt711.h"
@@ -751,6 +752,22 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
 	{}
 };
 
+static const struct snd_pci_quirk sof_sdw_ssid_quirk_table[] = {
+	{}
+};
+
+static void sof_sdw_check_ssid_quirk(const struct snd_soc_acpi_mach *mach)
+{
+	const struct snd_pci_quirk *quirk_entry;
+
+	quirk_entry = snd_pci_quirk_lookup_id(mach->mach_params.subsystem_vendor,
+					      mach->mach_params.subsystem_device,
+					      sof_sdw_ssid_quirk_table);
+
+	if (quirk_entry)
+		sof_sdw_quirk = quirk_entry->value;
+}
+
 static struct snd_soc_dai_link_component platform_component[] = {
 	{
 		/* name might be overridden during probe */
@@ -1278,6 +1295,13 @@ static int mc_probe(struct platform_device *pdev)
 
 	snd_soc_card_set_drvdata(card, ctx);
 
+	if (mach->mach_params.subsystem_id_set) {
+		snd_soc_card_set_pci_ssid(card,
+					  mach->mach_params.subsystem_vendor,
+					  mach->mach_params.subsystem_device);
+		sof_sdw_check_ssid_quirk(mach);
+	}
+
 	dmi_check_system(sof_sdw_quirk_table);
 
 	if (quirk_override != -1) {
@@ -1293,12 +1317,6 @@ static int mc_probe(struct platform_device *pdev)
 	for (i = 0; i < ctx->codec_info_list_count; i++)
 		codec_info_list[i].amp_num = 0;
 
-	if (mach->mach_params.subsystem_id_set) {
-		snd_soc_card_set_pci_ssid(card,
-					  mach->mach_params.subsystem_vendor,
-					  mach->mach_params.subsystem_device);
-	}
-
 	ret = sof_card_dai_links_create(card);
 	if (ret < 0)
 		return ret;
-- 
2.43.0


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

* [PATCH 2/3] ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14
  2025-02-04  5:39 [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Bard Liao
  2025-02-04  5:39 ` [PATCH 1/3] ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID Bard Liao
@ 2025-02-04  5:39 ` Bard Liao
  2025-02-04  5:39 ` [PATCH 3/3] ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload enabled in PTL platform Bard Liao
  2025-02-06 17:30 ` [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Bard Liao @ 2025-02-04  5:39 UTC (permalink / raw)
  To: broonie, tiwai; +Cc: linux-sound, pierre-louis.bossart, bard.liao

From: Richard Fitzgerald <rf@opensource.cirrus.com>

Asus laptops with sound PCI subsystem ID 1043:1e13 have the DMICs
connected to the host instead of the CS42L43 so need the
SOC_SDW_CODEC_MIC quirk.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 sound/soc/intel/boards/sof_sdw.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index 381fae5943fe..683e15b459a1 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -753,6 +753,7 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
 };
 
 static const struct snd_pci_quirk sof_sdw_ssid_quirk_table[] = {
+	SND_PCI_QUIRK(0x1043, 0x1e13, "ASUS Zenbook S14", SOC_SDW_CODEC_MIC),
 	{}
 };
 
-- 
2.43.0


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

* [PATCH 3/3] ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload enabled in PTL platform
  2025-02-04  5:39 [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Bard Liao
  2025-02-04  5:39 ` [PATCH 1/3] ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID Bard Liao
  2025-02-04  5:39 ` [PATCH 2/3] ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14 Bard Liao
@ 2025-02-04  5:39 ` Bard Liao
  2025-02-06 17:30 ` [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Bard Liao @ 2025-02-04  5:39 UTC (permalink / raw)
  To: broonie, tiwai; +Cc: linux-sound, pierre-louis.bossart, bard.liao

From: Uday M Bhat <uday.m.bhat@intel.com>

    This change adds an entry for fatcat boards in soundwire quirk table
    and also, enables BT offload for PTL RVP.

Signed-off-by: Uday M Bhat <uday.m.bhat@intel.com>
Signed-off-by: Jairaj Arava <jairaj.arava@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 sound/soc/intel/boards/sof_sdw.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index 683e15b459a1..203b07d4d833 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -749,6 +749,16 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
 		},
 		.driver_data = (void *)(SOC_SDW_PCH_DMIC),
 	},
+	{
+		.callback = sof_sdw_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Google"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Fatcat"),
+		},
+		.driver_data = (void *)(SOC_SDW_PCH_DMIC |
+					SOF_BT_OFFLOAD_SSP(2) |
+					SOF_SSP_BT_OFFLOAD_PRESENT),
+	},
 	{}
 };
 
-- 
2.43.0


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

* Re: [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices
  2025-02-04  5:39 [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Bard Liao
                   ` (2 preceding siblings ...)
  2025-02-04  5:39 ` [PATCH 3/3] ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload enabled in PTL platform Bard Liao
@ 2025-02-06 17:30 ` Mark Brown
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2025-02-06 17:30 UTC (permalink / raw)
  To: tiwai, Bard Liao; +Cc: linux-sound, pierre-louis.bossart, bard.liao

On Tue, 04 Feb 2025 13:39:40 +0800, Bard Liao wrote:
> This patch series adds support for Asus Zenbook S14 and Fatcat board.
> 
> Richard Fitzgerald (2):
>   ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID
>   ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14
> 
> Uday M Bhat (1):
>   ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload
>     enabled in PTL platform
> 
> [...]

Applied to

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

Thanks!

[1/3] ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID
      commit: fc016ef7da64fd473d73ee6c261ba1b0b47afe2b
[2/3] ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14
      commit: 0843449708085c4fb45a3c325c2fbced556f6abf
[3/3] ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload enabled in PTL platform
      commit: d8989106287d3735c7e7fc6acb3811d62ebb666c

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:[~2025-02-06 17:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04  5:39 [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Bard Liao
2025-02-04  5:39 ` [PATCH 1/3] ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID Bard Liao
2025-02-04  5:39 ` [PATCH 2/3] ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14 Bard Liao
2025-02-04  5:39 ` [PATCH 3/3] ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload enabled in PTL platform Bard Liao
2025-02-06 17:30 ` [PATCH 0/3] ASoC: Intel: sof_sdw: Add support for new devices Mark Brown

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