summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>2012-04-18 13:11:11 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-04-18 13:44:08 +0200
commit98c07e896d8418d58064007f87f2c4ec0e5eb099 (patch)
tree60ee91936371a5ca710f74b027ea58cdeba01ccf
parent3ebd6ac404099c8e5a233da5f7eda8f3c8069a9a (diff)
Sound: Fix for improper handling of DMA RX Channelandroid-2012.04
Signed-off-by: ramesh.chandrasekaran <ramesh.chandrasekaran@stericsson.com>
-rw-r--r--sound/soc/ux500/ux500_msp_i2s.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/ux500/ux500_msp_i2s.c b/sound/soc/ux500/ux500_msp_i2s.c
index 360405a7c09..6df08c5d4d3 100644
--- a/sound/soc/ux500/ux500_msp_i2s.c
+++ b/sound/soc/ux500/ux500_msp_i2s.c
@@ -322,6 +322,11 @@ void ux500_msp_i2s_configure_dma(struct msp *msp, struct msp_config *config)
msp->tx_pipeid = NULL;
}
+ if (msp->rx_pipeid !=NULL) {
+ dma_release_channel(msp->rx_pipeid);
+ msp->rx_pipeid = NULL;
+ }
+
switch (config->data_size) {
case MSP_DATA_BITS_32:
word_width = STEDMA40_WORD_WIDTH;