From: Takashi Iwai Subject: Re: Driver code with mpc5200 pointer problem. Date: Mon, 27 Apr 2009 16:47:37 +0200 Message-ID: References: <9e4733910904260825o68d5b9dndbf92cdbc4a4e48e@mail.gmail.com> <9e4733910904261114u20e8376ci26a13a5210a4aa0b@mail.gmail.com> <20090427092514.GB1760@sirena.org.uk> <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> 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 AFD591038D2 for ; Mon, 27 Apr 2009 16:47:37 +0200 (CEST) In-Reply-To: <9e4733910904270742l751e660bg66844b98fe261f23@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, 27 Apr 2009 10:42:10 -0400, Jon Smirl wrote: > = > On Mon, Apr 27, 2009 at 10:24 AM, Mark Brown wrot= e: > > On Mon, Apr 27, 2009 at 10:16:16AM -0400, Jon Smirl wrote: > >> On Mon, Apr 27, 2009 at 10:05 AM, Mark Brown w= rote: > > > >> > It's a fairly hefty change for -rc4. ?From the sounds of it you just > >> > need to add the constraint? > > > >> it is also broken because of the additional requirement of needing to > >> estimate the current position of the DMA transfer. The changes in > >> pcm_lib.c have made it non-functional. =A0When I went into fix those > >> problems I found a couple more issues. =A0It's ok for i2s to be broken > >> in this release, Grant and I both know it is broken and won't ship > >> anything based on it. > > > > Well, if you don't see any need to fix it then I guess that's OK. =A0We > > should probably disable the Kconfig option for the release in case > > people try to use the driver, though. > = > I'll add a patch setting Kconfig BROKEN. Is it ok to do the reorg > after flagging it BROKEN? > = > > > >> The pcm_lib.c changes may have broken other embedded drivers too. =A0A= nd > > > > I see no reason to suspect that embedded drivers will be any more or > > less affected than any other ALSA driver? > = > The way I'm looking at the code, any CPU hardware that can't report > the position of a partially complete DMA transfer is probably broken. > Is the mpc5200 the only CPU that doesn't support this? Well, the following three are completely different things: A. the driver doesn't report the current DMA position B. the driver reports the wrong DMA position C. the driver calls snd_pcm_period_elapsed() at wrong timing AFAIK, the problem with mpc5200 is either B or C. It's not about A. Takashi