From patchwork Fri Aug 1 15:10:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jie, Yang" X-Patchwork-Id: 4663581 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5FA77C0338 for ; Fri, 1 Aug 2014 15:10:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 69CFB201FE for ; Fri, 1 Aug 2014 15:10:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 6D2C1201E4 for ; Fri, 1 Aug 2014 15:10:06 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 78685265545; Fri, 1 Aug 2014 17:10:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 15A4B26551C; Fri, 1 Aug 2014 17:09:58 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 3614D26551C; Fri, 1 Aug 2014 17:09:56 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by alsa0.perex.cz (Postfix) with ESMTP id EE8A0265529 for ; Fri, 1 Aug 2014 17:09:46 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 01 Aug 2014 08:09:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="366747303" Received: from keyon-u1310.sh.intel.com ([10.239.13.105]) by FMSMGA003.fm.intel.com with ESMTP; 01 Aug 2014 08:06:33 -0700 From: Jie Yang To: alsa-devel@alsa-project.org Date: Fri, 1 Aug 2014 23:10:43 +0800 Message-Id: <1406905843-31223-1-git-send-email-yang.jie@intel.com> X-Mailer: git-send-email 1.8.3.2 MIME-Version: 1.0 Cc: mengdong.lin@intel.com, broonie@kernel.org, pawel.piskorski@intel.com, liam.r.girdwood@intel.com Subject: [alsa-devel] [PATCH] ASoC: Intel: update stream only on stream IPC msgs X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pawe? Piskorski 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 --- 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 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);