ASoC: SOF: loader: Call optional query_fw_configuration on first boot
Execute the firmware information query on the first boot if it is available. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20220425221129.124615-11-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
910bd536d3
commit
1dd4b999da
|
@ -175,6 +175,9 @@ int snd_sof_run_firmware(struct snd_sof_dev *sdev)
|
|||
dev_dbg(sdev->dev, "firmware boot complete\n");
|
||||
sof_set_fw_state(sdev, SOF_FW_BOOT_COMPLETE);
|
||||
|
||||
if (sdev->first_boot && sdev->ipc->ops->fw_loader->query_fw_configuration)
|
||||
return sdev->ipc->ops->fw_loader->query_fw_configuration(sdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(snd_sof_run_firmware);
|
||||
|
|
Loading…
Reference in New Issue