Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp587732rwe; Thu, 1 Sep 2022 04:54:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5AGMMbt1O5UQOPo8fSgiqOQFtLaO5mRwjHJA1QiMTmTL81tL1n1SCHJEgIeuE8vH4rS+aq X-Received: by 2002:a17:902:6808:b0:174:617b:1147 with SMTP id h8-20020a170902680800b00174617b1147mr26280828plk.102.1662033257843; Thu, 01 Sep 2022 04:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662033257; cv=none; d=google.com; s=arc-20160816; b=Ssdcw5Z+UXLCbU5kkSNprQdW0N02dm+WAdFgy5OhD6Y3iIcxSqbHyc2woZkgPDWTjh xHYNMMXC5nDKYsfxFOnG3/MlyqgiDEFESAMyVxa27M8noROLopoyAFrF6NqN0tSsPafe cB4cvnRY1ozeaZtcK773oyh/USQGmU8jwPO6FX2lNXH4bnbDzmAVXTiTCTwdaXVyFrv1 k8d8dbAgho0rIUUBXIO6s/tPhjbdMOy5mQKpLZA9lZV5p7zL8KX/UAnS6HuYL5jmIwoZ k83iJz8QnSk9mdLSIDPgt9b2TYXgFJYOuDyqHi6IP1Au9D8GjFaQJGwK/GjVhgmm11Yt yhDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XzWWgAaZa57DmLshT8wTxUPxF33CJQQIhGUjvokuCns=; b=ksaODKPug1w7ndm9mdVu6H05d3ljsboDpydCFXIQPlpW50HMKcmGPCTqwfy8jxbgXK r7FyJKiWufEbRL2uEy98AGRqqKu36qvpN+HCZWvWKkOSXw9It8sToUPHQhm5ipUmIPqQ 50RAfiiXmkpypkxac2bNFKsSle6zyc4YOQ36babkmFz6DnEqGyCRiTBc1oUCWreNZpW3 fSLcE/bitncs/yVriI40akS2+GqUzqvEQ95Slwv8OVU4qPRFE4yZO/expkvvRy9Sfitv 2Cwos+iH7rJd2elDLi04hrVb10L1jpWiSJgqr2ZFiyORktFlkM81RudWt2qYMMArOyxT SRKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gO27tA/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a170903240b00b001677fa2026asi16106991plo.609.2022.09.01.04.54.07; Thu, 01 Sep 2022 04:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gO27tA/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234256AbiIAKyp (ORCPT + 99 others); Thu, 1 Sep 2022 06:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234190AbiIAKyi (ORCPT ); Thu, 1 Sep 2022 06:54:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5D01130A12 for ; Thu, 1 Sep 2022 03:54:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EEF81B825B2 for ; Thu, 1 Sep 2022 10:54:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6B80C433C1; Thu, 1 Sep 2022 10:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662029670; bh=3yd6ra6HeRbyp75OC+9QeS3r0P/aVZwXcQT0DOYQW/8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gO27tA/NvMCyftcMv/ycmh1rfMdMU/8TJIGvcF0k+tZn2xzciubBUbXGtEyrp3SkR VWhoaMVDsJn+MQLy/RRNf2C5BE+tUHuu1GoL8YiBb9zZ3TPjGUbad3Vco5tB6waqt9 SOsR6TIzA5Or6YRva3rcjbTMsm9WVSZLh8rbGcbpStlDGXKFHJDPUMGRX79eberaRg mhj9m+kBC1OsPU4AkfhEuH8dtoUGPgePG3mCLiW9o9ayfX0pn8/R21/drjRJFd95jU 6pdL6vhvsP+3ZGGxchD3dVHj5mETS9waNIE+Sam694W61mMOs0OiVcBlxbJJiXKiNj V4GiPQ+PRFirA== Date: Thu, 1 Sep 2022 11:54:25 +0100 From: Mark Brown To: Lee Steve Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, krzk@kernel.org, ryans.lee@analog.com Subject: Re: [PATCH] ASoC: max98390: Remove unnecessary amp on/off conrtol Message-ID: References: <20220826023504.6183-1-steve.lee.analog@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Cck+RFJ0eKZVFr+e" Content-Disposition: inline In-Reply-To: X-Cookie: This bag is recyclable. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Cck+RFJ0eKZVFr+e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 01, 2022 at 02:57:19PM +0900, Lee Steve wrote: > On Thu, Sep 1, 2022 at 1:36 AM Mark Brown wrote: > > I can't see anything which ensures that this is the case? Should there > > be a check which returns an error if the output is not enabled, or > > should the function check the current state and preserve it at the end? > > I can see that this would fix problems with it being disabled when > > callibrating. > As your comment, this can fix amp being disabled when calibrating. > And this also fix the case that music play right after calibration. > Actually, calibration process should start mute playback before > trigger this function. > AMP disable/enable control in calibration function can break sync with > userspace enable/disable control. Right, so that sounds like there should be something which checks the current state and doesn't start callibration unless the device is in a sensible state. --Cck+RFJ0eKZVFr+e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmMQj2AACgkQJNaLcl1U h9DP7wf9GATVAcXHSK80KY9ZOA+wsUyGyhrWjapV4h1Cs8h62KfnYLN+9v64Qkfj j1pfKF+FSvEmfd7UglMjhIxPLvpY6nkBrprGFxGonBKJkPN/B6eQXpHJropn0hgU zSgyVWNexi/JQCdRZlzGKq2eZasgSUr30XbmTo+IS0+ZOVjnYpbOu6bQgWw7Xcpb CiwCyQympPrbatTJjcksnqpxIILphXddI854GV+6JDro0Ff+sVwh/Wy9KlpmJTmO zQ3UeW/1ikooxqlk1nuAXmUQbwF71zaF4MBXfwih1ZOiuRCRUqHOSatHwXQDyfjY iXLCGJBx6yVVMbRp0emPUWNdN3Vu/A== =O3of -----END PGP SIGNATURE----- --Cck+RFJ0eKZVFr+e--