From patchwork Tue Feb 19 16:29:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 10820275 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A8BEB14E1 for ; Tue, 19 Feb 2019 16:32:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93DCF2CBEB for ; Tue, 19 Feb 2019 16:32:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 921EE2CD3B; Tue, 19 Feb 2019 16:32:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1EAD2CD41 for ; Tue, 19 Feb 2019 16:32:30 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 20205265538; Tue, 19 Feb 2019 17:32:29 +0100 (CET) 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 89BFE26553C; Tue, 19 Feb 2019 17:32:26 +0100 (CET) Received: from esa5.microchip.iphmx.com (esa5.microchip.iphmx.com [216.71.150.166]) by alsa0.perex.cz (Postfix) with ESMTP id 87F72265535 for ; Tue, 19 Feb 2019 17:32:24 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.58,388,1544511600"; d="scan'208";a="24901195" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Feb 2019 09:32:23 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.49) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 19 Feb 2019 09:29:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fcz+BNrqHUGO7J0JVov0pMOK5qxc37GRiYfEeUeIr28=; b=3bwYU6c9q7RHqU4EuvoS1kJR0VJiFnjUl/1CubTYqQpYl/prJKmgFfdQh5v0MPi2U07FnZC8LQvDE9cOQAC0J17zHO+wjK1uB6LRMFzWO3Ba2zfSLJcTDYhrDAZg+0QDL1LfNy6hnpwTHuVNuOLQInCrDd4qjEOc9t09gz+Vb6U= Received: from CY4PR11MB1256.namprd11.prod.outlook.com (10.169.252.10) by CY4PR11MB1749.namprd11.prod.outlook.com (10.175.61.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.14; Tue, 19 Feb 2019 16:29:12 +0000 Received: from CY4PR11MB1256.namprd11.prod.outlook.com ([fe80::d9cc:7741:4930:cda3]) by CY4PR11MB1256.namprd11.prod.outlook.com ([fe80::d9cc:7741:4930:cda3%8]) with mapi id 15.20.1643.014; Tue, 19 Feb 2019 16:29:12 +0000 From: To: , Thread-Topic: [PATCH v2 1/2] ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE() Thread-Index: AQHUyHA/YMTuyHOEaUug6TBFL754tg== Date: Tue, 19 Feb 2019 16:29:12 +0000 Message-ID: <20190219162840.7244-1-codrin.ciubotariu@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1P195CA0033.EURP195.PROD.OUTLOOK.COM (2603:10a6:802:5a::22) To CY4PR11MB1256.namprd11.prod.outlook.com (2603:10b6:903:25::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Codrin.Ciubotariu@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fcaad6dd-4ddf-4bd4-4372-08d696876189 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:CY4PR11MB1749; x-ms-traffictypediagnostic: CY4PR11MB1749: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; CY4PR11MB1749; 23:GOChd5HY4UZxhmFEF3WcCW3pnWKo/Zk8oQ58blY?= =?iso-8859-1?q?/vOsgA+ajzYC5Qw?= =?iso-8859-1?q?rURG/nmyL5wnZbzPEhI6p0fz0X1IOrh+2LC/iMiLv5eOU5dajZvY/q+kZK5a?= =?iso-8859-1?q?MxxmeovB0z7P7RhczyCHSeMKfzg60Kzb8MXoI3WqNap11AHtbuuJiZed32a1?= =?iso-8859-1?q?eXIyqmg8ZQqAZdYpnAN9CcH5gd230Owd5iZPTMjH4LOexGBGslj3yluZmLPH?= =?iso-8859-1?q?6szxRdE9pNM24TDFzDroe0Hwh2wtu9Nv+TU3A+RNFONQJjzB+EKG8hb5slh3?= =?iso-8859-1?q?8pLYZhwbmlov1ivjIVaGnqJlNx9MiNoCE3QDqubvA+O12Dwr28ie5yxBJ9qO?= =?iso-8859-1?q?M5SVl0lvPILaw505+DSp1otHC6Q+dVO2o1rVGN/O6oShnsME8HLyYkCVymXL?= =?iso-8859-1?q?G4x08mggvLA5wilf8JWxlbcDSkPXsnkZ8Y5wi9eVwaK51l6zxF3MuMjWinee?= =?iso-8859-1?q?H6alFZ1blf7L+dzDj4hdRK2lPlTdFyAQ5EIFjXj6kco5Jtuy5hjSypeZM2rg?= =?iso-8859-1?q?lehbb9IUd5FpsPr+N5LCMJwKinOISN42GL5FeSJXGTfKgmTc/DLnzfl9QYwL?= =?iso-8859-1?q?LxUcsEU65HBFSEBpzmY3m9tI3XD0KPU7bpzLkp/WKR2ltsVbXxGZo8KOeCCt?= =?iso-8859-1?q?jwi+1cvmNyvlfHZ2o69Iaxv/w4FawTRlxKfwI/LtVFCzXoe21hLkHlH6RzV/?= =?iso-8859-1?q?U8X+0f8pLzWwVjJqNDwKLr+g6pkbU28CGGrQnZhe+H/Fhm4JxdNZ3onrUXd/?= =?iso-8859-1?q?NKa8k7tNvaTQVZh0YmXXIDI5Tr/M42WIPJe3dERvXIoafNTRfDIfQlcPQZIB?= =?iso-8859-1?q?1R07Br8pZ+moVwIgsKdXTbRrScWUn4jOd9mPa38oq7cbIEnQOODUrkkPw4kk?= =?iso-8859-1?q?fPCkl+UrgIj6qjuQmXng7pfCONcZ/aizfQqRL6bmznndMr3rxkrDQJivxfXl?= =?iso-8859-1?q?LZF2XtpUNZmWsUnc3/iuMc1N8zDMlpmKe5o1ePrnCuvmdHJhcwOp7Do1eBOm?= =?iso-8859-1?q?+c7VrIfOUEYuYDej2rAVvmpTqO6ZSlPVfBmMyJDK8h8mBddbDbSV7aT79CY6?= =?iso-8859-1?q?IuLksRhOekd1VVSG+6c26Eg7H1GNFqOOabL6MMpOXzyafO+AEtginr0SWewh?= =?iso-8859-1?q?MHa+Atr59vSFEwXuUlpaukI1r1ThGhFGN8eaVdffSdzhXif6clzgBJ2ziSss?= =?iso-8859-1?q?bApr2r5WLbLINSOefvq3/7tvkmATi8rT2VpbwDsNdtn/qF3wnKiZA+AjjYjp?= =?iso-8859-1?q?Yupp4=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09538D3531 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(366004)(136003)(39860400002)(189003)(199004)(8676002)(3846002)(6506007)(8936002)(81166006)(81156014)(4744005)(386003)(36756003)(50226002)(6436002)(71190400001)(71200400001)(478600001)(6116002)(53936002)(72206003)(1076003)(102836004)(5660300002)(305945005)(6512007)(7736002)(66066001)(6486002)(68736007)(2616005)(476003)(25786009)(486006)(106356001)(4326008)(105586002)(52116002)(97736004)(86362001)(14454004)(26005)(14444005)(256004)(186003)(2501003)(107886003)(2906002)(316002)(54906003)(110136005)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR11MB1749; H:CY4PR11MB1256.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: DOcRoZuFMF250k/0dnmRCY6OyREGh9DQkhjLf/oVaqMcJrt/HGYkNE6T1ih09fNTKru4YLdFMrlDAAqT9RKwEhN/oL/8E1Ozu7gng3mQC+qSBi3BTGHfLZhyQkQoDPWH1oHJiYmuEWfCcim4kMqM1tN4Ag1JD24nuNZMlHf3holTT9IRanSLOvnqxNdd9gi4IIDRpz8zVIKvPR/665f6GydoGDz1dIJGxcLh8mwP4j1qqNdjLzMb0FojPKPn0wqIwXh7hQO6BUzO5FY1MRtaH7CJLuxC/P5AC0Iyppko8fvZCQOhJ7PLiF1JnNBxelM2NxwQqnCaJShLfMGFfUJ+2Qk0OrJqSvL2xRBJiEDzqISHOf0aQZ1vDs1ZBCiZv+hfiQNbTNlTmVa0zmNev5Jkntweh6iv0TsLbkotqvJM0CE= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: fcaad6dd-4ddf-4bd4-4372-08d696876189 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2019 16:29:10.3006 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1749 X-OriginatorOrg: microchip.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, afd@ti.com, m-stecklein@ti.com, Codrin.Ciubotariu@microchip.com, dannenberg@ti.com Subject: [alsa-devel] [PATCH v2 1/2] ASoC: codecs: pcm186x: fix wrong usage of DECLARE_TLV_DB_SCALE() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Codrin Ciubotariu According to DS, the gain is between -12 dB and 40 dB, with a 0.5 dB step. Tested on pcm1863. Signed-off-by: Codrin Ciubotariu Acked-by: Andrew F. Davis --- Changes in v2: - fixed title - added correct macro; - revert the removal of a new line; sound/soc/codecs/pcm186x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/pcm186x.c b/sound/soc/codecs/pcm186x.c index 809b7e9f03ca..c36a391fec8a 100644 --- a/sound/soc/codecs/pcm186x.c +++ b/sound/soc/codecs/pcm186x.c @@ -42,7 +42,7 @@ struct pcm186x_priv { bool is_master_mode; }; -static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 4000, 50); +static const DECLARE_TLV_DB_SCALE(pcm186x_pga_tlv, -1200, 50, 0); static const struct snd_kcontrol_new pcm1863_snd_controls[] = { SOC_DOUBLE_R_S_TLV("ADC Capture Volume", PCM186X_PGA_VAL_CH1_L, From patchwork Tue Feb 19 16:29:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Codrin Ciubotariu X-Patchwork-Id: 10820333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADEB51390 for ; Tue, 19 Feb 2019 16:34:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98AEF2CB55 for ; Tue, 19 Feb 2019 16:34:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C6A52CC91; Tue, 19 Feb 2019 16:34:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D21F92CB55 for ; Tue, 19 Feb 2019 16:34:45 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id F0C7726553C; Tue, 19 Feb 2019 17:34:43 +0100 (CET) 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 DDDBE265542; Tue, 19 Feb 2019 17:34:41 +0100 (CET) Received: from esa5.microchip.iphmx.com (esa5.microchip.iphmx.com [216.71.150.166]) by alsa0.perex.cz (Postfix) with ESMTP id A395B265538 for ; Tue, 19 Feb 2019 17:34:39 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.58,388,1544511600"; d="scan'208";a="24901264" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 19 Feb 2019 09:34:34 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.49) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 19 Feb 2019 09:30:02 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=crtjtMQSrRaTjDy4m7C1xfz537DF4tJ32eUdO2pJXKI=; b=fClR5lfUlnYLRGRVXsIiLg4uehMZNufVtqLpqyy48W2PuZoOjgbO/PX8vKpSiy9B+B9AbRXBQmbjs8QOQ+heUUyK9YcfV0YA4dITPAlNdKMuQv9Na7yOBqiJJDEjJuF8OYrtRTv33VjctQJjL+LIyY4W7lG8BXIQWtA9aH91b94= Received: from CY4PR11MB1256.namprd11.prod.outlook.com (10.169.252.10) by CY4PR11MB1749.namprd11.prod.outlook.com (10.175.61.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.14; Tue, 19 Feb 2019 16:29:28 +0000 Received: from CY4PR11MB1256.namprd11.prod.outlook.com ([fe80::d9cc:7741:4930:cda3]) by CY4PR11MB1256.namprd11.prod.outlook.com ([fe80::d9cc:7741:4930:cda3%8]) with mapi id 15.20.1643.014; Tue, 19 Feb 2019 16:29:28 +0000 From: To: , Thread-Topic: [PATCH v2 2/2] ASoC: codecs: pcm186x: Fix energysense SLEEP bit Thread-Index: AQHUyHBItzr+dNeZQEqfT8mjpFYo1g== Date: Tue, 19 Feb 2019 16:29:28 +0000 Message-ID: <20190219162840.7244-2-codrin.ciubotariu@microchip.com> References: <20190219162840.7244-1-codrin.ciubotariu@microchip.com> In-Reply-To: <20190219162840.7244-1-codrin.ciubotariu@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1P195CA0033.EURP195.PROD.OUTLOOK.COM (2603:10a6:802:5a::22) To CY4PR11MB1256.namprd11.prod.outlook.com (2603:10b6:903:25::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Codrin.Ciubotariu@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 83ebb59b-2226-4077-6b46-08d696876af8 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:CY4PR11MB1749; x-ms-traffictypediagnostic: CY4PR11MB1749: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; CY4PR11MB1749; 23:3SOtkEQ2Z2V53mwqQPzWkFNfBFGMGS+kuX4KZLA?= =?iso-8859-1?q?gfIILaJTB97k9ny?= =?iso-8859-1?q?6G0/j7WnEJID6CjY2gq/vxhbFKSIfkIPyBjSWsEVma/HI9g4gMuF1wW7nJE6?= =?iso-8859-1?q?RPUEMa52wBmVhtfdb7Hr8Z2hoHqCLP5SDLgrqsi+1m+p36G8NYEn9VOSSHd0?= =?iso-8859-1?q?I8CmQ1oHNRMj81+n33KGR2cw+otuLpuYiflLw49GC9yWiDWcZ/SykIbRGO6A?= =?iso-8859-1?q?lEsBG6Z11bJIc2Yvusmddd7s21RJV4B7guW+1F37lo/QEkPSUlYunUm43kYw?= =?iso-8859-1?q?04tIjQp36vVoqeby5cRDta1PNwMsqJWuvvZs86s401AphNXnLFGMpkYgY/La?= =?iso-8859-1?q?1+He5LiQNdwXV2zWf4m4DBAJVPvInf+S6gFb1djhv32hk/6KW1GWVdKt8Es3?= =?iso-8859-1?q?zdYJGPzLVIcnIrIItM1ylIJcOeuinALUJNo4FuXX+Rj3PwyolGYvR6qn7mgo?= =?iso-8859-1?q?3WIhYtk6YRM9nGkfz8zeIvUOy3EpM9cdGnVZrSbNYBeyVMURw/GHyTLxPgQG?= =?iso-8859-1?q?yJQbOTGYYg34rOJx2+3XhM3p1SgEs2KrB0y7/cBSLAQb+Hji0wGeTEsY7t7q?= =?iso-8859-1?q?CF4oXli1TGqD5e1Im5HMrnN5xyzPEmEJI6bBEfAifa8E6NgiJncd6OdWdnRg?= =?iso-8859-1?q?X/UntXWo9eF3rEBsQre3ojCT8lsii1KxUic/tb+cT+oJTytjwrimCaWBv+ZW?= =?iso-8859-1?q?lp8umy6JXlDo3DAoB8MLo0KNrwOtWJfSCSjLtZjNOk0eGUMlSnyTWKI3bDYk?= =?iso-8859-1?q?YlpXeYzIjuLBfqrFkaAlb5p6sJ3EpMV32NWKGTZvE9ZEwYwxtl3ZeLUhR6wq?= =?iso-8859-1?q?sG4EcKfaPrM89VS+80DBPrWsw9BT0657a9UxuakzHuUEnlQSOIDhTLAN8vHH?= =?iso-8859-1?q?09l+SaFnscmJJ4dooShgrZblx6PSYUQW6sJXz+NmCqbJ//eBP3zYJFFQORwd?= =?iso-8859-1?q?TTXSoenY1MqYwcKHSK3OCZZveLQKRFQmXK2Z7LTVAimgHPU+Jm9aneciSA04?= =?iso-8859-1?q?xMdgtx3WASKPr962JJUu3pcSIo+zuT5V1K2Ud8CsV+zbH5n9QNnj5aLSUi/S?= =?iso-8859-1?q?5wtcwGKrY4xxkhLHbqfaS2/Ti9c3AzQ2XrXhOKII0J7FibM3rvHzon4EnKb/?= =?iso-8859-1?q?05qtyEXIID3s5uMzdoNAf/rpMJrUpx94LmIZRzAFqyUxTDyFq/rVdZBA7Bns?= =?iso-8859-1?q?XrYFQGtelefrtBAdKTiicVXYUVOr5urPBabC6/nJmkVgTO16DzuJh51y3PXc?= =?iso-8859-1?q?uV6uQ4wiEj9STFLY6FeWTc99e5zu4CbTEVnLyThKfXkCqg/w=3D=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09538D3531 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(366004)(136003)(39860400002)(189003)(199004)(8676002)(3846002)(6506007)(8936002)(81166006)(81156014)(386003)(36756003)(50226002)(6436002)(71190400001)(71200400001)(478600001)(6116002)(53936002)(72206003)(1076003)(102836004)(5660300002)(305945005)(6512007)(7736002)(66066001)(6486002)(68736007)(2616005)(476003)(25786009)(76176011)(486006)(106356001)(4326008)(105586002)(52116002)(97736004)(86362001)(14454004)(26005)(256004)(186003)(2501003)(107886003)(2906002)(316002)(54906003)(110136005)(446003)(99286004)(11346002)(197533005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR11MB1749; H:CY4PR11MB1256.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: xEnY8F7U2S1ultVzx29XJGYrlihn8GIg7DTw21IG4j/BQFQb3dIq4nmH86UOQVUeK1dE4VWzgErQHKR7WoAUpAf0o6WqzUwx/dPKDepOfNXuiO6FjuU0HNbBY0py1kV+Wk7wZkbWw9XVjxNszntzJRPpWehA9NtvSNpZcn4W2VDiUvMKOxmZKXhXPZ5OF4GzEVeu6JfU+GyYWDF2icv4ryWcVZnkBUMVp0pbs5IXSaDYVM2LsorDLMa0UPjtRmMah+msJMCNVJ9gShLxnexSkjbLf/ilV0Dw0efBPlAs9zddobfBG5DQRbVGHn742M1GuGe+KZn87ySeijaU2I679ciXMXsipBWbwowDwuj+CYQX6cei8er3h0XmbCHb9BWTAqNliw5p2AP4Xk78kjLkD384sH/HvYagYC4pR8LTP4w= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 83ebb59b-2226-4077-6b46-08d696876af8 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2019 16:29:26.1206 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1749 X-OriginatorOrg: microchip.com Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, afd@ti.com, m-stecklein@ti.com, Codrin.Ciubotariu@microchip.com, dannenberg@ti.com Subject: [alsa-devel] [PATCH v2 2/2] ASoC: codecs: pcm186x: Fix energysense SLEEP bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Codrin Ciubotariu The ADCs are sleeping when the SLEEP bit is set and running when it's cleared, so the bit should be inverted. Tested on pcm1863. Signed-off-by: Codrin Ciubotariu Acked-by: Andrew F. Davis --- Changes in v2: - none; sound/soc/codecs/pcm186x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/pcm186x.c b/sound/soc/codecs/pcm186x.c index c36a391fec8a..c5fcc632f670 100644 --- a/sound/soc/codecs/pcm186x.c +++ b/sound/soc/codecs/pcm186x.c @@ -158,7 +158,7 @@ static const struct snd_soc_dapm_widget pcm1863_dapm_widgets[] = { * Put the codec into SLEEP mode when not in use, allowing the * Energysense mechanism to operate. */ - SND_SOC_DAPM_ADC("ADC", "HiFi Capture", PCM186X_POWER_CTRL, 1, 0), + SND_SOC_DAPM_ADC("ADC", "HiFi Capture", PCM186X_POWER_CTRL, 1, 1), }; static const struct snd_soc_dapm_widget pcm1865_dapm_widgets[] = { @@ -184,8 +184,8 @@ static const struct snd_soc_dapm_widget pcm1865_dapm_widgets[] = { * Put the codec into SLEEP mode when not in use, allowing the * Energysense mechanism to operate. */ - SND_SOC_DAPM_ADC("ADC1", "HiFi Capture 1", PCM186X_POWER_CTRL, 1, 0), - SND_SOC_DAPM_ADC("ADC2", "HiFi Capture 2", PCM186X_POWER_CTRL, 1, 0), + SND_SOC_DAPM_ADC("ADC1", "HiFi Capture 1", PCM186X_POWER_CTRL, 1, 1), + SND_SOC_DAPM_ADC("ADC2", "HiFi Capture 2", PCM186X_POWER_CTRL, 1, 1), }; static const struct snd_soc_dapm_route pcm1863_dapm_routes[] = {