Re: [PATCH] ALSA: ASoC V2: Improve pause/unpause performance in Freescale 8610 drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 05, 2008 at 02:37:31PM -0500, Timur Tabi wrote:

> Signed-off-by: Timur Tabi <timur@xxxxxxxxxxxxx>

Applied, thanks.

> +			 * Wait until the SSI has filled its FIFO. Without this
> +			 * delay, ALSA complains about overruns.  When the FIFO
> +			 * is full, the DMA controller initiates its first
> +			 * transfer.  Until then, however, the DMA's DAR
> +			 * register is zero, which translates to an
> +			 * out-of-bounds pointer.  This makes ALSA think an
> +			 * overrun has occurred.
>  			 */
> -			mdelay(1);
> +			while (!(in_be32(&ssi->sisr) & CCSR_SSI_SISR_RFF0));

It'd be nice to have a timeout here in case the FIFO never fills.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux