]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: amd: amd_sdw: Propagate the PCI subsystem Vendor and Device IDs
authorSimon Trimmer <simont@opensource.cirrus.com>
Thu, 16 Oct 2025 15:06:49 +0000 (15:06 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 20 Oct 2025 01:39:24 +0000 (02:39 +0100)
Extend the ACP SoundWire legacy machine driver to propagate the PCI
subsystem Vendor and Device IDs so that they may be used by component
drivers for SKU specific variation.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Link: https://patch.msgid.link/20251016150649.320277-3-simont@opensource.cirrus.com
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-sdw-legacy-mach.c

index 5a3cfedacbafd43c9ca2da077060968a1f504992..54f823f7cecffd14c18877e98b96940f83d8a1d5 100644 (file)
@@ -463,6 +463,10 @@ static int mc_probe(struct platform_device *pdev)
        card->late_probe = asoc_sdw_card_late_probe;
 
        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);
 
        dmi_check_system(soc_sdw_quirk_table);