Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2561707pxb; Mon, 19 Apr 2021 08:28:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpOG5WvuJSzbdFX8pErmImVCFtNucRDerxnq2PBnVaRnOqHqzQcAxTk+SkDlIrPnbU5fEe X-Received: by 2002:a17:906:3153:: with SMTP id e19mr23055447eje.351.1618846080135; Mon, 19 Apr 2021 08:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618846080; cv=none; d=google.com; s=arc-20160816; b=uRv+0/iioIM5HehHW4Ttfq95wl/sGp6DkGFYNPD1jhuCTOnZ2ir0YtKwCxUkYQ4Fmk KXauODJybbfsoqayrSDfjTGOTeLpWZuGDAZ8I6lntU0DP2+cakPFBm5f2c42OIrMxyZQ n512f7+OS9fkicz+Dw8Ux/sYeGwushZcXS5tpz+HmpVEidD9uYbj+xUhqS9tMWOrARez thOjn60OucmBtAfyBzAAPNj/j4/LiTow1KJR55afMFodgzg0Uscbq9qeCna7dasc825y wHzqfVTaTfRi+X6Hyo5A1x1yHCzC389qAlrHWwUhE/GZ0I52nToETy3JW3CCJ3d0bGUb fh9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eYpF7nd4/wHMv3Zludy3rcATkVfp/TVRDWmlOY0+qXc=; b=kFyR9W50WKaCeYZJI8t5yoA5QmmvY4JG4a4BsN/AmhH4QWdbdfBDZ/SozqseWA4fHa /ilL5i/yFoVu1+fHQ0oJIfJvqcr8RhhAPs2aUR52yMjqH0/qFO0UFcerGlANk69dguss 2X+eoPZIUfDzvc5qn8/uelT43T0xnZtkHqZfqwzcjlsdlfiQZ/ZxVJzxq+ec5a2X/8lT 79qDHwDlywgcBH2NMekyENx8lXhaPDnr2ASTqy+53mGlxtz0DBDFTsxU+8Y/5APP8yrr SMwzwLgWcApqgGe5VLhueTBC9s5OF3uw6fQImasBFBdVauqVuOGrAZJ+8W+4Nc0uYZg+ 6FFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TIm+wCYG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si4834311eds.138.2021.04.19.08.27.37; Mon, 19 Apr 2021 08:28:00 -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=@linuxfoundation.org header.s=korg header.b=TIm+wCYG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239483AbhDSNVG (ORCPT + 99 others); Mon, 19 Apr 2021 09:21:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:54556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239806AbhDSNQd (ORCPT ); Mon, 19 Apr 2021 09:16:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8AEE761288; Mon, 19 Apr 2021 13:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618838041; bh=rpdgFhLrmpF29BnjQ1VzPP58BjoQnTrm3QDnhmnQTkE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TIm+wCYGUSdKf1wH2GRGqAk0gVis7wfdGRY5NrdgaGGV9t+W9nqtcvsTARdhUG/FP 6so+O6lsPmZWm8t1kQ6cP1LVRJZ+xGt1dO/2k5nKYesWHapfD6qTK0HRoGQ5MMQgsf YfRpCSPzU3u89z9l4HXmSHq+IgUEhnPTblGIxR6c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ryan Lee , Mark Brown , Sasha Levin Subject: [PATCH 5.10 021/103] ASoC: max98373: Added 30ms turn on/off time delay Date: Mon, 19 Apr 2021 15:05:32 +0200 Message-Id: <20210419130528.516355850@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419130527.791982064@linuxfoundation.org> References: <20210419130527.791982064@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ryan Lee [ Upstream commit 3a27875e91fb9c29de436199d20b33f9413aea77 ] Amp requires 10 ~ 30ms for the power ON and OFF. Added 30ms delay for stability. Signed-off-by: Ryan Lee Link: https://lore.kernel.org/r/20210325033555.29377-2-ryans.lee@maximintegrated.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- 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 929bb1798c43..1fd4dbbb4ecf 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.30.2