Skip to content

Commit e92edcf

Browse files
plbossartbroonie
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> 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>
1 parent 5703ab8 commit e92edcf

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
@@ -1124,7 +1124,8 @@ static struct snd_soc_acpi_mach *hda_sdw_machine_select(struct snd_sof_dev *sdev
11241124
}
11251125
/* Found if all Slaves are checked */
11261126
if (i == hdev->info.count || !link->num_adr)
1127-
break;
1127+
if (!mach->machine_check || mach->machine_check(hdev->sdw))
1128+
break;
11281129
}
11291130
if (mach && mach->link_mask) {
11301131
mach->mach_params.links = mach->links;

0 commit comments

Comments
 (0)