From patchwork Mon Aug 6 19:38:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 175443 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 206622C0085 for ; Tue, 7 Aug 2012 05:41:41 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SyT8J-00064M-3t; Mon, 06 Aug 2012 19:38:31 +0000 Received: from mail-ob0-f177.google.com ([209.85.214.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SyT8F-00063d-63 for linux-arm-kernel@lists.infradead.org; Mon, 06 Aug 2012 19:38:28 +0000 Received: by obbta17 with SMTP id ta17so6673603obb.36 for ; Mon, 06 Aug 2012 12:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=YKlFLhwjIRjRa38i+XnNMPmHm38jr20r6tAwX5/SvoI=; b=i6r8M4AZZfBd5Pae5aezA9f4TQA0T139Z2FzHZrHqziKvkPHLcAxJwcplns+zLB5OP judE2zju1gs0fII+tH+xZ9t5s6DjAx/OaaO+KfTtZQ2WgIh9FAQ3u3S7BQZej+pdaKeh Bam01FbAQ2ZvH5NUtP5M72lT1yFeN/WBYJq81yZGI4I+gY7ATLUkEyTpycD5k1yAcSsh jHycu0QdUSnBJwomGPS9ti5sWMw56HSo66sElIJ1Rq9hf9uTFFV1v1hZ2Iw5oUoSkQv/ CfzVbOesyKCUMgMhLIvpTSDnCAXSztWnzqWBLF3bOFT4FExgE9xbvfRnq2NxasItmwh5 Vj5g== MIME-Version: 1.0 Received: by 10.182.16.3 with SMTP id b3mr20686639obd.72.1344281905438; Mon, 06 Aug 2012 12:38:25 -0700 (PDT) Received: by 10.76.7.113 with HTTP; Mon, 6 Aug 2012 12:38:25 -0700 (PDT) In-Reply-To: <501FD389.1050105@gmail.com> References: <1344258447-6162-1-git-send-email-gcembed@gmail.com> <501FD389.1050105@gmail.com> Date: Mon, 6 Aug 2012 16:38:25 -0300 Message-ID: Subject: Re: [PATCH 1/1] mx27_3ds: Add sound support From: Fabio Estevam To: =?UTF-8?Q?Ga=C3=ABtan_Carlier?= X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (festevam[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: alsa-devel@alsa-project.org, Russell King , linux-arm-kernel@lists.infradead.org, Sascha Hauer X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Gaëtan, On Mon, Aug 6, 2012 at 11:24 AM, Gaëtan Carlier wrote: > Hi Fabio, > Sorry, I have missed your patch in my email archive. I didn't search the > right keywords. > I applied your [patch 1/2] (2/2 is already merged) but I have same effect. I > use aplay with file k3b_error1.wav (Unsigned 8 bit, Rate 8000 Hz, Mono) and > alsa/Front_Left.wav (Signed 16 bit Little Endian, Rate 48000 Hz, Mono). Two > sounds are played too fast. > It is maybe a bad configuration of Alsa (but this is working with kernel > 2.6.22 from Freescale). I have just sent the following patch to the alsa-list which fixes this mono playback issue. Regards, Fabio Estevam From bc46087110bd48a41f1f7dcb826853349662c766 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 6 Aug 2012 16:30:51 -0300 Subject: [PATCH] ASoC: imx-ssi: Fix mono playback Currently mono playback is played on a faster rate. Adjust channels_min to 2 channels in order to play it back correctly. Reported-by: Gaëtan Carlier Signed-off-by: Fabio Estevam --- sound/soc/fsl/imx-ssi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c index 28dd76c..c42df31 100644 --- a/sound/soc/fsl/imx-ssi.c +++ b/sound/soc/fsl/imx-ssi.c @@ -380,7 +380,7 @@ static int imx_ssi_dai_probe(struct snd_soc_dai *dai) static struct snd_soc_dai_driver imx_ssi_dai = { .probe = imx_ssi_dai_probe, .playback = { - .channels_min = 1, + .channels_min = 2, .channels_max = 2, .rates = SNDRV_PCM_RATE_8000_96000, .formats = SNDRV_PCM_FMTBIT_S16_LE,