From: Pierre-Louis Bossart Subject: Re: [PATCH v3 1/2] ASoC: SOF: add flag for position update ipc Date: Wed, 17 Jul 2019 22:35:52 -0500 Message-ID: <94753e7c-931b-2b24-b92b-283e7abbb9ac@linux.intel.com> References: <20190718031113.25040-1-yang.jie@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (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 8ACCFF800C0 for ; Thu, 18 Jul 2019 05:35:55 +0200 (CEST) In-Reply-To: <20190718031113.25040-1-yang.jie@linux.intel.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Keyon Jie , alsa-devel@alsa-project.org Cc: marcin.rajwa@intel.com, Marcin Rajwa , ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com List-Id: alsa-devel@alsa-project.org On 7/17/19 10:11 PM, Keyon Jie wrote: > From: Marcin Rajwa > > In some cases, FW might need to use the host_period_bytes field to > synchronize the DMA copying (with host side) but the driver does not it's your right to edit my suggested wording, but the notion of 'synchronization' is far from clear. it's my understanding that the host_period_bytes defines the DMA transfer size requested by the firmware, which isn't a value that matters to the host except for rewind usages. > need any position information returned over the IPC channel by the > firmware. The current IPC definition prevents this capability, so add > new field. > > Signed-off-by: Marcin Rajwa > Signed-off-by: Keyon Jie > Reviewed-by: Ranjani Sridharan > --- > include/sound/sof/stream.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/sound/sof/stream.h b/include/sound/sof/stream.h > index 643f175cb479..06af4ecb2584 100644 > --- a/include/sound/sof/stream.h > +++ b/include/sound/sof/stream.h > @@ -83,10 +83,10 @@ struct sof_ipc_stream_params { > uint16_t sample_valid_bytes; > uint16_t sample_container_bytes; > > - /* for notifying host period has completed - 0 means no period IRQ */ > uint32_t host_period_bytes; > + uint32_t no_position_ipc; /* 1 means no IPC for position upadte */ typo: update > > - uint32_t reserved[2]; > + uint16_t reserved[3]; > uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */ > } __packed; > >