From patchwork Tue Mar 31 05:42:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 193128 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=CHARSET_FARAWAY_HEADER, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37571C43331 for ; Tue, 31 Mar 2020 05:45:23 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B2673206EB for ; Tue, 31 Mar 2020 05:45:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="qk68hGEr"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="DRFE9rMZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B2673206EB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 139941616; Tue, 31 Mar 2020 07:44:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 139941616 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585633521; bh=laE/N+Ik1tsknZ985TFNScJiNiQUovcWuh4Z7W1ZjN4=; h=From:To:In-Reply-To:Subject:Date:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=qk68hGErVi+2tZgi4itL330dkxAhZEiNse/QU6hGr9nNfBM2lbDewIHaRYaHQ5rQa ANChuBRJJf/7ik8RR9G+5n1xfIJqEEvFlDcd2X3EonYBVjw9gSxYSuyAI9nlEDxthm XmS8ZY+4LF3XHHMZfULiMy7VWRqhv9n5MyhKJ3uU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5051AF8010C; Tue, 31 Mar 2020 07:42:43 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 127C9F8028F; Tue, 31 Mar 2020 07:42:39 +0200 (CEST) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C439EF8010C for ; Tue, 31 Mar 2020 07:42:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C439EF8010C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="DRFE9rMZ" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200331054228epoutp03ad2c8a9930a780332afc6c916e8293fb~BTSETHa8N0740507405epoutp03X for ; Tue, 31 Mar 2020 05:42:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200331054228epoutp03ad2c8a9930a780332afc6c916e8293fb~BTSETHa8N0740507405epoutp03X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585633348; bh=v4bOtJOm39CkquAv4YplRjeKmOe8Ygc+elN6V2GdtwQ=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=DRFE9rMZFkTEcqbp3A/YJuCIjHJ2v5NhePsyXNqmF6IJDQht85JmCyF+qkAtNYueU aQVjonjWrHOwn0ZalZS3FIyrf3fjYWjeer3UwCU2gaNFzrbB1nggNxwFhZVO98HFaV Go5+5EbAR3iZICcDqbTnzPJBctic3MLcFon2sjoQ= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20200331054227epcas2p3fd6a1a83ca6630781afe0ab696c191a4~BTSD0wRWQ3244532445epcas2p34; Tue, 31 Mar 2020 05:42:27 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.183]) by epsnrtp4.localdomain (Postfix) with ESMTP id 48ryry2J3VzMqYks; Tue, 31 Mar 2020 05:42:26 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id EF.F8.04142.248D28E5; Tue, 31 Mar 2020 14:42:26 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p1.samsung.com (KnoxPortal) with ESMTPA id 20200331054225epcas2p1f7865db70bc3840e983fa8d79f0722ae~BTSCDnIPy0932409324epcas2p1S; Tue, 31 Mar 2020 05:42:25 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200331054225epsmtrp142a8bff67b380e7ffe6de59d8b19cfec~BTSCCzPPq1323013230epsmtrp1f; Tue, 31 Mar 2020 05:42:25 +0000 (GMT) X-AuditID: b6c32a46-3e1ff7000000102e-d7-5e82d8420127 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id A6.60.04158.148D28E5; Tue, 31 Mar 2020 14:42:25 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200331054225epsmtip248c8a5dd2279b1b57e1bad9a971edd09~BTSB4IX4E3192331923epsmtip29; Tue, 31 Mar 2020 05:42:25 +0000 (GMT) From: =?euc-kr?b?wMyw5sXD?= To: In-Reply-To: <001001d60665$db7af3e0$9270dba0$@samsung.com> Subject: [PATCH 3/3] ASoC: fix regwmask Date: Tue, 31 Mar 2020 14:42:25 +0900 Message-ID: <010b01d6071f$286226b0$79267410$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AQLEOIH1sK9HcthW43dBh7e87NpZcwEJSRRNpn1/DiA= X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0gUURjlzszOjtbEtFp9bT/aJsK01J2ttVE0SkOXMlSSfkiogzuouK92 1sgg8kGmrWUvK7enDyq0SG1TK4zwXVGgGGQPSEgspQclWlHWrrPB/jvf951z7zn3fhSuuk6q qXyLQ7RbBBNLBhLtPaH68PiXpZnaURfFjwx1Y3zN2HuSP9/uJPiZkQqM7xtqwPiW2VuI7y05 g21RGlq+l5KGe663SkNbUyVpOO5uQobb7hdEqiLDFJsnCkbRrhEtOVZjviU3jt2xKyshSx+l 5cK5aH4Tq7EIZjGO3ZacGp6Yb/L4YDX7BFOhp5UqSBIbuTnWbi10iJo8q+SIY0Wb0WTjOFuE JJilQktuRI7VHMNptTq9h5ltyhtrPofZxgP3H/5VQhSjH9RRFEABsxH6G6oUR1EgpWI6EZz+ dkEpF98Q3Jmqx+ViBsGNQSf6L5k7/RWTB10IOjomfayPCB6MN3r0FEUyMVDlZL2CYAZg+v7g vABnTiFo/jAxf1KAh3O2rk7hxUFMCNQ0y5hg1sBs31/Si2kmGm7++unDi+Fx7XvCi3FGB43N VzAZr4SOTxdx2Z0Gfo5fU8j9YLhQWY7LJjx3zdbPmwBmgoT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Wp2ampBahFMlomDU6qBsdj0X6/RP12f+nM/F1++wi/jFvMo3IFf1FG3V0GC 8+ThRW1nO8RT/OucDvbb/ve3uPDhX9nEvUIFacfKnj1YVnp4Ru6nrZM+PpWfOeV1wg37h/MM VuidXMRiGPGRgVegcp3E4u2dLLtmsmTsPF+m+PKtm+n1fR715Z98M0VNnz4Q87uSs6BipRJL cUaioRZzUXEiAPhb6SKkAgAA X-CMS-MailID: 20200331054225epcas2p1f7865db70bc3840e983fa8d79f0722ae X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200330073600epcas2p3712a5e92d86a524bedda790f2e273935 References: <001001d60665$db7af3e0$9270dba0$@samsung.com> Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, tiwai@suse.com, hmseo@samsung.com, tkjung@samsung.com, pilsun.jang@samsung.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" If regwshift is 32 and the selected architecture compiles '<<' operator for signed int literal into rotating shift, '1< --- sound/soc/soc-ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.21.0 diff --git a/sound/soc/soc-ops.c b/sound/soc/soc-ops.c index 652657dc6809..55ffb34be95e 100644 --- a/sound/soc/soc-ops.c +++ b/sound/soc/soc-ops.c @@ -825,7 +825,7 @@ int snd_soc_get_xr_sx(struct snd_kcontrol *kcontrol, unsigned int regbase = mc->regbase; unsigned int regcount = mc->regcount; unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; - unsigned int regwmask = (1<invert; unsigned long mask = (1UL<nbits)-1; long min = mc->min; @@ -874,7 +874,7 @@ int snd_soc_put_xr_sx(struct snd_kcontrol *kcontrol, unsigned int regbase = mc->regbase; unsigned int regcount = mc->regcount; unsigned int regwshift = component->val_bytes * BITS_PER_BYTE; - unsigned int regwmask = (1<invert; unsigned long mask = (1UL<nbits)-1; long max = mc->max;