From patchwork Mon Aug 4 15:17:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 34856 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 79A5221F5F for ; Mon, 4 Aug 2014 15:18:59 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m1sf40806330oag.11 for ; Mon, 04 Aug 2014 08:18:55 -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=lz7/UrNIre67S2/aBeOZ+LGhJHmjpvmSouOoKlQn4bc=; b=JWsx+Y7loD8tli3EHCwh1bJk4pybd35Q1WVOArVW8qnspIOumBs3+SfHhzr9F0H4CG MaAYj/u1IcGCawTO3+ujIF4BeJOydiAgRyeHQ0h/8PR3uO8XbNUnEH47qYLYfF+Yoxll V8dysCPUt5R2iE6yBjZ9djWHLTR/4OoHtvI3II4XFwxJyOUmEuqBRddUXlKNhN/33gE/ ajkTuCDiwUhW5E74iwwhntayIOh2j3paQU/mwY4rrBjvJfjnGL9/PSF4KLytwMYi3k79 4XagN2Y+Z318W5TmrYYJ1LewazO4k3kBW3VXbGEBY2XRror5RCmgA9ECj6au/uTJhzh4 MOiA== X-Gm-Message-State: ALoCoQkXd+8ToqQjwDzd7wGSJOmwV5hOpLywYc1tXEV1Lwg4jKzVYHVIcL1GZdTwWGdrV7xIRG/4 X-Received: by 10.43.149.193 with SMTP id kl1mr34765383icc.5.1407165535690; Mon, 04 Aug 2014 08:18:55 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.47.113 with SMTP id l104ls2226248qga.61.gmail; Mon, 04 Aug 2014 08:18:55 -0700 (PDT) X-Received: by 10.220.49.10 with SMTP id t10mr24091644vcf.34.1407165535407; Mon, 04 Aug 2014 08:18:55 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id sf9si12152590vcb.80.2014.08.04.08.18.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Aug 2014 08:18:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id im17so11350639vcb.31 for ; Mon, 04 Aug 2014 08:18:55 -0700 (PDT) X-Received: by 10.220.131.207 with SMTP id y15mr2012016vcs.71.1407165535248; Mon, 04 Aug 2014 08:18:55 -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 tc5csp312552vcb; Mon, 4 Aug 2014 08:18:54 -0700 (PDT) X-Received: by 10.180.36.238 with SMTP id t14mr31169852wij.38.1407165534217; Mon, 04 Aug 2014 08:18:54 -0700 (PDT) Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id ba10si21415178wib.67.2014.08.04.08.18.42 for ; Mon, 04 Aug 2014 08:18:42 -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 32CBC261987; Mon, 4 Aug 2014 17:18:31 +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=1.0 required=5.0 tests=PRX_BODY_30 autolearn=disabled version=3.2.4 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 4BD51261685; Mon, 4 Aug 2014 17:18:20 +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 E7C0C2616C9; Mon, 4 Aug 2014 17:18:18 +0200 (CEST) Received: from mezzanine.sirena.org.uk (mezzanine.sirena.org.uk [106.187.55.193]) by alsa0.perex.cz (Postfix) with ESMTP id ABDC926084B for ; Mon, 4 Aug 2014 17:18:10 +0200 (CEST) Received: from 92.40.249.223.threembb.co.uk ([92.40.249.223] helo=finisterre) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XEK1T-0001mg-EF; Mon, 04 Aug 2014 15:18:08 +0000 Received: from broonie by finisterre with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XEK1I-0004qF-4r; Mon, 04 Aug 2014 16:17:52 +0100 From: Mark Brown To: Nicolin Chen , Liam Girdwood Date: Mon, 4 Aug 2014 16:17:44 +0100 Message-Id: <1407165464-18578-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.0.0 X-SA-Exim-Connect-IP: 92.40.249.223 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] ASoC: fsl_sai: Don't use ~FSL_SAI_CR2_SYNC 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.172 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 On 64 bit systems ~FSL_SAI_CR2_SYNC generates a constant that won't fit in an unsigned int, causing GCC to warn. Since we're already only updating one bit due to the masking in update bits just write the value explicitly as zero. Signed-off-by: Mark Brown --- sound/soc/fsl/fsl_sai.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index faa0497..9f10575 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -333,8 +333,7 @@ static int fsl_sai_trigger(struct snd_pcm_substream *substream, int cmd, * The transmitter bit clock and frame sync are to be * used by both the transmitter and receiver. */ - regmap_update_bits(sai->regmap, FSL_SAI_TCR2, FSL_SAI_CR2_SYNC, - ~FSL_SAI_CR2_SYNC); + regmap_update_bits(sai->regmap, FSL_SAI_TCR2, FSL_SAI_CR2_SYNC, 0); regmap_update_bits(sai->regmap, FSL_SAI_RCR2, FSL_SAI_CR2_SYNC, FSL_SAI_CR2_SYNC);