From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Subject: Re: [PATCH V4 2/5] Main rewite of the mpc5200 audio DMA code Date: Tue, 26 May 2009 12:08:01 -0500 Message-ID: References: <20090525221406.21370.30326.stgit@terra> <20090525221509.21370.70182.stgit@terra> <20090526110120.GA8969@sirena.org.uk> <9e4733910905260953i6337f8a9xc3cd1ff490cd3540@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.144]) by alsa0.perex.cz (Postfix) with ESMTP id 558571038EB for ; Tue, 26 May 2009 19:08:03 +0200 (CEST) Received: by qw-out-1920.google.com with SMTP id 4so2139732qwk.56 for ; Tue, 26 May 2009 10:08:02 -0700 (PDT) In-Reply-To: <9e4733910905260953i6337f8a9xc3cd1ff490cd3540@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: Grant Likely , linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org, Mark Brown List-Id: alsa-devel@alsa-project.org On Tue, May 26, 2009 at 11:53 AM, Jon Smirl wrote: > Put in the V5 version this one has this in the h file: > > -int psc_dma_trigger(struct snd_pcm_substream *substream, int cmd, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0struct snd_soc_dai *= dai); > +/* whack this after Timur's patch is merged in to > arch/powerpc/include/asm/delay.h */ > +#define spin_event_timeout(condition, timeout, delay, rc) =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 \ > +{ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 \ > + =A0 =A0 =A0 unsigned long __loops =3D tb_ticks_per_usec * timeout; =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 unsigned long __start =3D get_tbl(); =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 while ((rc =3D (condition)) && (tb_ticks_since(__start) <= =3D __loops)) \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (delay) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 udelay(delay); =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 else =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 cpu_relax(); =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > +} > +/* whack this after Timur's patch is merged in to > arch/powerpc/include/asm/delay.h */ It won't be that simple. V9 of my patch changes the number of parameters, so not only will you need to whack this copy of the macro, you'll also need to change the callers. -- = Timur Tabi Linux kernel developer at Freescale From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by ozlabs.org (Postfix) with ESMTP id 8A12CDDFC7 for ; Wed, 27 May 2009 03:08:04 +1000 (EST) Received: by qw-out-2122.google.com with SMTP id 3so2055648qwe.15 for ; Tue, 26 May 2009 10:08:02 -0700 (PDT) MIME-Version: 1.0 Sender: timur.tabi@gmail.com In-Reply-To: <9e4733910905260953i6337f8a9xc3cd1ff490cd3540@mail.gmail.com> References: <20090525221406.21370.30326.stgit@terra> <20090525221509.21370.70182.stgit@terra> <20090526110120.GA8969@sirena.org.uk> <9e4733910905260953i6337f8a9xc3cd1ff490cd3540@mail.gmail.com> Date: Tue, 26 May 2009 12:08:01 -0500 Message-ID: Subject: Re: [alsa-devel] [PATCH V4 2/5] Main rewite of the mpc5200 audio DMA code From: Timur Tabi To: Jon Smirl Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@ozlabs.org, alsa-devel@alsa-project.org, Mark Brown List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, May 26, 2009 at 11:53 AM, Jon Smirl wrote: > Put in the V5 version this one has this in the h file: > > -int psc_dma_trigger(struct snd_pcm_substream *substream, int cmd, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0struct snd_soc_dai *= dai); > +/* whack this after Timur's patch is merged in to > arch/powerpc/include/asm/delay.h */ > +#define spin_event_timeout(condition, timeout, delay, rc) =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 \ > +{ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 \ > + =A0 =A0 =A0 unsigned long __loops =3D tb_ticks_per_usec * timeout; =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 unsigned long __start =3D get_tbl(); =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 while ((rc =3D (condition)) && (tb_ticks_since(__start) <= =3D __loops)) \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (delay) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 udelay(delay); =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 else =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= \ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 cpu_relax(); =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\ > +} > +/* whack this after Timur's patch is merged in to > arch/powerpc/include/asm/delay.h */ It won't be that simple. V9 of my patch changes the number of parameters, so not only will you need to whack this copy of the macro, you'll also need to change the callers. --=20 Timur Tabi Linux kernel developer at Freescale