From patchwork Tue Mar 31 06:50:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 11466781 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 C3F1F912 for ; Tue, 31 Mar 2020 06:52:42 +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 E1E2520748 for ; Tue, 31 Mar 2020 06:52:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="sNtli6hk"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="QAUmn13w" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1E2520748 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 EDA4C166F; Tue, 31 Mar 2020 08:51:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EDA4C166F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585637560; bh=Kq9Hw5ZG3ufm5ozfL7lQimBN1/pP1TJx6p5BvWuEYXs=; h=From:To:In-Reply-To:Subject:Date:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=sNtli6hkXMJBf8qm4yfioh1+sD4xFKc8mCjkMbImBqNCimK4MiNU3D9BhlUnQbCJq FWBuV2+bTcOpjWZZCqZ7ZvkgHZaj7fRsmJa5XydZxiiYqogscT1RQ5nkLWvXziqjbJ l6vNvVYjEZ3BN7yVK/LynsCDz1iGx0bxY+RiqNqQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9AE83F8010C; Tue, 31 Mar 2020 08:51: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 1D106F801F2; Tue, 31 Mar 2020 08:51:00 +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 E77AAF80140 for ; Tue, 31 Mar 2020 08:50:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E77AAF80140 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="QAUmn13w" Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200331065051epoutp0470df26c52cafc9a1d80e0bc35f6e6d27~BUNyDT9gN0608606086epoutp04h for ; Tue, 31 Mar 2020 06:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200331065051epoutp0470df26c52cafc9a1d80e0bc35f6e6d27~BUNyDT9gN0608606086epoutp04h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585637451; bh=QkVhoe/r4nScAk73kbyEkoWJBzwgsM68Y5qesHFN6ys=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=QAUmn13wX6mWkjye2aBFWumGD/zUXYfyca46uGbVLDkH351zW2LPXgFHcyg3G/8oK 2acBdwgYcpcQ6RLX58XPm7DdONIPZIwGwKg+tsAgDOFskk+JAvNT5z2lsegEX7AaEl uP+LsBfY7sicsxXDAXybuvF2nG7G5Ykz2Bk9Vxfo= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20200331065045epcas2p1a92d0c7292097b8e7fe4c29b3560b246~BUNscqsf60802708027epcas2p1N; Tue, 31 Mar 2020 06:50:45 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.188]) by epsnrtp1.localdomain (Postfix) with ESMTP id 48s0Mm4nN1zMqYly; Tue, 31 Mar 2020 06:50:44 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 26.4D.04142.348E28E5; Tue, 31 Mar 2020 15:50:44 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20200331065039epcas2p44ff6042af85c92150e52e576251a6465~BUNm21SpV0114901149epcas2p4Y; Tue, 31 Mar 2020 06:50:39 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200331065039epsmtrp22ab12a8fc95656ce11a822243bbf759c~BUNm1CSzR0892508925epsmtrp2f; Tue, 31 Mar 2020 06:50:39 +0000 (GMT) X-AuditID: b6c32a46-3f9ff7000000102e-dc-5e82e8437e1e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 39.F6.04158.F38E28E5; Tue, 31 Mar 2020 15:50:39 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200331065039epsmtip1683cb81807772187650c83a8875576e0~BUNmqmbCx1390913909epsmtip1J; Tue, 31 Mar 2020 06:50:39 +0000 (GMT) From: =?ks_c_5601-1987?b?wMyw5sXD?= To: In-Reply-To: Subject: [PATCH 1/3] ASoC: dapm: connect virtual mux with default value Date: Tue, 31 Mar 2020 15:50:39 +0900 Message-ID: <012601d60728$b090bc50$11b234f0$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AQHT5UBTKtX+5pznRWgpVI/NXVAXlgFfQZWpqFt1jmCAABUx8A== X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTYRjG+Xa2s6M1O02rlyU5ThdQmG2rraNphYkusjRECwnnQU8q7sbO tAtFXqi8RFqZ5Lx01UwJTYbZRaFpVlqSoWRFd7tCBk2MbtLmWbD/nvf9ngd+z/d9BCZtxmVE rsnGWk2MgcL9hV19oRpF7KfidOXd7fToiFNAn3ozgdOnuyqE9PRoqYC+M3JBQHf8uILo/qJq wQaxrsNVjOuu21+IdZ2tZbjumKMV6dodY8IkUZohKodlslirnDVlmrNyTdnR1OZk/Ua9RqtU KVQR9BpKbmKMbDQVm5CkiMs1uDEoeQFjyHevkhiOo1aui7Ka822sPMfM2aIp1pJlsKhUlnCO MXL5puzwTLMxUqVUqjVuZ4YhZ8g1iSzXiD0NfwdQIRrEy5EfAeRq+P37CCpH/oSU7EbQVT8k 5IfvCD5/tYv4YRpBw9QH4f/I5ONpb6QHQWXzI4wfPiNwTVx2uwgCJyPhaAXlCQSRAFM37gk8 How8gaDt00fk8fiREqiaWevxBJLxMFrSMsskJJfDkbFfyKMlZAQU1/aKeD0f7tdOzEJgpBou tp0R8DoErn2tx3g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WlOanFhxil OViUxHnl849FCgmkJ5akZqemFqQWwWSZODilGhj5nwZvTzrS/cdw33dn31OB1xk1DPgSZ8x9 e7cthTf8+qGSDWITf88WNdxt8H9WWrfq0bvzpsUF3zeWNHC+vLrx37bzOgsvMz+ZkPDzQ/tu 93UOUxJM58gl7VzBrn/i5cs/S/4rTYkP3Hc/5Ob/lKwCnm7v+uoaHQHHyRdVtS5wr6pSOWvx Z0m6EktxRqKhFnNRcSIAeSTAh6MCAAA= X-CMS-MailID: 20200331065039epcas2p44ff6042af85c92150e52e576251a6465 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200330073548epcas2p3045be9d3c8b76115c76ce27679840b6f References: <000e01d60665$d48444b0$7d8cce10$@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" 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(-) -- 2.21.0 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 Tue Mar 31 06:50:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 11466783 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 2AD4B912 for ; Tue, 31 Mar 2020 06:53:28 +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 B535F20748 for ; Tue, 31 Mar 2020 06:53:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="XVTQ4XE5"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="vgngJSvL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B535F20748 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 15E171677; Tue, 31 Mar 2020 08:52:42 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 15E171677 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585637606; bh=2IVFWnt3waTLjgZPzdYtg3uIY0Zugne4v34l316QAOo=; h=From:To:Subject:Date:References:Cc:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=XVTQ4XE5zCjDsW6XlqLoWRJpHs1cZwuupZKMae4MXAxrr1n5t6XjKH1zzMy/ruWg6 T5Chs0RHe+BTlUEBlcuaWelJf4t75dKd3I9/LMZ23UJ4RrfBK3agnjYjOk3Ax9xCGw jlnxHqv7hGGBU2pvk9eGCCX5Bw2ww7Ps2p51NHA4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id D4ADBF80256; Tue, 31 Mar 2020 08:51:13 +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 D70A5F8010D; Tue, 31 Mar 2020 08:51:05 +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 mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B9F37F8010D for ; Tue, 31 Mar 2020 08:50:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B9F37F8010D Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="vgngJSvL" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200331065053epoutp01bf7e60d8dd08126be4bc381164bbef35~BUNztmZb33006230062epoutp01L for ; Tue, 31 Mar 2020 06:50:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200331065053epoutp01bf7e60d8dd08126be4bc381164bbef35~BUNztmZb33006230062epoutp01L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585637453; bh=QzzIk6BgGxSORHAQt5EdjhRg4BuTX4Cr3D/IUub2cEs=; h=From:To:Cc:Subject:Date:References:From; b=vgngJSvLWbR7g6B8281fRakey+2oQWPbFb5sCPv//RL7cygB+yphKHSEw69ih5kMr c8b6jZ7PHgTGT9Imd4rQqckn/qJBs9WKJJpYvUTL5GHZ9FpOMTExic3oSiyKiUTBUc 5VRXjuXf10iS+4rwHOrJjoY5olW/ofUFs6NIFhnE= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20200331065049epcas2p122a881b0a5cea28641cff3a6e29a3368~BUNwTU-wv2742827428epcas2p1j; Tue, 31 Mar 2020 06:50:49 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.186]) by epsnrtp2.localdomain (Postfix) with ESMTP id 48s0Mr4m0xzMqYkX; Tue, 31 Mar 2020 06:50:48 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id F9.4D.04142.848E28E5; Tue, 31 Mar 2020 15:50:48 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20200331065047epcas2p23455307bb2eed7b62a04e387e6ebf9c1~BUNtrwlLO1938219382epcas2p2Q; Tue, 31 Mar 2020 06:50:47 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200331065047epsmtrp265b773e5cb187ffe4f2f85935cc4ff71~BUNtpZCie0913509135epsmtrp24; Tue, 31 Mar 2020 06:50:47 +0000 (GMT) X-AuditID: b6c32a46-3f9ff7000000102e-ec-5e82e848ad70 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 98.55.04024.648E28E5; Tue, 31 Mar 2020 15:50:47 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200331065046epsmtip1cb91220e99bf1de1594fc8fd024b7760~BUNtfqDVS1602416024epsmtip1B; Tue, 31 Mar 2020 06:50:46 +0000 (GMT) From: =?ks_c_5601-1987?b?wMyw5sXD?= To: Subject: [PATCH 2/3] ASoC: topology: use name_prefix for new kcontrol Date: Tue, 31 Mar 2020 15:50:46 +0900 Message-ID: <012701d60728$b4efd0b0$1ecf7210$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AdYHJ7VgAsR74+N5SxW9G/2MD9NPog== X-Brightmail-Tracker: H4sIAAAAAAAAA01Sf0gTYRjmu9tul7W4ltWbBM4LkSR1m23dQiPMH8OKhKCkQrvcpdJ2W7st KoK0SNSFpanZKrOUDEUzE7PMgmllv4RKKbMomZoaFVQYSkVzN2H/Pe/7Ps/3PQ/vS+KKeiKE zOXtnI1nTTQRJGnvXsVEGcaPZ6gmOyOY/pdujKkYHiGYqnanhJnqL8SYhy9rMabldxNievLL sQ0yQ8vP44ThjuuDzNDaUEQYStoakOFG24AkTbrTFJfDsUbOpuT4LIsxl8+Opzdty9yYqdWp 1FFqPbOWVvKsmYunEzenRSXnmrw+aOVB1uTwttJYQaBj1sfZLA47p8yxCPZ4mrMaTVa12hot sGbBwWdHZ1nM69QqlUbrZe4x5ZzobcesH6WHqpsrZHnIIylG80ig1sCr5heoGAWRCqoDweOa KUIsfiAYfXgLE4spBM++3yfmJPeG3kvFQReCmfpqv2QCwclrTq+EJAlqHZxy0rOCYArg191e 30s4VYagcfwzmh0sppJg7KxHOsuXUOFQVrl1ti2n9HDaU46LeBE8OT/i84pTGqhrvIyJ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qrUovz4otKc1OJDjNIcLErivE/zjkUKCaQnlqRmp6YW pBbBZJk4OKUaGCenP0iOWHz8FPOaVdUKPh+i1+w+/SRvQueRmbecE/mWLfXMrng6bavotwdu +2/qz03UnJrww+JVX8u7j+YrlerN2Fkz/mT9FQgw/3RUMP6d3quf30p3Htfaelj1zy/7NNNl 157pTkl6YXvJPKpG6VFR0hZrB9ks/sx09+rOc8d9GmtedJ9l51RiKc5INNRiLipOBABMj2TO iwIAAA== X-CMS-MailID: 20200331065047epcas2p23455307bb2eed7b62a04e387e6ebf9c1 X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200331065047epcas2p23455307bb2eed7b62a04e387e6ebf9c1 References: 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" 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 */ -- 2.21.0 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 Tue Mar 31 06:51:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyeongtaek Lee X-Patchwork-Id: 11466785 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 3538692A for ; Tue, 31 Mar 2020 06:54:13 +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 BF75220748 for ; Tue, 31 Mar 2020 06:54:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="ZKnHPHIT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="e1UexiW3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BF75220748 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 E59F0166F; Tue, 31 Mar 2020 08:53:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E59F0166F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1585637651; bh=mEL6MMsIQOcY2F7LJKgzg7k5EvB4ly0iU5/qeDEJ/ec=; h=From:To:In-Reply-To:Subject:Date:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ZKnHPHIT4eysW3W8yK6kaS3luCMRcz/qUWD8b+DOZPH/MkewHD5TX+z7Z3ME6qG34 21m6WMnZIdT5MFRovk5+oIZGuzFGsDqPYQMeuXvsovzLKTBjiaDl90bOe8mLYO44ib TwoVlTV/47gr7wGQG5MICZmLMl1FQdmLqxf8808w= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 046CBF80299; Tue, 31 Mar 2020 08:51:20 +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 8A4C9F80292; Tue, 31 Mar 2020 08:51:18 +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 AB3F1F80255 for ; Tue, 31 Mar 2020 08:51:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz AB3F1F80255 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="e1UexiW3" Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200331065110epoutp0323d3cf7c5de90334d7c5a407fd654b03~BUODYNt0l0501105011epoutp039 for ; Tue, 31 Mar 2020 06:51:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200331065110epoutp0323d3cf7c5de90334d7c5a407fd654b03~BUODYNt0l0501105011epoutp039 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1585637470; bh=aRgYIAMafSpzH03Rk1eL71xLTLcQu2byvBHNul/9XLM=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=e1UexiW36gVwP2NJf6XzHdT/jMMpHJCQAm1Aqk9K6KrU4ZIPhHeSbW0WyYr8ioVa7 ZN5tK+zQ01Se05sh2noZBDrqi/ALwa38yg2BoHonOFNhKGHriy3FexS1ELvFCrbGnX O6FBHKODfY80M35OyGy7RTxtyT6kT8q2GeFRNu3Y= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20200331065108epcas2p2781c72eab3332a380169b7906e629c66~BUOBtu7EY0787507875epcas2p2U; Tue, 31 Mar 2020 06:51:08 +0000 (GMT) Received: from epsmges2p1.samsung.com (unknown [182.195.40.191]) by epsnrtp3.localdomain (Postfix) with ESMTP id 48s0NC2BwZzMqYkn; Tue, 31 Mar 2020 06:51:07 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p1.samsung.com (Symantec Messaging Gateway) with SMTP id A0.86.04128.A58E28E5; Tue, 31 Mar 2020 15:51:06 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20200331065101epcas2p44b2b04ff8965ca0c42a2119e13c7db7d~BUN7c4IDw2901629016epcas2p4s; Tue, 31 Mar 2020 06:51:01 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200331065101epsmtrp16f38134c80817e45e1edc7339a0bf817~BUN7bnSSS1710017100epsmtrp1E; Tue, 31 Mar 2020 06:51:01 +0000 (GMT) X-AuditID: b6c32a45-fb3ff70000001020-ec-5e82e85a529d Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id CF.F6.04158.558E28E5; Tue, 31 Mar 2020 15:51:01 +0900 (KST) Received: from KORDO025540 (unknown [12.36.182.130]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200331065101epsmtip260845b075fc1af9ffe64a6ede826ad2c~BUN7Imr1x0822208222epsmtip2j; Tue, 31 Mar 2020 06:51:01 +0000 (GMT) From: =?ks_c_5601-1987?b?wMyw5sXD?= To: In-Reply-To: Subject: [PATCH 3/3] ASoC: fix regwmask Date: Tue, 31 Mar 2020 15:51:01 +0900 Message-ID: <012801d60728$bdab3a50$3901aef0$@samsung.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AQLEOIH1sK9HcthW43dBh7e87NpZcwEJSRRNpn1/DiCAABT84A== X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRjuO+fs7Mxanably/60TkRkWNty88y0QksGCQkJ0QXtsB1U2o2d Lcz6oabisouZhq0y7QZeMqt1Ryq1MqNA0qQbWFpakGReMitp8yzYv+d73ueB53m/l8IVF0kl lW1z8U4bZ2HIMOJm2/LY6O1DBenqd5UM293VirGVHwZItupmKcFOdJdg7KOu8xjb/PMyYtvz K7D1UmPzaAFpvON9LzVeq/eQxiO+emS84ushUiXbLfFZPGfmnSreZrKbs22ZCcymLRlJGTq9 WhOtMbCxjMrGWfkEZkNKanRytsWfg1Ht4SxuP5XKCQKzam280+528aosu+BKYHiH2eLQaBwr Bc4quG2ZK012a5xGrdbq/MpdlqyxvgbC0R+WUzSVT+ShSeogklFAx8Do9WryIAqjFPRtBB2+ ciQ+fiCo+/0tOJnwT5oaif+WvPZhLIAVdAuC3o+5ougLgvIWr99BUSQdB4dKmYAmggYYu9uB BTQ4XY6gYWgQBTQyWg5l02sCmnB6GVQ21EoCNEEvBc9pfYCW0wZoaTqCRDwfnp4cmImA01q4 0HAWE/EiuPXtNC5GU8GvT5ckIh8BpzzFuBghEQoPH5rpAnQ/Cd9r35KiYQPcr+lHIg6Hr098 UhEr4cvRYq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WI3vvp6Fzyc09G606vlI87 +z8ErbhtWXtsTWhIr3M5T/Jn/caWrot84YqRKcfnfe8N+uCszhcz3VzyCU91fuzC1Lw/wkUa F4Xq9fa+tE+Tyk0Tui7y0jL13NfgKTkbjm/frOVRcFsvr0jKgc2OgXHvoXUWbFKZlkosxRmJ hlrMRcWJAN1ToNSjAgAA X-CMS-MailID: 20200331065101epcas2p44b2b04ff8965ca0c42a2119e13c7db7d 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;