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: 11464891 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 09651159A for ; Mon, 30 Mar 2020 07:37:09 +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 948732073B for ; Mon, 30 Mar 2020 07:37:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="AKCjqwZv"; 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 948732073B 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 E470B1675; Mon, 30 Mar 2020 09:36:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E470B1675 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585553827; bh=1e3pMebWUbZDoixo7d0H/Gp3cux0d02OWLxGb1a6aqQ=; h=From:To:Subject:Date:References:Cc:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=AKCjqwZvO3B+aEvDx/+nhnCqiRpWNZ4p2zIEp064gzJEOhHc5NGVms8iTE1eJ0aRX N5Gb/KwO4fq4ASLwL+8DOw5h+JTM4Ol4W+KSTKLGgWBgxHT5gw7W0a78BdgHeF0zKI /RgZqfAym6MMSfkqepRX/iu1U374dmPd+BCyoa4k= 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) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id E5367F8015C; Mon, 30 Mar 2020 09:36:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 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: =?ks_c_5601-1987?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/NsgPpmvqAOfMMuohLFukNcukNcuk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whKet7q+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:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 11464893 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3C14B912 for ; Mon, 30 Mar 2020 07:37:56 +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 C6D2C2073B for ; Mon, 30 Mar 2020 07:37:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="bl88FKiW"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="R3v4WylP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6D2C2073B 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 0CE30167D; Mon, 30 Mar 2020 09:37:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0CE30167D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585553874; bh=Nr0I8EnIIwwVIoqTaCieEFqjOJwEgUBbKuJw3jeXw7I=; h=From:To:Subject:Date:References:Cc:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=bl88FKiWfoYi8tdbxaZSayt3jMFfVDwU7H87E/W8/see6ERnf1YFqPk0FRwsmCxXH ESh9t5Q5wzWGiKOEHGiVKSSdCfytfWLqtAZRUkwRqq0yFEzftEngMEzx5WhM++CFP0 /5eV1hPRvSgJZwZKJSbBiTZXCkVj7Lwa+2fKtNr4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 74F71F8028B; Mon, 30 Mar 2020 09:36:09 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 967A0F8028B; Mon, 30 Mar 2020 09:36:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 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 83957F8015C for ; Mon, 30 Mar 2020 09:36:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 83957F8015C Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="R3v4WylP" Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200330073558epoutp03d78c6daf37a867f9dfbdfe743d6f52eb~BBL4dJ5PT0381803818epoutp03G for ; Mon, 30 Mar 2020 07:35:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200330073558epoutp03d78c6daf37a867f9dfbdfe743d6f52eb~BBL4dJ5PT0381803818epoutp03G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585553758; bh=PDofgcoC6wnDtbVC1Ce6dQ6p84gSjZunCDonfITFsBc=; h=From:To:Cc:Subject:Date:References:From; b=R3v4WylPgT7kcFCNPoas2PSw9l5ihjAuVu+xqisFgX0JCyo5+4nKBOM4HWkQJHveG kKQwEV0eVwYtMsMiXpW+DpvRAkZDcGA1cNzz149sTQRVWKZLMjHj3f6gmTGdnnvKeA T2dGLYHX87SgIZJjIkijV+D5jUXrpQ5aFE5RfUN4= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20200330073558epcas2p387cb01f77092a440b0b983658ab50409~BBL4Mg7El0115601156epcas2p3A; Mon, 30 Mar 2020 07:35:58 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.40.187]) by epsnrtp4.localdomain (Postfix) with ESMTP id 48rPQN5Z3fzMqYkV; Mon, 30 Mar 2020 07:35:56 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 4B.0F.04105.B51A18E5; Mon, 30 Mar 2020 16:35:55 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20200330073555epcas2p47495e0e0435e6cf34e6a5d7e248a3e80~BBL13_OE-1825418254epcas2p4M; Mon, 30 Mar 2020 07:35:55 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200330073555epsmtrp14b3177662c2301340fd46a0e46f70209~BBL13PZZk1749117491epsmtrp16; Mon, 30 Mar 2020 07:35:55 +0000 (GMT) X-AuditID: b6c32a47-173ff70000001009-0d-5e81a15b3fac Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id E4.DC.04024.B51A18E5; Mon, 30 Mar 2020 16:35:55 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200330073555epsmtip1f784364fc39e2b74cd03170722c33c3a~BBL1uBEHb2856828568epsmtip13; Mon, 30 Mar 2020 07:35:55 +0000 (GMT) From: =?ks_c_5601-1987?b?wMyw5sXD?= To: , , Subject: [PATCH 2/3] ASoC: topology: use name_prefix for new kcontrol Date: Mon, 30 Mar 2020 16:35:55 +0900 Message-ID: <000f01d60665$d8e86220$8ab92660$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdYGZYCfYFCtfXt0RNS7DWpi3m0Xiw== Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEJsWRmVeSWpSXmKPExsWy7bCmmW70wsY4gykfzS2uXDzEZDH14RM2 i29XOpgsNnxfy+jA4rHhcxObx85Zd9k9Nq3qZPNYv+UqSwBLVI5NRmpiSmqRQmpecn5KZl66 rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBOJYWyxJxSoFBAYnGxkr6dTVF+aUmq QkZ+cYmtUmpBSk6BoWGBXnFibnFpXrpecn6ulaGBgZEpUGVCTsab/reMBQ9YK+atm8rewPiY pYuRk0NCwETizJWlbCC2kMAORomHzUpdjFxA9idGifN3f7NDON8YJRb3T2SF6ViyYgorRGIv o8TEExMZIZyXjBLNH78AzeLgYBOwkujpVgJpEBFwlPh6rAFsHbOAosTjP3PAbGEBV4lnkx+D DWURUJVYfug5WJxXwFLiysv3rBC2oMTJmU+geo0klqyezwRhy0tsfzuHGeIgBYmfT5exQuzS k2h918gGUSMiMbuzjRnkNgmBNWwSK47MYodocJGYM3My1P/CEq+Ob4GKS0m87G9jh2hoZpR4 d/YPVGIKo0RntxCEbSyxZe4pJpAnJQSUJY7cgjqOT6Lj8F92iDCvREcbVLWSxMZT/6CqJSTm bYAa6CGx/ewnxgmMirOQfDkLyZezkHw5C8k3CxhZVjGKpRYU56anFhsVGCNH9iZGcHrUct/B uO2czyFGAQ5GJR7eD9sb4oRYE8uKK3MPMUpwMCuJ8LL5A4V4UxIrq1KL8uOLSnNSiw8xmgJj YSKzlGhyPjB155XEG5oamZkZWJpamJoZWSiJ827ivhkjJJCeWJKanZpakFoE08fEwSnVwLj4 fUL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L CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200330073555epcas2p47495e0e0435e6cf34e6a5d7e248a3e80 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" Current topology doesn't add prefix of the component to newly created kcontrol. Signed-off-by: Gyeongtaek Lee --- sound/soc/soc-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) /* remove a mixer kcontrol */ diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 575da6aba807..a152409e8746 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -362,7 +362,7 @@ static int soc_tplg_add_kcontrol(struct soc_tplg *tplg, struct snd_soc_component *comp = tplg->comp; return soc_tplg_add_dcontrol(comp->card->snd_card, - comp->dev, k, NULL, comp, kcontrol); + comp->dev, k, comp->name_prefix, comp, kcontrol); } 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: 11464895 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B491A912 for ; Mon, 30 Mar 2020 07:38:29 +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 4B6E22073B for ; Mon, 30 Mar 2020 07:38:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="B+MDbm4z"; 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 4B6E22073B 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 7C6D91614; Mon, 30 Mar 2020 09:37:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7C6D91614 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585553907; bh=vgEGKcWdRBszd1Ebkb1MIDQXvRIryfW0BFtwL9oxiQY=; h=From:To:Subject:Date:References:Cc:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=B+MDbm4z78pV4Go5wNFd0Tc5Qm8goxtp/HnioOVUbNh1rlw6hQhjzxnqrLOTh+DIW BDGuaNsgDLtU85xo07YDbcI0h2LAW2R7K+1WSmBpxKLpuzOvBdLViSaCQLlXBiEgrW yCSXfaWW1JeGGQ5H3FhpuMLYnIKrwwyV/KPirKHA= 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) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3DB17F8028E; Mon, 30 Mar 2020 09:36:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 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: =?ks_c_5601-1987?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+NgF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AAAA+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< Signed-off-by: Gyeongtaek Lee --- 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;