From: Keyon Jie Subject: [PATCH v3 2/2] ASoC: SOF: Intel: fix reset of host_period_bytes Date: Thu, 18 Jul 2019 11:11:13 +0800 Message-ID: <20190718031113.25040-2-yang.jie@linux.intel.com> References: <20190718031113.25040-1-yang.jie@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E16E0F800C4 for ; Thu, 18 Jul 2019 05:05:53 +0200 (CEST) In-Reply-To: <20190718031113.25040-1-yang.jie@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: alsa-devel@alsa-project.org Cc: kai.vehmanen@linux.intel.com, Marcin Rajwa , marcin.rajwa@intel.com, Keyon Jie , ranjani.sridharan@linux.intel.com, pierre-louis.bossart@linux.intel.com List-Id: alsa-devel@alsa-project.org From: Marcin Rajwa This patch prevents the reset of host period bytes. The parameter has been used to keep information about completion of period copy. Right now we keep this information in no_position_ipc. Signed-off-by: Marcin Rajwa Signed-off-by: Keyon Jie Reviewed-by: Ranjani Sridharan Reviewed-by: Kai Vehmanen --- sound/soc/sof/intel/hda-pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/intel/hda-pcm.c b/sound/soc/sof/intel/hda-pcm.c index 9b730f183529..956407cf59ea 100644 --- a/sound/soc/sof/intel/hda-pcm.c +++ b/sound/soc/sof/intel/hda-pcm.c @@ -116,9 +116,9 @@ int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev, /* disable SPIB, to enable buffer wrap for stream */ hda_dsp_stream_spib_config(sdev, stream, HDA_DSP_SPIB_DISABLE, 0); - /* set host_period_bytes to 0 if no IPC position */ + /* update no_position_ipc flag for ipc params */ if (hda && hda->no_ipc_position) - ipc_params->host_period_bytes = 0; + ipc_params->no_position_ipc = 1; ipc_params->stream_tag = hstream->stream_tag; -- 2.20.1