From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH - JACK plugin 4/4] jack: Support snd_pcm_drain() Date: Wed, 21 Mar 2018 18:07:32 +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 96D2F267282 for ; Wed, 21 Mar 2018 18:07:33 +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 18:02:18 +0100, Wischer, Timo (ADITG/ESB) wrote: > > >It means that the pulse plugin is buggy. And fixing in ioplug will > > fix the whole. > > Possibly it is to late but I have no idea how to change the IO plug API implementation that draining of all IO plugins is working > without changing the IO plugins it self. > When ever I am calling the drain callback of an IO plugin it is blocking > but I have to call it to signal to the IO plugin that I want to drain. Why not poll()? IOW, why ioplug must be handled specially regarding the non-blocking operation? The normal kernel driver behaves like that (returning -EAGAIN, and let apps to sync with poll()). Takashi