Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp52271pxf; Wed, 24 Mar 2021 20:44:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKQiA1rBUdTjrkSCbu2nywsIm4K0wiwWJJ3yXI7ogCqW2vfOzSXTO3saupbB4qe4nhRVp0 X-Received: by 2002:a17:906:dbd0:: with SMTP id yc16mr7093275ejb.71.1616643848697; Wed, 24 Mar 2021 20:44:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616643848; cv=pass; d=google.com; s=arc-20160816; b=LR0g2Pss/ghCFYYbDoDysbDppkaSWz3exfiVdybTVThp5fwfHj3lVnAYfBqFvzuILc NVhNXazcWGiTDNOQ4mXL7PT7PfegzdB7LZJPAfxkdGyhCP/79qIorAYw0icSyeTtmU88 /Tu/sy/SW4cqZpsaAjT4YCAeKvV2FumL+PhLex+DsC3kEnjMukCRQPMc6tB8mTLJmtQ7 npiYwD5H3SUhoCf1SN9BTDOg+Hz1mXJu4L1eWiwU5Qg5OYhQ6g3bospmY+F3hw7RrGNB n0qaQ2XQCkCU5l2Kd62A486w7VDFwyj2qxxBtMTU18/2SzC1/oF5jYzev1TeJxrYYFFl VmfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=q3vv0O8XxBApWRhjYEe41jRjY+ih20wKd7MLzaVEtVo=; b=T4CFFjhRCStgtMYDJqH8lDYB+Hps7/6FcYnSziGB+W8zw4tk5K0SaRelIBaxwUxhxi jKBQXbEHHqHDldS6SjgxdmO7zsFIuNjZrJAC510JwAevvlAHg4CnglUNmPVmuKlJPLas 6JtSvDDRcj0UwW6h19z2Ayt6F+qZA5A8hkDZ9F04K7qDmyAEuzOh+rYjglF7pkCGv7QC gWvg96k1hbATDkIosffHUgm7T96dnCqhpAUyZuqlgmqrqUxOfoa5WIqtziMiNh+3u+L0 DawVRhCznt+0Yfy1ONFBUJiFKS+qGpZWPERVunqWHKn+mtUuqqjQCuHXkCTgMvDsrmRu T2GA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@maximintegrated.onmicrosoft.com header.s=selector2-maximintegrated-onmicrosoft-com header.b=F07wYJzK; arc=pass (i=1 spf=pass spfdomain=maximintegrated.com dkim=pass dkdomain=maximintegrated.com dmarc=pass fromdomain=maximintegrated.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si2872109edc.6.2021.03.24.20.43.46; Wed, 24 Mar 2021 20:44:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@maximintegrated.onmicrosoft.com header.s=selector2-maximintegrated-onmicrosoft-com header.b=F07wYJzK; arc=pass (i=1 spf=pass spfdomain=maximintegrated.com dkim=pass dkdomain=maximintegrated.com dmarc=pass fromdomain=maximintegrated.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229781AbhCYDhI (ORCPT + 99 others); Wed, 24 Mar 2021 23:37:08 -0400 Received: from mail-eopbgr690097.outbound.protection.outlook.com ([40.107.69.97]:34772 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229624AbhCYDgi (ORCPT ); Wed, 24 Mar 2021 23:36:38 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DRsuUG/yYmM7N7dlO+xZU09PP2wzH4S3NXNEIJhmzYmjWTO4/Aryz5mxYveIZTDPBGBF6CUMvEmEQSXE+GudoVSvM7/NCaNRsgInXhiAkssDalYCXGSKoHKlV5QOvmBJrEVPoWR6EJ4tYaD7ACV/ck1fv6ZnpPrj4Bwfj25R1FiXNTDV/1v0tRJC6AVn56EnbhL1VxSqz/qgARlk7sGUgiZEuMNm/DWLuSdnRbVsQKjyLhYNoEbc1Gm8VRK0YA+dZiEW2BTgmzENsGo7netil8aVEsvGSHJGxZVXS356yahcS9MZayRIshzisZnUUn0u3IuHjkoNXm1CYw9a1ZHrBA== 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-SenderADCheck; bh=q3vv0O8XxBApWRhjYEe41jRjY+ih20wKd7MLzaVEtVo=; b=KGPaE5I1qmTmJOal0i/xYP+LSM4UVpJ16iB9eEXLBXbsk9B+nEx7RkNrKvfuTwEuKVZFZFfaywfgXDtj0w0THWWvjmBtroKH0GllboHBsnCiP0WpZ1Ebi/IL+52n6/r5itTjk/sYFvcE85eRJiRJv/G02zsFfhwu5s6qdLP1OV2AzQ6NkyrEnB4beRvvo4XJ4yf9EUlQk15sgJHEI3xTVRpRk5tAVp3IoIyibULJSkPYZhy6fIYSFQ0pQt8TU9fPYNcPD0ALJNt6y5XaMd+dauX17sCdezcOFMH/ACoZGR+QvRLUyB3azvz3HH9ySALv12BVkagGtFOlaG4/pjMvAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=maximintegrated.com; dmarc=pass action=none header.from=maximintegrated.com; dkim=pass header.d=maximintegrated.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maximintegrated.onmicrosoft.com; s=selector2-maximintegrated-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q3vv0O8XxBApWRhjYEe41jRjY+ih20wKd7MLzaVEtVo=; b=F07wYJzKPuMmC8Gl1jR3Q5LxevqAgNzlxQJSZpNBYxQH1hw4u6Hg8wm/FrnuV+EZjkOKwMgiCxQVHu4ExBAKpRoexKCeIXOdp9S1duLNDkVsq5GDu0gU77R6/KzSxQwt+9UvAN2nNDk35zmKFNFlnxfD4/MMeDqY9iiu9jMbciA= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=maximintegrated.com; Received: from BYAPR11MB3382.namprd11.prod.outlook.com (2603:10b6:a03:7f::15) by SJ0PR11MB4798.namprd11.prod.outlook.com (2603:10b6:a03:2d5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Thu, 25 Mar 2021 03:36:37 +0000 Received: from BYAPR11MB3382.namprd11.prod.outlook.com ([fe80::cce5:1aa1:302f:a956]) by BYAPR11MB3382.namprd11.prod.outlook.com ([fe80::cce5:1aa1:302f:a956%5]) with mapi id 15.20.3977.025; Thu, 25 Mar 2021 03:36:36 +0000 From: Ryan Lee To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, kai.vehmanen@linux.intel.com, yung-chuan.liao@linux.intel.com, rander.wang@linux.intel.com, ryans.lee@maximintegrated.com, guennadi.liakhovetski@linux.intel.com, vkoul@kernel.org, yong.zhi@intel.com, judyhsiao@google.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: ryan.lee.maxim@gmail.com Subject: [PATCH 2/3] ASoC:codec:max98373: Added 30ms turn on/off time delay Date: Wed, 24 Mar 2021 20:35:54 -0700 Message-Id: <20210325033555.29377-2-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210325033555.29377-1-ryans.lee@maximintegrated.com> References: <20210325033555.29377-1-ryans.lee@maximintegrated.com> Content-Type: text/plain X-Originating-IP: [73.189.52.211] X-ClientProxiedBy: BY5PR04CA0001.namprd04.prod.outlook.com (2603:10b6:a03:1d0::11) To BYAPR11MB3382.namprd11.prod.outlook.com (2603:10b6:a03:7f::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (73.189.52.211) by BY5PR04CA0001.namprd04.prod.outlook.com (2603:10b6:a03:1d0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.24 via Frontend Transport; Thu, 25 Mar 2021 03:36:35 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4b80dd6a-5444-4e40-b702-08d8ef3f3141 X-MS-TrafficTypeDiagnostic: SJ0PR11MB4798: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:580; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nAUD56j47zI5tmRpmKhj2W5fvQcvUMjicP8gGx2PIPtOlBKeUBfomDbI7AXQF2Ns67Kusgk0VYglYWkcGuBeMSniLUgyXRvvzRsnWLJWkKTUgTeQ5qofLpq8hO0o73VJZqQt0FVhn/JoRkj1hU9yyAPbf/sTlWH9DqQ2MMHWVZkrbQot2woBElxADp9YheWap4V26s7/7EmPAHkmGAK2Tr1kqwea5w7wHj12+s1Vlr/LqC3Ot1f5IYdxfm45vcLkV/LZ/OmAlAN7a43heZXDJwpgrmi89OO4tBT1Uf2IViqpybkRQwZKZ/hzTw1EU5HikIYPl9F5ql0Uheoi7URsn4/OKZ08A4DesoArmTw7fjxCkI4LdEt7PoEUCABJPwS28taBTn9PemlNwTVBWGJy8bBeYGtVQE85Rm3nkAaffdVKMCcTbdcauwF3cxFaKlDkaJxbSEGjDIz/enPiKzgQ7oknd8SQjPK9OwQnN/Yzr4uSJIxjsCqOVT6FimqWjEtOODX+PQHyJD3Lgm4nNWE5r7WFrbbu50wKCNBIKeFR6PFQuy9CaRolABlKieeUJYfI7jSJnrKgjoYRo7pgJnoSrR0L6rMyHBLZoJfFA+mvnmxOCFtAi1yOtvjo6Reux3f9kg4NmwSxqRh/XokgTi1CMvLv6LaXJZ48KUfWIhzxIGB/BrQvUIfGdYGpTbZ/M1Q8gwnsdCNS1EIbyvZydcl48g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3382.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(39860400002)(376002)(136003)(396003)(346002)(921005)(478600001)(52116002)(6486002)(4326008)(6666004)(7416002)(186003)(69590400012)(26005)(2906002)(6506007)(16526019)(6512007)(316002)(4744005)(8676002)(2616005)(83380400001)(66476007)(1076003)(36756003)(66556008)(5660300002)(66946007)(86362001)(38100700001)(956004)(8936002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?N1QcTYMOe1iMMTxBqpMo3MNZWWLQ+J2k13SteSu+ZMmEv6U9c/WrgVOU6cQc?= =?us-ascii?Q?FOxcGY++p1dOdw+HlEh1ntNcj2CTrPAmH33owmgquy/GSAbICRBGsWve11O7?= =?us-ascii?Q?IFoK5Mg0bz3/zvFYsAn+PdZkDSQgdI7F5fHNHO8AIOg5pzylqRAnsSXTsoiW?= =?us-ascii?Q?c4blpR7Jar/ttC+jyq44kBwP/wnoYRlK4qTdJWspSd94VMEcB4+fRHnEygTf?= =?us-ascii?Q?P9gf+13x5j+Gu9sje1ioFhLfGpraYXaGr5nq6x6yXYvV2/MfWXLVgFx/OO/p?= =?us-ascii?Q?CO4uwaUzYD/a54BQ3r/3tTdDVqD4Q8zz3kpO869awC2ykT910LN3pugVQ2Ch?= =?us-ascii?Q?KQXHxi+LD37NbBpJGsi2dYgP+wq2F8ZYhpg0+SJ+6/svAinrsIZgev/rG+7U?= =?us-ascii?Q?Aj8v9xr0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aZE/Q4tAy+Ka08xZp3aTc?= =?us-ascii?Q?aavhLekyPnQoonXmBdYH9JlG?= X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b80dd6a-5444-4e40-b702-08d8ef3f3141 X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3382.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2021 03:36:36.7110 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fbd909df-ea69-4788-a554-f24b7854ad03 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KpFaBGdWiou/ltCmEqQGVLcUK3kyV4Xoldu3r5m/3XagZRZ0b40/jscg/n4zedmusqFXCH96RdxuxfIDcrT33OjDbqL/y4/6+VFhpio9iQU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR11MB4798 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amp requires 10 ~ 30ms for the power ON and OFF. Added 30ms delay for stability. Signed-off-by: Ryan Lee --- sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 746c829312b8..1346a98ce8a1 100644 --- a/sound/soc/codecs/max98373.c +++ b/sound/soc/codecs/max98373.c @@ -28,11 +28,13 @@ static int max98373_dac_event(struct snd_soc_dapm_widget *w, regmap_update_bits(max98373->regmap, MAX98373_R20FF_GLOBAL_SHDN, MAX98373_GLOBAL_EN_MASK, 1); + usleep_range(30000, 31000); break; case SND_SOC_DAPM_POST_PMD: regmap_update_bits(max98373->regmap, MAX98373_R20FF_GLOBAL_SHDN, MAX98373_GLOBAL_EN_MASK, 0); + usleep_range(30000, 31000); max98373->tdm_mode = false; break; default: -- 2.17.1