From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Subject: Re: [PATCH] ALSA: ASoC: pxa-pcm-lib: initialize DMA channel to -1 Date: Sat, 20 Mar 2010 16:47:15 +0100 Message-ID: <20100320154715.GD30801@buzzloop.caiaq.de> References: <1267324958-25103-1-git-send-email-daniel@caiaq.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from buzzloop.caiaq.de (buzzloop.caiaq.de [212.112.241.133]) by alsa0.perex.cz (Postfix) with ESMTP id 170C1244C1 for ; Sat, 20 Mar 2010 16:47:19 +0100 (CET) Content-Disposition: inline In-Reply-To: <1267324958-25103-1-git-send-email-daniel@caiaq.de> 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 Cc: Mark Brown , Nicolas Pitre , Liam Girdwood List-Id: alsa-devel@alsa-project.org Any oppinion about this one? (Sorry for the clock skew - the virtual machine I did this in lives in its own world) On Sun, Feb 28, 2010 at 10:42:38AM +0800, Daniel Mack wrote: > This fixes a warning ("pxa_free_dma: trying to free channel 0 which is > already freed") when a device was opened but the hw_params() call > failed. > > Signed-off-by: Daniel Mack > Cc: Liam Girdwood > Cc: Mark Brown > Cc: Nicolas Pitre > --- > sound/arm/pxa2xx-pcm-lib.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/sound/arm/pxa2xx-pcm-lib.c b/sound/arm/pxa2xx-pcm-lib.c > index 743ac6a..fd51fa8 100644 > --- a/sound/arm/pxa2xx-pcm-lib.c > +++ b/sound/arm/pxa2xx-pcm-lib.c > @@ -205,6 +205,7 @@ int __pxa2xx_pcm_open(struct snd_pcm_substream *substream) > if (!rtd->dma_desc_array) > goto err1; > > + rtd->dma_ch = -1; > runtime->private_data = rtd; > return 0; > > -- > 1.6.3.3 >