From patchwork Thu Jul 31 12:18:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 34636 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 95CB320792 for ; Thu, 31 Jul 2014 12:51:16 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf15750233pdb.5 for ; Thu, 31 Jul 2014 05:51:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=GwcweWK08TIHlKWGZII5WsEIjA7MqfaNFKt+FfS99xc=; b=iXpo/mI2NdfpfTjagatH6DuTHXP1QdfGjT4kDqW5QlGC5PnZLkKq/1oC6VTmLXH2St 74u6mmvzYfTthV6ivU7Jc7k2k8KYk3zKeUtMSbpRXTy3SAaeocX4qlqUpbv3P/gPRXeC 6Y82L9e/4DOhai+Gf2Z1VQhWfJabk/AngyeGnfpi6Hu4Hdwmxr2fw0bth+ebQJbvHMj3 JfYNAo1pwinq7MAdwoOEQ2NtLD8NLrGj/C/sXN4O82+IDX7GfXoYDGsX/MAjHK1lCYsp 1dvsDFDpVHwrHp0nTEhriCjZDPpiQEGT9sce5W7xGRaOK+RinmHB/NWkRkMC8hkkIhha l79g== X-Gm-Message-State: ALoCoQno3UPL0O+907jvX8vD3iyDsraFeYWz8XLi9eLWjw6KWH7W2Dg59/nPU4m0N2ApuvdOm9fc X-Received: by 10.67.5.101 with SMTP id cl5mr1348557pad.41.1406811075927; Thu, 31 Jul 2014 05:51:15 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.117 with SMTP id i108ls1005886qgf.76.gmail; Thu, 31 Jul 2014 05:51:15 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr12566734vcb.0.1406811075801; Thu, 31 Jul 2014 05:51:15 -0700 (PDT) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id r3si4244164vem.40.2014.07.31.05.51.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Jul 2014 05:51:15 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) client-ip=209.85.220.181; Received: by mail-vc0-f181.google.com with SMTP id lf12so4108761vcb.12 for ; Thu, 31 Jul 2014 05:51:15 -0700 (PDT) X-Received: by 10.220.50.8 with SMTP id x8mr12484103vcf.18.1406811075714; Thu, 31 Jul 2014 05:51:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp15570vcb; Thu, 31 Jul 2014 05:51:15 -0700 (PDT) X-Received: by 10.180.37.241 with SMTP id b17mr16676602wik.70.1406811074647; Thu, 31 Jul 2014 05:51:14 -0700 (PDT) Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id c11si11142023wjs.107.2014.07.31.05.51.10 for ; Thu, 31 Jul 2014 05:51:10 -0700 (PDT) Received-SPF: none (google.com: alsa-devel-bounces@alsa-project.org does not designate permitted sender hosts) client-ip=77.48.224.243; Received: by alsa0.perex.cz (Postfix, from userid 1000) id C73DE265694; Thu, 31 Jul 2014 14:51:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.2.4 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 48F1D2654AE; Thu, 31 Jul 2014 14:38:03 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 06A1226549E; Thu, 31 Jul 2014 14:38:02 +0200 (CEST) Received: from mezzanine.sirena.org.uk (mezzanine.sirena.org.uk [106.187.55.193]) by alsa0.perex.cz (Postfix) with ESMTP id 486CB26562A for ; Thu, 31 Jul 2014 14:18:31 +0200 (CEST) Received: from cpc11-sgyl31-2-0-cust672.sgyl.cable.virginm.net ([94.175.94.161] helo=debutante) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XCpJP-0004Sp-VF; Thu, 31 Jul 2014 12:18:28 +0000 Received: from broonie by debutante with local (Exim 4.83) (envelope-from ) id 1XCpJN-0004qZ-5q; Thu, 31 Jul 2014 13:18:21 +0100 From: Mark Brown To: Lars-Peter Clausen , Liam Girdwood Date: Thu, 31 Jul 2014 13:18:18 +0100 Message-Id: <1406809099-18597-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.0.1 X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org, Mark Brown Subject: [alsa-devel] [PATCH 1/2] ASoC: ssm2518: Convert to params_width() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: broonie@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Mark Brown The CODEC doesn't care how data is laid out in memory. Signed-off-by: Mark Brown Acked-by: Lars-Peter Clausen --- sound/soc/codecs/ssm2518.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/ssm2518.c b/sound/soc/codecs/ssm2518.c index 56adb3e2def9..e8680bea5f86 100644 --- a/sound/soc/codecs/ssm2518.c +++ b/sound/soc/codecs/ssm2518.c @@ -361,11 +361,11 @@ static int ssm2518_hw_params(struct snd_pcm_substream *substream, return -EINVAL; if (ssm2518->right_j) { - switch (params_format(params)) { - case SNDRV_PCM_FORMAT_S16_LE: + switch (params_width(params)) { + case 16: ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_16BIT; break; - case SNDRV_PCM_FORMAT_S24_LE: + case 24: ctrl1 |= SSM2518_SAI_CTRL1_FMT_RJ_24BIT; break; default: