Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ASoC: stop omap DMA channels before unlinking
  • Loading branch information
radekp committed Oct 9, 2012
1 parent b2d9afb commit 6aad0fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/omap/omap-pcm.c
Expand Up @@ -140,6 +140,7 @@ static int omap_pcm_hw_free(struct snd_pcm_substream *substream)
if (prtd->dma_data == NULL)
return 0;

omap_stop_dma(prtd->dma_ch);
omap_dma_unlink_lch(prtd->dma_ch, prtd->dma_ch);
omap_free_dma(prtd->dma_ch);
prtd->dma_data = NULL;
Expand Down

0 comments on commit 6aad0fd

Please sign in to comment.