ASoC: Intel: Atom: Fix message handling during drop stream
authorHarsha Priya <harshapriya.n@intel.com>
Wed, 31 Aug 2016 06:13:05 +0000 (23:13 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 1 Sep 2016 19:52:13 +0000 (20:52 +0100)
If a stream is being dropped, the period_elapsed received then after
need not be processed. Processing of the period_elapsed message causes
a time out in drop stream response processing. This patch adds a condition
to skip period_elapsed message processing if the stream is in INIT state.

Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Signed-off-by: Naveen M <naveen.m@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_ipc.c

index 8afa6fe7b0b0023e7877717bad8bbbcfbcce2ec4..bfc889950bb2964abc4653afdc9cee9bc3bde248 100644 (file)
@@ -267,6 +267,9 @@ static void process_fw_async_msg(struct intel_sst_drv *sst_drv_ctx,
                                "Period elapsed rcvd for pipe id 0x%x\n",
                                pipe_id);
                        stream = &sst_drv_ctx->streams[str_id];
+                       /* If stream is dropped, skip processing this message*/
+                       if (stream->status == STREAM_INIT)
+                               break;
                        if (stream->period_elapsed)
                                stream->period_elapsed(stream->pcm_substream);
                        if (stream->compr_cb)
This page took 0.051458 seconds and 5 git commands to generate.