From: Jeeja KP Date: Fri, 18 Dec 2015 09:41:58 +0000 (+0530) Subject: ASoC: Intel: Skylake: Fix to set pipe state to invalid when deleting X-Git-Tag: v4.5-rc1~80^2~26^2~1^2~6^4~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d2c7db854ed07548ca7d01118eee67fd6a78a2be;p=karo-tx-linux.git 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 Signed-off-by: Vinod Koul Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c index 46310d9ac008..de6dac496a0d 100644 --- a/sound/soc/intel/skylake/skl-messages.c +++ b/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;