diff mbox

ASoC: Intel: update stream only on stream IPC msgs

Message ID 1406905843-31223-1-git-send-email-yang.jie@intel.com (mailing list archive)
State Accepted
Commit d6e08617cb0fd7e5cd9effa6ba51dd00b06a0cf1
Headers show

Commit Message

Jie, Yang Aug. 1, 2014, 3:10 p.m. UTC
From: Pawe? Piskorski <pawel.piskorski@intel.com>

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>
---
 sound/soc/intel/sst-haswell-ipc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Mark Brown Aug. 1, 2014, 6:13 p.m. UTC | #1
On Fri, Aug 01, 2014 at 11:10:43PM +0800, Jie Yang wrote:
> From: Pawe? Piskorski <pawel.piskorski@intel.com>
> 
> Only update the stream when the IPC message type matches stream type.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index 0fec686..da27f90 100644
--- a/sound/soc/intel/sst-haswell-ipc.c
+++ b/sound/soc/intel/sst-haswell-ipc.c
@@ -780,7 +780,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);