From: Takashi Iwai Subject: Re: Driver code with mpc5200 pointer problem. Date: Tue, 28 Apr 2009 08:08:06 +0200 Message-ID: References: <9e4733910904270650g204d2660y7e3b9ea03446a752@mail.gmail.com> <20090427135737.GA20591@sirena.org.uk> <9e4733910904270702w317c8c62vbee38230979ad121@mail.gmail.com> <20090427140554.GB20591@sirena.org.uk> <9e4733910904270716v289e6d5exaf6e17331786ea11@mail.gmail.com> <20090427142437.GF20591@sirena.org.uk> <9e4733910904270742l751e660bg66844b98fe261f23@mail.gmail.com> <9e4733910904270804k6ed079d4h16b433b6f8a06fc7@mail.gmail.com> <20090427151512.GI20591@sirena.org.uk> 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 (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 02C2524461 for ; Tue, 28 Apr 2009 08:08:07 +0200 (CEST) In-Reply-To: <20090427151512.GI20591@sirena.org.uk> 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: Mark Brown Cc: alsa-devel mailing list List-Id: alsa-devel@alsa-project.org At Mon, 27 Apr 2009 16:15:12 +0100, Mark Brown wrote: > > On Mon, Apr 27, 2009 at 05:09:27PM +0200, Jaroslav Kysela wrote: > > > Appearently, FIFO is too big. I'm working on some changes to take account > > fifo_size to the jiffies based check. Please, set fifo_size correctly in > > your driver. USB drivers with big "URB FIFOs" should be changed as well, > > too. > > Could you expand a bit on what qualifies as "too big" here? I've not > been following the thread here or the changes that caused problems. It's bigger than the pre-defined tolerance of jiffies check in PCM core code. The new PCM core checks the returned hw_ptr together with jiffies delta whether it's a sane value. When FIFO is used with the ring buffer, the hardware tends to report back earlier before the expected timing. Takashi