From: Takashi Iwai Subject: Re: Driver code with mpc5200 pointer problem. Date: Mon, 04 May 2009 15:34:37 +0200 Message-ID: References: <9e4733910905040529s3376153fj3191295b06e7c7c9@mail.gmail.com> <9e4733910905040558i7f8d9450h8f10ce96f9cf8868@mail.gmail.com> <20090504130039.GM6975@sirena.org.uk> <9e4733910905040622y32532527p477e8a5dd514b060@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id AA3BC243F8 for ; Mon, 4 May 2009 15:34:37 +0200 (CEST) In-Reply-To: <9e4733910905040622y32532527p477e8a5dd514b060@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: Jon Smirl Cc: alsa-devel mailing list , Mark Brown List-Id: alsa-devel@alsa-project.org At Mon, 4 May 2009 09:22:22 -0400, Jon Smirl wrote: > = > On Mon, May 4, 2009 at 9:00 AM, Mark Brown wrote: > > On Mon, May 04, 2009 at 08:58:04AM -0400, Jon Smirl wrote: > >> On Mon, May 4, 2009 at 8:43 AM, Takashi Iwai wrote: > > > >> > Great. ?So can we remove BROKEN kconfig again? > > > >> Sure. There are only two current users of the driver and we know what > >> is going on. > > > > Could you expand on what you mean by "we know what is going on"? =A0If = the > > driver is fixed then there shouldn't really be anything for anyone to > > know, the driver should just work. > > > > I wouldn't count on you being the only users - you may be the only > > people visibly talking about the driver in public but that's not quite > > the same thing as being the only users. > = > With the fix the driver is back to working the way it was before the > jiffies issue completely broke it. > = > But there are still problems in the driver. For example it is not > terminating streams correctly. I get a little burp of sound at the end > of stream that doesn't belong there. > = > I'm trying to fix the burp. How is stream termination supposed to > work? Right now when the driver gets STOP in the trigger function. It > immediately stops the DMA engine and resets the I2S channel. I'm not > clear on how this get synchronized in order to prevent the partial > transfer of a DMA period and allowing the FIFO time to drain. Any time-consuming operation such as sync can be done in prepare callback since it is always called before (re-)triggering START. Takashi