From: Takashi Iwai Subject: Re: [PATCH - JACK 1/1] jack: Report Xruns to user application Date: Fri, 16 Mar 2018 15:41:21 +0100 Message-ID: References: <1519910048-19732-4-git-send-email-twischer@de.adit-jv.com> <1521210212-30923-1-git-send-email-twischer@de.adit-jv.com> <1521210212-30923-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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6BDCB267505 for ; Fri, 16 Mar 2018 15:41:21 +0100 (CET) In-Reply-To: <1521210212-30923-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: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Fri, 16 Mar 2018 15:23:32 +0100, wrote: > > From: Timo Wischer > > Only increasing the hw_ptr is not sufficient > because it will not be evaluated by the ALSA library > to detect an Xrun. > > In addition there is a raise where an Xrun detected by the JACK thread > could not be detected in the ALSA thread. > - In playback use case > - The hw_ptr will be increased by the JACK thread > (hw_ptr > appl_ptr => Xrun) > - But the ALSA thread increases the appl_ptr before evaluating the > hw_ptr > - Therefore the hw_ptr < appl_ptr again > - ALSA will not detect the Xrun which was already detected by the > JACK thread > > Therefore an additional variable is required to report an Xrun from the > JACK thread to ALSA. > > Signed-off-by: Timo Wischer Thanks, I applied it now. But, at the next time you send a patchset, please don't continue from the old thread. It's pretty confusing. Takashi