Skip to content

Commit

Permalink
ASoC: SOF: Intel: hda: use machine_check() for SoundWire
Browse files Browse the repository at this point in the history
Use the new machine_check() callback to select an alternate topology
for RT712-VB devices.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart authored and bardliao committed Oct 15, 2024
1 parent 7bb6fca commit 2e6038a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/sof/intel/hda.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e6038a

Please sign in to comment.