Browse Source

ASoC: Intel: Skylake: Fix to set pipe state to invalid when deleting

When pipeline is deleted, set the pipeline state to invalid state.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Jeeja KP 9 năm trước cách đây
mục cha
commit
d2c7db854e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      sound/soc/intel/skylake/skl-messages.c

+ 2 - 0
sound/soc/intel/skylake/skl-messages.c

@@ -849,6 +849,8 @@ int skl_delete_pipe(struct skl_sst *ctx, struct skl_pipe *pipe)
 		ret = skl_ipc_delete_pipeline(&ctx->ipc, pipe->ppl_id);
 		if (ret < 0)
 			dev_err(ctx->dev, "Failed to delete pipeline\n");
+
+		pipe->state = SKL_PIPE_INVALID;
 	}
 
 	return ret;