From: Vijendar Mukunda Date: Tue, 9 Jun 2026 14:32:12 +0000 (+0530) Subject: ASoC: amd: ps: honor machine_check in SoundWire machine select X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a980535929de948c5593515fe4b3c4d7d9c60498;p=thirdparty%2Fkernel%2Flinux.git ASoC: amd: ps: honor machine_check in SoundWire machine select Only accept an ACPI machine table entry when machine_check is absent or returns true, matching other AMD SoundWire machine select paths. Signed-off-by: Vijendar Mukunda Link: https://patch.msgid.link/20260609143230.3310356-1-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/amd/ps/pci-ps.c b/sound/soc/amd/ps/pci-ps.c index 9751cf0784a6d..4ecda224157b5 100644 --- a/sound/soc/amd/ps/pci-ps.c +++ b/sound/soc/amd/ps/pci-ps.c @@ -329,7 +329,8 @@ static struct snd_soc_acpi_mach *acp63_sdw_machine_select(struct device *dev) break; } if (i == acp_data->info.count || !link->num_adr) - break; + if (!mach->machine_check || mach->machine_check(acp_data->sdw)) + break; } if (mach && mach->link_mask) { mach->mach_params.links = mach->links;