From patchwork Fri Jul 15 12:59:44 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Angus Ainslie X-Patchwork-Id: 2713 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 462C023F44 for ; Fri, 15 Jul 2011 12:59:48 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 0E4F5A18761 for ; Fri, 15 Jul 2011 12:59:47 +0000 (UTC) Received: by qwb8 with SMTP id 8so827073qwb.11 for ; Fri, 15 Jul 2011 05:59:47 -0700 (PDT) Received: by 10.229.25.212 with SMTP id a20mr2642516qcc.148.1310734787464; Fri, 15 Jul 2011 05:59:47 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs47586qcb; Fri, 15 Jul 2011 05:59:47 -0700 (PDT) Received: by 10.204.38.80 with SMTP id a16mr1192181bke.213.1310734786419; Fri, 15 Jul 2011 05:59:46 -0700 (PDT) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx.google.com with ESMTPS id d7si1558971faa.181.2011.07.15.05.59.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jul 2011 05:59:46 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.161.44 is neither permitted nor denied by best guess record for domain of angus.ainslie@linaro.org) client-ip=209.85.161.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.161.44 is neither permitted nor denied by best guess record for domain of angus.ainslie@linaro.org) smtp.mail=angus.ainslie@linaro.org Received: by fxe6 with SMTP id 6so2076033fxe.17 for ; Fri, 15 Jul 2011 05:59:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.7.66 with SMTP id c2mr5346574fac.35.1310734785000; Fri, 15 Jul 2011 05:59:45 -0700 (PDT) Received: by 10.223.71.194 with HTTP; Fri, 15 Jul 2011 05:59:44 -0700 (PDT) In-Reply-To: <1310556126-13784-1-git-send-email-giridhar.maruthy@linaro.org> References: <1310556126-13784-1-git-send-email-giridhar.maruthy@linaro.org> Date: Fri, 15 Jul 2011 06:59:44 -0600 Message-ID: Subject: Fwd: [PATCH] ASoC: SAMSUNG: 24-bit audio playback on Exynos4210 From: Angus Ainslie To: Patch Tracking ---------- Forwarded message ---------- From: Giridhar Maruthy Date: Wed, Jul 13, 2011 at 5:22 AM Subject: [PATCH] ASoC: SAMSUNG: 24-bit audio playback on Exynos4210 To: naveenkrishna.ch@gmail.com, jassisinghbrar@gmail.com, linux-samsung-soc@vger.kernel.org, dp@opensource.wolfsonmicro.com, Kyung-Kwee.Ryu@wolfsonmicro.com, broonie@opensource.wolfsonmicro.com Cc: Giridhar Maruthy Using 256fs or 512fs will result in distortion of 24-bit audio samples. This is because the lrclk generated is not proper. Using 384 fs generates proper output. Signed-off-by: Giridhar Maruthy ---  sound/soc/samsung/smdk_wm8994.c |    5 ++++-  1 files changed, 4 insertions(+), 1 deletions(-) -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at  http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c index e7c1009..45fbe2b 100644 --- a/sound/soc/samsung/smdk_wm8994.c +++ b/sound/soc/samsung/smdk_wm8994.c @@ -8,6 +8,7 @@  */  #include "../codecs/wm8994.h" +#include  /*   * Default CFG switch settings to use this driver: @@ -44,7 +45,9 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,        int ret;        /* AIF1CLK should be >=3MHz for optimal performance */ -       if (params_rate(params) == 8000 || params_rate(params) == 11025) +       if (params_format(params) == SNDRV_PCM_FORMAT_S24_LE) +               pll_out = params_rate(params) * 384; +       else if (params_rate(params) == 8000 || params_rate(params) == 11025)                pll_out = params_rate(params) * 512;        else                pll_out = params_rate(params) * 256;