From: Takashi Iwai Subject: Re: Buffering issues 2 Date: Sun, 04 May 2008 08:59:37 +0200 Message-ID: References: <20080424011833.GA28905@tango.0pointer.de> <75b66ecd0805031812o30684484u8cf99729467ffe30@mail.gmail.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 mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 4CA7624442 for ; Sun, 4 May 2008 08:59:38 +0200 (CEST) In-Reply-To: <75b66ecd0805031812o30684484u8cf99729467ffe30@mail.gmail.com> 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: Lee Revell Cc: ALSA Development Mailing List List-Id: alsa-devel@alsa-project.org At Sat, 3 May 2008 21:12:19 -0400, Lee Revell wrote: > > On Wed, Apr 23, 2008 at 9:18 PM, Lennart Poettering wrote: > > The happens to be configured to 2 periods. So even if _avail_update() > > has some kind of period granularity (?) it should always have told us > > after we come back from the sleeping that at least *one* period is > > free. But it said 0 frames. Nada. Rien. Nichts. Kaputt. > > Should we just disallow 2 periods per buffer on HDA intel? I've never > heard of it working for anyone on the JACK and linux audio user lists > with less than 3. It's actually not the number of periods. The fact is that the DMA position is somehow inaacurate on HD-audio hardwares. This should be fixed instead of a workaround. Setting the periods to 3 doesn't assure that any apps works. (For JACK, a different position_fix would work, but this may cause another problem with dmix, etc, BTW.) The similar side-effect is found on other drivers which typically use timer-like IRQs. Takashi