From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [PATCH 2.6.25.1] S3C2410 pcm audio broken Date: Sun, 04 May 2008 15:30:00 +0100 Message-ID: <1209911400.3923.3.camel@odin> References: <481DB2D6.4000304@elpa.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource2.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id 9D1272454E for ; Sun, 4 May 2008 16:30:02 +0200 (CEST) In-Reply-To: <481DB2D6.4000304@elpa.it> 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: "ing. Davide Rizzo" , Takashi Iwai Cc: alsa-devel , Linux-arm , ben-linux List-Id: alsa-devel@alsa-project.org On Sun, 2008-05-04 at 14:57 +0200, ing. Davide Rizzo wrote: > S3C2410 pcm doesn't work. > s3c2410_dma_request() now returns the channel number and not 0 if OK. > Davide > plain text document attachment (s3c24xx-pcm.patch) > This patch to update to a s3c2410_dma_request return value change > > Signed-off-by: Davide Rizzo > ================================================================================ > --- linux-2.6.25.1/sound/soc/s3c24xx/s3c24xx-pcm.c 2008-04-17 04:49:44.000000000 +0200 > +++ linux-2.6.25.1.elpa/sound/soc/s3c24xx/s3c24xx-pcm.c 2008-05-04 09:27:46.000000000 +0200 > @@ -171,7 +171,7 @@ static int s3c24xx_pcm_hw_params(struct > ret = s3c2410_dma_request(prtd->params->channel, > prtd->params->client, NULL); > > - if (ret) { > + if (ret < 0) { > DBG(KERN_ERR "failed to get dma channel\n"); > return ret; > } > ------------------------------------------------------------------- Acked-by: Liam Girdwood