From: Pierre-Louis Bossart Date: Wed, 16 Oct 2024 10:23:33 +0000 (+0800) Subject: ASoC: SOF: Intel: hda: use machine_check() for SoundWire X-Git-Tag: v6.13-rc1~123^2~2^2~80^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e92edcf8023d425c7abcf1d7abb5dcac53d106f5;p=thirdparty%2Flinux.git 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 Reviewed-by: Péter Ujfalusi Signed-off-by: Bard Liao Link: https://patch.msgid.link/20241016102333.294448-12-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index 9abc4c071ae52..38921c0db84ee 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -1124,7 +1124,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;