From 2e6038a1d3777d158ac1923dd0004761bc71df09 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Wed, 15 May 2024 11:26:45 -0500 Subject: [PATCH] ASoC: SOF: Intel: hda: use machine_check() for SoundWire Use the new machine_check() callback to select an alternate topology for RT712-VB devices. Signed-off-by: Pierre-Louis Bossart --- sound/soc/sof/intel/hda.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index bab30cf1e7ea24..01b135068b1f80 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -1130,7 +1130,8 @@ static struct snd_soc_acpi_mach *hda_sdw_machine_select(struct snd_sof_dev *sdev } /* Found if all Slaves are checked */ if (i == hdev->info.count || !link->num_adr) - break; + if (!mach->machine_check || mach->machine_check(hdev->sdw)) + break; } if (mach && mach->link_mask) { mach->mach_params.links = mach->links;