From: Takashi Iwai Subject: Re: [PATCH] ALSA: pcm: Revert capture stream behavior change in blocking mode Date: Fri, 08 Feb 2019 19:56:27 +0100 Message-ID: References: <20190208174612.GA838@localhost.localdomain> 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 135E1267A12 for ; Fri, 8 Feb 2019 19:56:27 +0100 (CET) In-Reply-To: <20190208174612.GA838@localhost.localdomain> 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: Ricardo Biehl Pasquali Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Fri, 08 Feb 2019 18:46:12 +0100, Ricardo Biehl Pasquali wrote: > > Takashi Iwai wrote: > > e.g. one thread goes to a write loop in blocking mode while another > > thread controls the start/stop of the stream manually. > > You meant a read loop. Agreed. > > What about adding a comment like: > > /* > * If size < start_threshold, wait indefinitely. Another > * thread may start capture > */ > > So no one will bring this idea again. Yes, more comment might be helpful. Feel free to submit a patch to add that. thanks, Takashi