]> err.no Git - linux-2.6/commit
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)
commitbf9c8c9ddef7ef761ae9747349175adad0ef16ce
tree0b69a7dff8c7a0e9cce8f05e64d0e24cba4374db
parent11589418a1c4cf68be9367f802898d35e07809c4
ALSA: ASoC: fix SNDCTL_DSP_SYNC support in Freescale 8610 sound drivers

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>
sound/soc/fsl/fsl_dma.c