From: Takashi Iwai Subject: Re: [PATCH - dmix v5 1/1] pcm: dmix: Add option to allow alignment of slave pointers Date: Tue, 13 Nov 2018 15:23:31 +0100 Message-ID: References: <1542094980-9389-1-git-send-email-twischer@de.adit-jv.com> <1542094980-9389-2-git-send-email-twischer@de.adit-jv.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E0778267865 for ; Tue, 13 Nov 2018 15:23:33 +0100 (CET) In-Reply-To: <1542094980-9389-2-git-send-email-twischer@de.adit-jv.com> 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 To: twischer@de.adit-jv.com Cc: Laxmi Devi , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Tue, 13 Nov 2018 08:43:00 +0100, wrote: > > From: Laxmi Devi > > These changes are required due to the kernel > commit 07b7acb51d283d8469696c906b91f1882696a4d4 > ("ASoC: rsnd: update pointer more accurate") > > Issue is that snd_pcm_wait() goes back to waiting because the hw_ptr > is not period aligned. Therefore snd_pcm_wait() will block for a longer > time as required. > > With these rcar driver changes the exact position of the dma is returned. > During snd_pcm_start they read hw_ptr as reference, and this hw_ptr > is now not period aligned, and is a little ahead over the period while it > is read. Therefore when the avail is calculated during snd_pcm_wait(), > it is missing the avail_min by a few frames. > > An additional option hw_ptr_alignment is provided to dmix configuration, > to allow the user to configure the slave application and hw pointer > alignment at startup > > > Signed-off-by: Laxmi Devi > Signed-off-by: Timo Wischer Thanks, applied now with minor fixes (mostly spaces and line breaks). Takashi