summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@stericsson.com>2012-01-12 15:36:18 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:05:05 +0200
commit2b1f7c6f04cf45ba69047a0a87ff8bfc9ebb86ea (patch)
tree3058aa11a4ea0c7b519f630ca333a4ebb8bdb10e /sound
parentd49fa27ee673d6f331bca10990741cbaea9cd5ef (diff)
ASoC: Ux500: Fix merge error causing DMA leak
ST-Ericsson ID: 409827 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I600d0cd772b1921c8c310bfd5cd35795389ff67b Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45289 Reviewed-by: Christophe PRIOUZEAU <christophe.priouzeau@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Ola LILJA2 <ola.o.lilja@stericsson.com>
Diffstat (limited to 'sound')
-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..91a9a03f93d 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;