Timur Tabi | 5 Sep 22:48
Favicon

[PATCH] ALSA: ASoC V2: optimize init sequence of Freescale MPC8610 sound drivers

In the Freescale MPC8610 sound drivers, relocate all code from the _prepare
functions into the corresponding _hw_params functions.  These drivers assumed
that the sample size is known in the _prepare function and not in the
_hw_params function, but this is not true.

Move the code in fsl_dma_prepare() into fsl_dma_hw_param().  Create
fsl_ssi_hw_params() and move the code from fsl_ssi_prepare() into it.

Turn off snooping for DMA operations to/from I/O registers, since that's not
necessary.

Some comment blocks were not near the code they reference, so they were moved.

Signed-off-by: Timur Tabi <timur <at> freescale.com>
---

This patch is for ASoC V2 only.

 sound/soc/fsl/fsl_dma.c |  283 ++++++++++++++++++++++-------------------------
 sound/soc/fsl/fsl_ssi.c |   20 ++--
 2 files changed, 141 insertions(+), 162 deletions(-)

diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c
index 5da0069..8821289 100644
--- a/sound/soc/fsl/fsl_dma.c
+++ b/sound/soc/fsl/fsl_dma.c
@@ -319,9 +319,66 @@ error:
 }

 /**
(Continue reading)

Mark Brown | 6 Sep 18:41
Gravatar

Re: [PATCH] ALSA: ASoC V2: optimize init sequence of Freescale MPC8610 sound drivers

On Fri, Sep 05, 2008 at 03:51:28PM -0500, Timur Tabi wrote:
> In the Freescale MPC8610 sound drivers, relocate all code from the _prepare
> functions into the corresponding _hw_params functions.  These drivers assumed
> that the sample size is known in the _prepare function and not in the
> _hw_params function, but this is not true.

Applied, thanks.

Gmane