ASoC: Intel: update stream only on stream IPC msgs
authorPaweł Piskorski <pawel.piskorski@intel.com>
Fri, 1 Aug 2014 15:10:43 +0000 (23:10 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 18:11:29 +0000 (19:11 +0100)
Only update the stream when the IPC message type matches stream type.

Signed-off-by: Paweł Piskorski <pawel.piskorski@intel.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-ipc.c

index ae204a6e316b0476d5a40557409456c804dbc35a..b6291516dbbf5b9b52204dd3cca17f38a0e1a53e 100644 (file)
@@ -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);