]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: remove trigger delay in Freescale MPC8610 sound driver
authorTimur Tabi <timur@freescale.com>
Wed, 25 Mar 2009 23:20:37 +0000 (18:20 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 2 Apr 2009 15:34:14 +0000 (16:34 +0100)
commitaffa25fb03c4c42119cef7fe8d33483e06dacfee
tree100766010c57f0ee04eed149a0b3e9fd323ca398
parent30453ca86e32c7e5095079047ccaee638435d582
ASoC: remove trigger delay in Freescale MPC8610 sound driver

Remove the delay from the trigger function in the Freescale MPC8610 sound
driver when capture is started.  This delay was used to ensure that the DMA
controller was active when ALSA call the .pointer function to request a
DMA transfer status.  A better approach is for the .pointer function to detect
that DMA has not started, and return zero instead.  This change eliminates
the need for the delay.

Also add some related code to check for a DMA programming error, and report
XRUN if it occurs.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/fsl_dma.c
sound/soc/fsl/fsl_ssi.c