Skip to content

Commit

Permalink
ASoC: Intel: update stream only on stream IPC msgs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paweł Piskorski authored and Mark Brown committed Aug 1, 2014
1 parent 94ce334 commit d6e0861
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/intel/sst-haswell-ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d6e0861

Please sign in to comment.