Skip to content

Commit 2e6038a

Browse files
plbossartbardliao
authored andcommitted
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 <pierre-louis.bossart@linux.intel.com>
1 parent 7bb6fca commit 2e6038a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sound/soc/sof/intel/hda.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,8 @@ static struct snd_soc_acpi_mach *hda_sdw_machine_select(struct snd_sof_dev *sdev
11301130
}
11311131
/* Found if all Slaves are checked */
11321132
if (i == hdev->info.count || !link->num_adr)
1133-
break;
1133+
if (!mach->machine_check || mach->machine_check(hdev->sdw))
1134+
break;
11341135
}
11351136
if (mach && mach->link_mask) {
11361137
mach->mach_params.links = mach->links;

0 commit comments

Comments
 (0)