ALSA: ASoC: fix SNDCTL_DSP_SYNC support in Freescale 8610 sound drivers
authorTimur Tabi <timur@freescale.com>
Fri, 1 Aug 2008 19:58:44 +0000 (14:58 -0500)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Aug 2008 10:26:23 +0000 (12:26 +0200)
If an OSS application calls SNDCTL_DSP_SYNC, then ALSA will call the driver's
_hw_params and _prepare functions again.  On the Freescale MPC8610 DMA ASoC
driver, this caused the DMA controller to be unneccessarily re-programmed, and
apparently it doesn't like that.  The DMA will then not operate when
instructed.  This patch relocates much of the DMA programming to
fsl_dma_open(), which is called only once.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found