5 Sep 22:48
[PATCH] ALSA: ASoC V2: optimize init sequence of Freescale MPC8610 sound drivers
From: Timur Tabi <timur <at> freescale.com>
Subject: [PATCH] ALSA: ASoC V2: optimize init sequence of Freescale MPC8610 sound drivers
Newsgroups: gmane.linux.alsa.devel
Date: 2008-09-05 20:51:28 GMT
Subject: [PATCH] ALSA: ASoC V2: optimize init sequence of Freescale MPC8610 sound drivers
Newsgroups: gmane.linux.alsa.devel
Date: 2008-09-05 20:51:28 GMT
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)
RSS Feed