From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 2/4] ASoC: s3c24xx 8 bit sound fix Date: Wed, 12 Nov 2008 15:21:08 +0100 Message-ID: References: <20081112115507.GA22288@rakim.wolfsonmicro.main> <1226490949-22360-1-git-send-email-broonie@opensource.wolfsonmicro.com> <1226490949-22360-2-git-send-email-broonie@opensource.wolfsonmicro.com> <20081112141902.GA15238@trinity.fluff.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 8D0022445D for ; Wed, 12 Nov 2008 15:21:08 +0100 (CET) In-Reply-To: <20081112141902.GA15238@trinity.fluff.org> 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: Ben Dooks Cc: alsa-devel@alsa-project.org, Mark Brown , Christian Pellegrin , Christian Pellegrin List-Id: alsa-devel@alsa-project.org At Wed, 12 Nov 2008 14:19:02 +0000, Ben Dooks wrote: > > On Wed, Nov 12, 2008 at 11:55:47AM +0000, Mark Brown wrote: > > From: Christian Pellegrin > > > > fixes playing/recording of 8 bit audio files. > > > > Generated on 20081108 against v2.6.27 > > > > Signed-off-by: Christian Pellegrin > > Signed-off-by: Mark Brown > > --- > > sound/soc/s3c24xx/s3c24xx-i2s.c | 7 +++++++ > > 1 files changed, 7 insertions(+), 0 deletions(-) > > > > diff --git a/sound/soc/s3c24xx/s3c24xx-i2s.c b/sound/soc/s3c24xx/s3c24xx-i2s.c > > index ba4476b..c18977b 100644 > > --- a/sound/soc/s3c24xx/s3c24xx-i2s.c > > +++ b/sound/soc/s3c24xx/s3c24xx-i2s.c > > @@ -261,10 +261,17 @@ static int s3c24xx_i2s_hw_params(struct snd_pcm_substream *substream, > > > > switch (params_format(params)) { > > case SNDRV_PCM_FORMAT_S8: > > + iismod &= ~S3C2410_IISMOD_16BIT; > > + ((struct s3c24xx_pcm_dma_params *) > > + rtd->dai->cpu_dai->dma_data)->dma_size = 1; > > break; > > case SNDRV_PCM_FORMAT_S16_LE: > > iismod |= S3C2410_IISMOD_16BIT; > > + ((struct s3c24xx_pcm_dma_params *) > > + rtd->dai->cpu_dai->dma_data)->dma_size = 2; > > break; > > + default: > > + return -EINVAL; > > } > > Is playing with the dma parameters like that the correct way? It will work, I guess. But I don't say it's entirely correct :) Takashi