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 <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>
  • Loading branch information
Pierre-Louis Bossart authored and Mark Brown committed Oct 17, 2024
1 parent 5703ab8 commit e92edcf
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 @@ -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;
Expand Down

0 comments on commit e92edcf

Please sign in to comment.