From: naveenkrishna.ch Subject: patch 1/1: ASoC, DMA crash with application- resolved Date: Sun, 21 Dec 2008 12:52:43 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.157]) by alsa0.perex.cz (Postfix) with ESMTP id 226CA1037E3 for ; Sun, 21 Dec 2008 08:22:44 +0100 (CET) Received: by yw-out-1718.google.com with SMTP id 9so556007ywk.2 for ; Sat, 20 Dec 2008 23:22:44 -0800 (PST) Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org, jarkko.nikula@nokia.com List-Id: alsa-devel@alsa-project.org Hi ALSA SOC, I am using a OMAP3 + TWL4030 combination with ASoC in the sound/soc/omap/omap-pcm.c DMA channels are being freed after unlinking in the omap_pcm_hw_free function Which is causing a crash during applications So, stopping the DMA channels before unlinking resolves the issue. here is the patch that solves the issue diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index e9084fd..679e384 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c @@ -116,6 +116,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); if (!cpu_is_omap1510()) omap_dma_unlink_lch(prtd->dma_ch, prtd->dma_ch); omap_free_dma(prtd->dma_ch); Is this ok or is there any better way out -- Thanks, (: Naveen Krishna Ch :)