|
@@ -351,6 +351,8 @@ int skl_dsp_get_core(struct sst_dsp *ctx, unsigned int core_id)
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
+ skl->cores.usage_count[core_id]++;
|
|
|
+
|
|
|
if (skl->cores.state[core_id] == SKL_DSP_RESET) {
|
|
|
ret = ctx->fw_ops.set_state_D0(ctx, core_id);
|
|
|
if (ret < 0) {
|
|
@@ -359,8 +361,6 @@ int skl_dsp_get_core(struct sst_dsp *ctx, unsigned int core_id)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- skl->cores.usage_count[core_id]++;
|
|
|
-
|
|
|
out:
|
|
|
dev_dbg(ctx->dev, "core id %d state %d usage_count %d\n",
|
|
|
core_id, skl->cores.state[core_id],
|