[alsa-devel] [PATCH V4 2/5] Main rewite of the mpc5200 audio DMA code
Timur Tabi
timur at freescale.com
Wed May 27 03:08:01 EST 2009
On Tue, May 26, 2009 at 11:53 AM, Jon Smirl <jonsmirl at gmail.com> 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,
> - struct 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) \
> +{ \
> + unsigned long __loops = tb_ticks_per_usec * timeout; \
> + unsigned long __start = get_tbl(); \
> + while ((rc = (condition)) && (tb_ticks_since(__start) <= __loops)) \
> + if (delay) \
> + udelay(delay); \
> + else \
> + cpu_relax(); \
> +}
> +/* 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
More information about the Linuxppc-dev
mailing list