ASoC: Intel: sof_sdw: Add support for new devices
Subsystems (3)
Bard Liao
maintainercover ASoC: Intel: sof_sdw: Add support for new devices
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(-)
Signature · 1 line
2.43.0
Bard Liao
maintainerPATCH 1/3 ASoC: Intel: sof_sdw: Add lookup of quirk using PCI subsystem ID
From: Richard Fitzgerald <[email protected]>
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.
--- sound/soc/intel/boards/sof_sdw.c | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-)
sound/soc/intel/boards/sof_sdw.c +24 -6
@@ -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;
Signature · 1 line
2.43.0
Bard Liao
maintainerPATCH 2/3 ASoC: Intel: sof_sdw: Add quirk for Asus Zenbook S14
In reply to Bard LiaoFrom: Richard Fitzgerald <[email protected]>
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.
--- sound/soc/intel/boards/sof_sdw.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/boards/sof_sdw.c +1 -0
@@ -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 ), {} };
Signature · 1 line
2.43.0
Bard Liao
maintainerPATCH 3/3 ASoC: Intel: sof_sdw: Add support for Fatcat board with BT offload enabled in PTL platform
In reply to Bard LiaoFrom: Uday M Bhat <[email protected]>
This change adds an entry for fatcat boards in soundwire quirk table and also, enables BT offload for PTL RVP.
--- sound/soc/intel/boards/sof_sdw.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
sound/soc/intel/boards/sof_sdw.c +10 -0
@@ -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), + }, {} };
Signature · 1 line
2.43.0
Mark Brown
maintainerQuoted 11 lines · 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 S14Uday 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: d8989106287d3735c7e7fc6acb3811d62ebb666cAll 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