summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/sst-haswell-ipc.c
diff options
context:
space:
mode:
authorPaweł Piskorski <pawel.piskorski@intel.com>2014-08-01 17:10:43 +0200
committerMark Brown <broonie@linaro.org>2014-08-01 20:11:29 +0200
commitd6e08617cb0fd7e5cd9effa6ba51dd00b06a0cf1 (patch)
treeb16f437dc7f53ed660c615b9a1b64696dee6e778 /sound/soc/intel/sst-haswell-ipc.c
parentASoC: Intel: Don't issue ipc when processing response (diff)
downloadlinux-d6e08617cb0fd7e5cd9effa6ba51dd00b06a0cf1.tar.xz
linux-d6e08617cb0fd7e5cd9effa6ba51dd00b06a0cf1.zip
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 <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>
Diffstat (limited to 'sound/soc/intel/sst-haswell-ipc.c')
-rw-r--r--sound/soc/intel/sst-haswell-ipc.c3
1 files changed, 2 insertions, 1 deletions
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);