From d6e08617cb0fd7e5cd9effa6ba51dd00b06a0cf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Piskorski?= Date: Fri, 1 Aug 2014 23:10:43 +0800 Subject: [PATCH] ASoC: Intel: update stream only on stream IPC msgs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- sound/soc/intel/sst-haswell-ipc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.34.1