Commit 0bdd6d8b authored by Vinod Koul's avatar Vinod Koul Committed by Mark Brown

ASoC: Intel: Bxt: Parse UUIDs once

The firmware manifest contains UUIDs which needs to be passed only once.

So use the newly introduced is_first_boot flag to distinguish and parse
these only once on bxt platform as well.
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e280823c
...@@ -175,9 +175,12 @@ static int bxt_load_base_firmware(struct sst_dsp *ctx) ...@@ -175,9 +175,12 @@ static int bxt_load_base_firmware(struct sst_dsp *ctx)
if (ctx->fw == NULL) if (ctx->fw == NULL)
goto sst_load_base_firmware_failed; goto sst_load_base_firmware_failed;
/* prase uuids on first boot */
if (skl->is_first_boot) {
ret = snd_skl_parse_uuids(ctx, ctx->fw, BXT_ADSP_FW_BIN_HDR_OFFSET, 0); ret = snd_skl_parse_uuids(ctx, ctx->fw, BXT_ADSP_FW_BIN_HDR_OFFSET, 0);
if (ret < 0) if (ret < 0)
goto sst_load_base_firmware_failed; goto sst_load_base_firmware_failed;
}
stripped_fw.data = ctx->fw->data; stripped_fw.data = ctx->fw->data;
stripped_fw.size = ctx->fw->size; stripped_fw.size = ctx->fw->size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment