From patchwork Mon Feb 27 09:19:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chancel Liu X-Patchwork-Id: 13153126 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id ACEB1C64ED8 for ; Mon, 27 Feb 2023 09:21:57 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 456D583E; Mon, 27 Feb 2023 10:21:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 456D583E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1677489715; bh=1iAn1h303bbQiLVja3pLUwOEv3x3Qp/9iRVqai7z2iM=; h=From:To:Subject:Date:In-Reply-To:References:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=U23wnp1M/C5JTkxQNgc96+UF1iULe1EOO7UFh7/QtPYwg4D7I6vLYzed0tXrFtHRo 7kzjKR5DsYXOFvTS0PXYQ+j6dyGmYcj8NPBN/ZAY+JDb+U7KsRkwWFUYVGP46rMHlI ZoORk8CCgHECTyNewZ1HqydlJjWo1mnv0I7J2/d0= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A4838F80527; Mon, 27 Feb 2023 10:20:20 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EA677F80527; Mon, 27 Feb 2023 10:20:16 +0100 (CET) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061a.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::61a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A85AFF802BE for ; Mon, 27 Feb 2023 10:20:11 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A85AFF802BE Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=PzVLI4Sx ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ROG2uXFLgXQljAsFib77VvJiNWbv1Z1sNmjZ4y8oq66gN/5snQP0/eJSz5s6U9suIwhCIss6B164zGiwolFAxUsdw7HT7nM1mp5WClKJqe141xMCbOHcNVmltCppQEHDChMwEz9bXgiS5BFRBNYtbW0tJGMS0v053WVfFqgdR7qnHZAhIMCGALaqvocq3f11/OyglRZHeimYrLxxF+9YGQeZFdXc7ir35DUKnJAhYMbtCYc7VEzuOdJh1BVelvNRJL+eIYQLtdBFw/PmWKp/c7FmcgIFQABDaewp5UF17lGLTp3bFmjIKQKzXlNncFLsY3e23bOJaBGULZrzAd8U+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8B2Ks62e7FIWpo1ioxvaK5qmzWqJzcSAZC0XDtZm++k=; b=HkPQrDuYDgT8jHAp+6iGSmzAckl6KWTP3IsMHVATbsbkBSBfvkRf37KBPcfmQ058v+w01OECElE7HMZ3PPIl/6sm/8fYA5caJdwuPag2oz2kf84BfE9PgNKD29m1VyDndoiJTkaupZyzy/6onUvqp69+/bFrH00xF7fbyYEGSg7+lDviAVT9qlLkM7Edczg7fwKicZmeCF4AXO0iyKwAHucdgm4fiNkJNMLMss1Yb0Yiwcxcv62fVMY2pKMDSr+qNJvhPWckah0L/4HMT/NQB+wSgVxYpauywA3THu5ktxSYtZtf9DzPHkg24MwoogjSrmYe73q0JE+7pCtuW6GKXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8B2Ks62e7FIWpo1ioxvaK5qmzWqJzcSAZC0XDtZm++k=; b=PzVLI4SxoBHf9xhprA8xRVIPZ/ao3KSGKEyy7uJ8F8kGgOdrp/3wbHSGBK4zmB7ZYqJVZiwD+RZouMgSbbMVfdnQwcoPsMt/dhweGwadH1N9s98oiYaQm3a3ETLO/57iRmjLOtMYof4nMimaAKzpn5QBq/UDLDmHxd6CkSv2UJE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) by AM9PR04MB8922.eurprd04.prod.outlook.com (2603:10a6:20b:409::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.24; Mon, 27 Feb 2023 09:20:09 +0000 Received: from VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::8562:affc:e0c:c610]) by VI1PR04MB4222.eurprd04.prod.outlook.com ([fe80::8562:affc:e0c:c610%7]) with mapi id 15.20.6134.029; Mon, 27 Feb 2023 09:20:09 +0000 From: Chancel Liu To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, perex@perex.cz, tiwai@suse.com, ckeepax@opensource.cirrus.com, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/2] ASoC: wm8524: Correct the MUTE setting while power up/down Date: Mon, 27 Feb 2023 17:19:38 +0800 Message-Id: <20230227091938.1671416-2-chancel.liu@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227091938.1671416-1-chancel.liu@nxp.com> References: <20230227091938.1671416-1-chancel.liu@nxp.com> X-ClientProxiedBy: SG2PR04CA0206.apcprd04.prod.outlook.com (2603:1096:4:187::21) To VI1PR04MB4222.eurprd04.prod.outlook.com (2603:10a6:803:46::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB4222:EE_|AM9PR04MB8922:EE_ X-MS-Office365-Filtering-Correlation-Id: ff2f33a0-98c6-4a48-c794-08db18a3d228 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j4Pzc9GB390ozY+diSiVEh5rYFBHoTb23eeD4Kd/jxfdeD8NPxk5Kd5SigiL7Zfyto6mn5v58PFG8tkVPN4QoiOI4sBtaTyhJ6Dbj3ATQjhKKoRfRR3MfaC0lroPrf3aeKjyjuKoCKvXbbwP289P+w2Sm4RYCOwE0oCy1lN7WhvVW+/bLt3griN5OWGUTxp2g7BbtRWh/FnZwNYE3uFTEU7Cjf1vhbzWpuL+eF/MQqG4RQ4e5JrbLHDLIhyfi3Dm+ak8Uf3QnyO6yH8KaLRIQsbZ9aitcWS20gOuFsq1OxEp8I4UyspEWVuBQhbdCrnOM7SLvExrF2FSbXPqloLsAzyFwyDWIzaMoKEziY7vJCeBuqI/N0yjBOCKnGHlQQDI+kRk3DacImy9LQ90lb9vNSD28hvaqNTwXDJ2hryMAUmMrdW7c1Yv5hZ+58pyi1ii1/jsm7hH86EhkSMgFVfOQwuP7DPcf+9yvkyGrFoZ2qhdft+e5y6dH+sWtaCEly8kFCnJg8JFMt5eYfP33VKzVI6BgHStzdIfPAw/loG4Pz8pmXC3IulAcd3Wfihn1cZC4fqnCuy5z02GPbVTcvlSCo5aDPRshEcD0aHu6W2aHGI6jr68FbvxofhG0Hfj0yzPLtUEq+k8US1gL4Z4itx8DJqLDtaZFcpDE3OjtDz+8Ue24yfc8j7Avc1AdSFICd1YV8uKpkoIrYQOMI8x0U0ZCk5MmSQVUSZYLJy79IAcGGw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB4222.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(39860400002)(346002)(396003)(376002)(136003)(451199018)(66946007)(5660300002)(186003)(26005)(66556008)(8936002)(41300700001)(66476007)(4326008)(52116002)(6666004)(83380400001)(38100700002)(6506007)(6512007)(316002)(1076003)(921005)(36756003)(6486002)(86362001)(478600001)(2906002)(2616005)(44832011)(7416002)(8676002)(38350700002)(4744005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8DAsVdVOgXwtZ+4Sbwk0Efs0v7SdN4HDmYjyHp3DxcJolzWcAJQaqhStWBkpEKOkiFB5131aEBCrbksmeUxXmQXAMx0Y3TEwbux9ZJvG2Zf0MD9malN3miCD7a2tbTTnufO4NwE8Sd09gcKsMiwzyLFnQ8iMM7wwJwj10o5X70nKcV6ecQjQjEZNZ06GknVaT17Z71a8W+Y1ls4hossGXlyDOIZUjGI/FyQo3j6TUUbwp7BXuX62AB1SbDou8VT3qL8gJz0PrjLvb915a2kk9lqDBXaJ1W2FEi5eO/SYCYFARPGlL905+oG2yeeyftwVousXYGITxQ2p5b9L3XvIAWhY8wAjCDEPvFuESgSVfwecXce4q3YmSy/YRfzJExv53D9Q2uhz7Bk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231CqgblNFrY3XrajlXVxNObPVDnWwxUl/2Kq6On/ow/sUX4q57ouY3byrfwk97I/QyN6ukj7c3DQDFK+YXvCxC5FJVfjy1HMaYOWlU9zwX/Bmib4bv1wMh8gcl4a2Qzp+IMjcjhYD X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff2f33a0-98c6-4a48-c794-08db18a3d228 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4222.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 09:20:09.0805 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MSrqo4btNMfdbGig6x2dv5A5q3aMp9KAUkeHZbFbRjVtt1NGMDN8zszMJQt9hWGbiRHjoIt0xZH6vHQUau0QaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8922 Message-ID-Hash: Q72Q7BO3DMDOAVDJ4KFTWWBL5CXHG3F7 X-Message-ID-Hash: Q72Q7BO3DMDOAVDJ4KFTWWBL5CXHG3F7 X-MailFrom: chancel.liu@nxp.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Chancel Liu X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: wm8524 should be unmuted while power up and muted while power down. Signed-off-by: Chancel Liu --- sound/soc/codecs/wm8524.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8524.c b/sound/soc/codecs/wm8524.c index b56dcac60244..8f2130e05b32 100644 --- a/sound/soc/codecs/wm8524.c +++ b/sound/soc/codecs/wm8524.c @@ -75,7 +75,7 @@ static int wm8524_startup(struct snd_pcm_substream *substream, SNDRV_PCM_HW_PARAM_RATE, &wm8524->rate_constraint); - gpiod_set_value_cansleep(wm8524->mute, 1); + gpiod_set_value_cansleep(wm8524->mute, 0); return 0; } @@ -86,7 +86,7 @@ static void wm8524_shutdown(struct snd_pcm_substream *substream, struct snd_soc_component *component = dai->component; struct wm8524_priv *wm8524 = snd_soc_component_get_drvdata(component); - gpiod_set_value_cansleep(wm8524->mute, 0); + gpiod_set_value_cansleep(wm8524->mute, 1); } static int wm8524_set_dai_sysclk(struct snd_soc_dai *codec_dai,