From: Dave Dillow Subject: Re: Semantics of a single period per buffer? Date: Sun, 25 Nov 2007 15:23:09 -0500 Message-ID: <1196022189.3609.23.camel@obelisk.thedillows.org> References: <1196020698.3609.20.camel@obelisk.thedillows.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by alsa0.perex.cz (Postfix) with ESMTP id 49EF02460D for ; Sun, 25 Nov 2007 21:23:15 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Jaroslav Kysela Cc: ALSA development List-Id: alsa-devel@alsa-project.org On Sun, 2007-11-25 at 21:09 +0100, Jaroslav Kysela wrote: > On Sun, 25 Nov 2007, Dave Dillow wrote: > > > While refining the sis7019 for submission, I found a possible issue with > > having a single period per buffer. The easy way out is to set the > > minimum number of periods to 2, but I see other drivers allow a single > > period. This leads to a question about the semantics of a single period > > that I've not been able to resolve using Google. > > > > Any one have any thoughts or pointers to a discussion on having a single > > period per buffer? Should it be a one-shot play, or just let it hit XRUN > > every time? Other ideas? > > I think, one period buffer can be only useable when XRUN check is disabled > (endless ring buffer playing) and application has own timing and polls for > the actual position in the ring buffer. Thanks for the clarification -- I'll code accordingly.