From: Paweł Piskorski Date: Fri, 1 Aug 2014 15:10:43 +0000 (+0800) Subject: ASoC: Intel: update stream only on stream IPC msgs X-Git-Tag: firefly_0821_release~176^2~3158^2~37^2~7^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d6e08617cb0fd7e5cd9effa6ba51dd00b06a0cf1;p=firefly-linux-kernel-4.4.55.git ASoC: Intel: update stream only on stream IPC msgs Only update the stream when the IPC message type matches stream type. Signed-off-by: Paweł Piskorski Signed-off-by: Liam Girdwood Signed-off-by: Jie Yang Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c index ae204a6e316b..b6291516dbbf 100644 --- a/sound/soc/intel/sst-haswell-ipc.c +++ b/sound/soc/intel/sst-haswell-ipc.c @@ -782,7 +782,8 @@ static int hsw_process_reply(struct sst_hsw *hsw, u32 header) } /* update any stream states */ - hsw_stream_update(hsw, msg); + if (msg_get_global_type(header) == IPC_GLB_STREAM_MESSAGE) + hsw_stream_update(hsw, msg); /* wake up and return the error if we have waiters on this message ? */ list_del(&msg->list);