Use the new machine_check() callback to select an alternate topology
for RT712-VB devices.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20241016102333.294448-12-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
 
                }
                /* 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;