From patchwork Mon Mar 30 07:35:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 193136 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 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 EA027C2D0E9 for ; Mon, 30 Mar 2020 07:37:14 +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 79C5120748 for ; Mon, 30 Mar 2020 07:37:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="W6rIlaA5"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Toh3f0aT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79C5120748 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 D3F061672; Mon, 30 Mar 2020 09:36:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D3F061672 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585553832; bh=1e3pMebWUbZDoixo7d0H/Gp3cux0d02OWLxGb1a6aqQ=; h=From:To:Subject:Date:References:Cc:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=W6rIlaA5fA63S7IjF6t2lU9K5US03/vk5xzOvIakAj8w+IEE7S7Agb8NgMo0PoaaP 3S/uHZyf87qySve9Kfm658Sunstf+PU0G8VRDVhOeFDie4W+d09GBDq18I0uOLDEr4 m7XYyOLGYjKY5g4HvtGM6555ftUrHrLbf/u6wE84= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EFD08F8014C; Mon, 30 Mar 2020 09:36:02 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E5367F8015C; Mon, 30 Mar 2020 09:36:01 +0200 (CEST) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EDB97F800EB for ; Mon, 30 Mar 2020 09:35:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EDB97F800EB Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="Toh3f0aT" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200330073552epoutp026d34a8801415245c4cad71d3caf9b53e~BBLzQL6Dm0588205882epoutp028 for ; Mon, 30 Mar 2020 07:35:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200330073552epoutp026d34a8801415245c4cad71d3caf9b53e~BBLzQL6Dm0588205882epoutp028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585553752; bh=/WDzIcxqny7X2Y7xn3LTCJdBJ6oAxG+htP6WsdBuRb8=; h=From:To:Cc:Subject:Date:References:From; b=Toh3f0aTSSzdvIBAEyA4DnAc+iaOC8IFmc2OVaHGelC/mAHptOVyUj6jrx+4SRCqu 6bVzNWJFSmwXc8EborVB2II52deVQtc4IaK51Eec8ZqWsGxo+RQx1AhgYrKP4uY0up KwGDP4Sws83liw4HH56pPRIj3ZgRVC2fWWMP+MUI= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20200330073552epcas2p414ad4db63ae17865d235c1e05ae627b4~BBLyvjQij1825418254epcas2p4D; Mon, 30 Mar 2020 07:35:52 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.182]) by epsnrtp3.localdomain (Postfix) with ESMTP id 48rPQG5TQmzMqYkh; Mon, 30 Mar 2020 07:35:50 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id C7.F5.04142.451A18E5; Mon, 30 Mar 2020 16:35:48 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20200330073548epcas2p3045be9d3c8b76115c76ce27679840b6f~BBLvDDdhK3138731387epcas2p3K; Mon, 30 Mar 2020 07:35:48 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200330073548epsmtrp1255758a111ece4007fbf1c07cb26c66f~BBLvCHdCE1749117491epsmtrp1z; Mon, 30 Mar 2020 07:35:48 +0000 (GMT) X-AuditID: b6c32a46-3f9ff7000000102e-85-5e81a154860f Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 6C.9E.04158.451A18E5; Mon, 30 Mar 2020 16:35:48 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200330073548epsmtip1ce8395992e5e034b9f2c4750e1b2edd7~BBLu22bBT2907729077epsmtip1s; Mon, 30 Mar 2020 07:35:48 +0000 (GMT) From: =?euc-kr?b?wMyw5sXD?= To: , , Subject: [PATCH 1/3] ASoC: dapm: connect virtual mux with default value Date: Mon, 30 Mar 2020 16:35:47 +0900 Message-ID: <000e01d60665$d48444b0$7d8cce10$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdYGZTjyo8u3CJE6Rom1ek84xNvO3g== Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA01SbUhTYRT23db19jG5Tq3Dgpo3IhJc22xrilqS2aLARSEV4rrpy5T21e4m GQWWtfyIUinIpVYglqvITM2MQEyNjCJxBhVFmZkGVtPSQrO23Rvs33PO+zznvM85hxRKqgkp WWBxYLuFMdHEIlH7o7Ub4ndfPZ6jqBygtd6BboH2wocRQjvtLRVom2duoU0iXfPUCUJ33/02 XNfiKSN0t1uHRHrRPlNyPmbysF2GLbnWvAKLMYXevsuw2aDWKJTxykTtBlpmYcw4hU7foY/P KDD5e9KyQsbk9Kf0DMvS61KT7VanA8vyrawjhca2PJNNqbTJWcbMOi1Gea7VnKRUKFRqP3O/ KX9yuF1ge0AervvTh4pRP1GOFpJArYdP114KytEiUkJ1IPBNfhZywSSCvzPtiAumEXye8IWX IzIoGbyzl8s/RNDj6efl4whGmkqEARJBJcGZCjrQIppKg599xaIAFlKx8HGuNoijqK3gLbke /IaIWg2PmzqDWEwlwuj3knAOR8KTmhFeq4KGG5cFHF4J9yZqhZwFGfz+1LiA6yWH+eE5nh8N l8pcQTdANRMw2MsVBSodehqHeHEUfHncyuelMH7OFc4JShB8fTbHP5xHUFYh4XACtNYFHAcm sQp6XvPNIqD00R9+QGIodfFsGu70z/NsgPpmvqAOfMMuohLFukNcukNcukNcukPcXEEiD1qK bazZiFmVTRW67BYUvMe4jA7U8HxHN6JIRC8RX2wrzpEsYArZInM3AlJIR4uJTH9KnMcUHcF2 q8HuNGG2G6n9W6gSSmNyrf7rtjgMSrVKo1EkqrVqjUpLLxO3LH6VLaGMjAMfxNiG7f91AnKh tBglVM0WNU67fL2Ry02/5dvcXd6ptHfHNp72ZEkj9Amp1uxY3/iezJsjs5t23Y1asebbTWvW 08H6lK6NU4WJv8b6OrN6cdfZsRzjqpOjk9d/zNR4vC0P38idhlOWMs06fChMv6wjQpIsqe9S 4fnUX46wLUczDkTe6NvZ9j7mRfW1ASUtYvMZZZzQzjL/AIDpVw6lAwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRmVeSWpSXmKPExsWy7bCSnG7IwsY4g433OC2uXDzEZDH14RM2 i29XOpgsNnxfy+jA4rHhcxObx85Zd9k9Nq3qZPNYv+UqSwBLFJdNSmpOZllqkb5dAlfGp0fb mAp2c1TM/XuMsYHxFFsXIweHhICJxOWNkV2MXBxCArsZJTY2nGTpYuQEiktIfJh/hh3CFpa4 33KEFaLoOaNE748HYM1sAlYSPd1KIDUiAq4S9/c2gNUzCyhKPP4zB2yOsIC7xJXmFWwgNouA qsTxlbvAbF4BS4lnH5rZIWxBiZMzn7BA9JpINB7uhrLlJba/ncMMcYOCxM+ny1ghdulJ/Hv0 B6pGRGJ2ZxvzBEbBWUhGzUIyahaSUbOQtCxgZFnFKJlaUJybnltsWGCUl1quV5yYW1yal66X nJ+7iREc9FpaOxhPnIg/xCjAwajEw/the0OcEGtiWXFl7iFGCQ5mJRFeNn+gEG9KYmVValF+ fFFpTmrxIUZpDhYlcV75/GORQgLpiSWp2ampBalFMFkmDk6pBka3VYITWn9vKBIsO3PLVWX2 i+MXAmwzqpZf6kh4OnfxjI/tM8RZtuhccWTfFllqHaiVuqVk/fdgnqOFHscuW363nMltpb0k Zo56/FmRW2pc7tpuOcuP//NmZvbXaa6tll8oWcFyolZaqWKaxpGEwhKet7q+S+vLX6/8PemP yz6N7+Fvl344u1yJpTgj0VCLuag4EQACe4xzdgIAAA== X-CMS-MailID: 20200330073548epcas2p3045be9d3c8b76115c76ce27679840b6f X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200330073548epcas2p3045be9d3c8b76115c76ce27679840b6f References: Cc: alsa-devel@alsa-project.org 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" Since a virtual mixer has no backing registers to decide which path to connect, it will try to match with initial value 0. This is to ensure that the default mixer choice will be correctly powered up during initialization. Signed-off-by: Gyeongtaek Lee --- sound/soc/soc-dapm.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 9fb54e6fe254..fc55a0534252 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -802,7 +802,16 @@ static void dapm_set_mixer_path_status(struct snd_soc_dapm_path *p, int i, val = max - val; p->connect = !!val; } else { - p->connect = 0; + /* since a virtual mixer has no backing registers to + * decide which path to connect, it will try to match + * with initial value 0. This is to ensure + * that the default mixer choice will be + * correctly powered up during initialization. + */ + val = 0; + if (invert) + val = max - val; + p->connect = !!val; } } From patchwork Mon Mar 30 07:35:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 193135 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 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 6C168C43331 for ; Mon, 30 Mar 2020 07:38:27 +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 ECD212073B for ; Mon, 30 Mar 2020 07:38:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="pmdrQfwZ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="WoB/LKwg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECD212073B 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 5AEA4166E; Mon, 30 Mar 2020 09:37:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5AEA4166E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585553905; bh=vgEGKcWdRBszd1Ebkb1MIDQXvRIryfW0BFtwL9oxiQY=; h=From:To:Subject:Date:References:Cc:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=pmdrQfwZiHUqwmmGtxF6wU7uhcOrqL5987UE6ZDEEp8jg9dvFDXCDc3EZqVkRt0fz VOMEMB4T5a7ItYL8CkceNMIVkwze1LTDS5SMcUJaThABj7LIdT8dFJlp3dp1Z4lmi9 uTWjoaBLtWe+9uMBw0UGmc/eb/RuztZIwsggl7r0= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A7170F8028D; Mon, 30 Mar 2020 09:36:12 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3DB17F8028E; Mon, 30 Mar 2020 09:36:11 +0200 (CEST) Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id F37D9F8015C for ; Mon, 30 Mar 2020 09:36:06 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F37D9F8015C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="WoB/LKwg" Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200330073603epoutp04ec2285ac92c8faecd50eaf246875d79c~BBL9RSjU90510705107epoutp04X for ; Mon, 30 Mar 2020 07:36:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200330073603epoutp04ec2285ac92c8faecd50eaf246875d79c~BBL9RSjU90510705107epoutp04X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585553763; bh=lzPzgmyYErUQUjbJ/mVA8q01LoKJoAEaEbRTqUwMNOg=; h=From:To:Cc:Subject:Date:References:From; b=WoB/LKwg0PVTqjIY2WQrMFVIG4Ii1eDBOuQhu5/QKD3QchnnACcz/l2KLMFlXwc78 lJoBy9pfrPu4UJ/o9DhqzVdBFC0e8Adkos4lsklTMy7tm6lxZeYl5l775GA1BzJ68a sJJzjEXvZM9qCayggCN0D/5yEF6K1g8qqlf8bOR4= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20200330073603epcas2p1b98d7aeff4436eaa9e21714ce783077e~BBL9Ed5pl2500925009epcas2p1c; Mon, 30 Mar 2020 07:36:03 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.181]) by epsnrtp3.localdomain (Postfix) with ESMTP id 48rPQV1Vf9zMqYkl; Mon, 30 Mar 2020 07:36:02 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 99.06.04142.061A18E5; Mon, 30 Mar 2020 16:36:00 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20200330073600epcas2p3712a5e92d86a524bedda790f2e273935~BBL5-C4Lh0567105671epcas2p3a; Mon, 30 Mar 2020 07:36:00 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200330073600epsmtrp259cdc87ab280fe8057f61454ae90496e~BBL5_RhzR0961309613epsmtrp2W; Mon, 30 Mar 2020 07:36:00 +0000 (GMT) X-AuditID: b6c32a46-3e1ff7000000102e-ad-5e81a160d8d2 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 57.DC.04024.F51A18E5; Mon, 30 Mar 2020 16:35:59 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200330073559epsmtip20b8d0b931c81a018178426efd5ad3e90~BBL5vLCQw2052520525epsmtip20; Mon, 30 Mar 2020 07:35:59 +0000 (GMT) From: =?euc-kr?b?wMyw5sXD?= To: , , Subject: [PATCH 3/3] ASoC: fix regwmask Date: Mon, 30 Mar 2020 16:35:59 +0900 Message-ID: <001001d60665$db7af3e0$9270dba0$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdYGZY7021E+9zAOTcWnd9wWOyg9uw== Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEJsWRmVeSWpSXmKPExsWy7bCmuW7CwsY4g1/v+S2uXDzEZDH14RM2 i29XOpgsNnxfy+jA4rHhcxObx85Zd9k9Nq3qZPNYv+UqSwBLVI5NRmpiSmqRQmpecn5KZl66 rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBOJYWyxJxSoFBAYnGxkr6dTVF+aUmq QkZ+cYmtUmpBSk6BoWGBXnFibnFpXrpecn6ulaGBgZEpUGVCTkbLk17mgidcFa2/GlkaGH9w dDFyckgImEjcvnCVuYuRi0NIYAejxI7re9ggnE+MEru63rFCON8YJWbNOc8C03J52kImiMRe RonJPxZCtbxklPjV/QeoioODTcBKoqdbCaRBRMBR4uuxBrBmZgFFicd/5oDZwgLqElNXL2QF KWcRUJW4MVUYJMwrYClxa9IDdghbUOLkzCdQrUYSS1bPZ4Kw5SW2v53DDHGPgsTPp8tYIVbp Sfxc/QyqXkRidmcb2GsSAhvYJHbcPQH1gIvErh8z2CBsYYlXx7ewQ9hSEp/f7WWDaGhmlHh3 9g9UYgqjRGe3EIRtLLFl7ikmkKMlBJQljtyCWsYn0XH4LztEmFeiow2qWkli46l/UNUSEvM2 QA30kLj7Zx3LBEbFWUi+nIXky1lIvpyF5JsFjCyrGMVSC4pz01OLjQqMkCN7EyM4PWq57WBc cs7nEKMAB6MSD++MrQ1xQqyJZcWVuYcYJTiYlUR42fyBQrwpiZVVqUX58UWlOanFhxhNgZEw kVlKNDkfmLrzSuINTY3MzAwsTS1MzYwslMR5N3HfjBESSE8sSc1OTS1ILYLpY+LglGpgPNn7 wcF/QszWyxtrtfZ/2Wc4Qcq68GPcdf039S2XmjOq44IvCUiy3mV88uf66zmM74KdZhQJF8ut D/2l7ZJkMC046Huv74HuKQVB5w48jXppKdg8aUKctE9rUtSMkDcP3x7e37j5EcvxlSdsr5a1 2Gzm6c9267/nlPs7mXe/mMTnrGKZBY8MlFiKMxINtZiLihMBHnV6f6UDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsWy7bCSvG78wsY4g3M/zSyuXDzEZDH14RM2 i29XOpgsNnxfy+jA4rHhcxObx85Zd9k9Nq3qZPNYv+UqSwBLFJdNSmpOZllqkb5dAldGy5Ne 5oInXBWtvxpZGhh/cHQxcnJICJhIXJ62kAnEFhLYzSjxbJUPRFxC4sP8M+wQtrDE/ZYjrF2M XEA1zxklGu+uB2rg4GATsJLo6VYCqRERcJW4v7cBrJ5ZQFHi8Z85LCC2sIC6xNTVC1lBylkE VCVuTBUGCfMKWErcmvSAHcIWlDg58wkLRKuJROPhbihbXmL72znMECcoSPx8uowVYpWexM/V z6BqRCRmd7YxT2AUnIVk1Cwko2YhGTULScsCRpZVjJKpBcW56bnFhgWGeanlesWJucWleel6 yfm5mxjBIa+luYPx8pL4Q4wCHIxKPLwftjfECbEmlhVX5h5ilOBgVhLhZfMHCvGmJFZWpRbl xxeV5qQWH2KU5mBREud9mncsUkggPbEkNTs1tSC1CCbLxMEp1cCYpq34vYh1pkLp7iM/IgNV p2mKrd3cz9UeniKXyivlfyx8/unDMVoWXD92lLc9UrF6amFmrviVY+dqZfbJm2+v6V96/mlt jMezwsxTVrOul75ru2o7T1CN9d993juabLpfP11N+61+6NxJ9841ryrm/3tfHmiuUbfcevv3 m2oyKZwu6QXVpa+UWIozEg21mIuKEwH7x8YxdQIAAA== X-CMS-MailID: 20200330073600epcas2p3712a5e92d86a524bedda790f2e273935 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200330073600epcas2p3712a5e92d86a524bedda790f2e273935 References: Cc: alsa-devel@alsa-project.org 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(-) 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;