From: Takashi Iwai Subject: Re: [PATCH - JACK plugin 4/4] jack: Support snd_pcm_drain() Date: Wed, 21 Mar 2018 17:34:10 +0100 Message-ID: References: <1519910048-19732-1-git-send-email-twischer@de.adit-jv.com> <1519910048-19732-5-git-send-email-twischer@de.adit-jv.com> <3f0f0873-9544-050d-ef69-35d4b23e8c6c@perex.cz> 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 C66702670F8 for ; Wed, 21 Mar 2018 17:34:13 +0100 (CET) In-Reply-To: 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: "Wischer, Timo (ADITG/ESB)" Cc: ALSA development List-Id: alsa-devel@alsa-project.org On Wed, 21 Mar 2018 17:22:27 +0100, Wischer, Timo (ADITG/ESB) wrote: > > Hi Jaroslav and Takashi, > > What do you think about my "ugly" solution? > Should I provide a patch for it or do we want to keep snd_pcm_drain() blocking as all other IO plugins it do? All ioplug plugins should behave equivalently like the real kernel driver, i.e. it should do -EAGAIN. And this check can be done even in snd_pcm_ioplug_drain(), so we can fix all in a shot. thanks, Takashi