From: Peter Ujfalusi Date: Mon, 25 Apr 2022 22:11:29 +0000 (-0700) Subject: ASoC: SOF: loader: Call optional query_fw_configuration on first boot X-Git-Tag: v6.1-rc5~574^2~68^2~74^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dd4b999dad2d8b8fce257e4c3c3d334a709c933;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Bard Liao Reviewed-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Signed-off-by: Ranjani Sridharan Link: https://lore.kernel.org/r/20220425221129.124615-11-ranjani.sridharan@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/loader.c b/sound/soc/sof/loader.c index 8672dcc..5f51d93 100644 --- a/sound/soc/sof/loader.c +++ b/sound/soc/sof/loader.c @@ -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);