Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp632073iof; Mon, 6 Jun 2022 09:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9jlDOemhj+lgvgVv48K2GCBbFSUxEy53fAq5csHmoSUiKDXvfr0206R/GqQjEZj11aKPL X-Received: by 2002:a17:90a:550d:b0:1e2:eb94:588e with SMTP id b13-20020a17090a550d00b001e2eb94588emr28110734pji.15.1654533729058; Mon, 06 Jun 2022 09:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654533729; cv=none; d=google.com; s=arc-20160816; b=dZ4jpwpN7McAY+IgVpPBRznQbfZOJO0ADdZavIaXSNnWoxmoHiumMHYPD3dIcyyamO 1iC3mpQzPGenrMILhF9Xw2aizvdHHv88SbcIYo4Z9vc5KcoKWvZ0ummwp9/ivYltM+DC ftF1iO+SkwwDN/fKR8VyckX5lOWI3MAveVQT9Z4eMBvAidoJl8GDnKzH5m4l8msbev/k xgx2N1I7tE7YV8ng2W/gzSZfpcIy+AiwFwFtFZUDmmLCgyeMatL/QCrM4jf/nzA0Q6IB tWC7oSlp097MkAf15shmey7ndbX7POjMEbShMFRJaYjtzu+Vmtlu0xJNuUkgHl5DHQGq EyNA== 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=6C1ftIq2+/BRnNYkuG6cpMTzXy2fGebCcPyZI8FE7QY=; b=IgnuqTe7+HnSXJNON2OOXcRuzUz8ckFiVJiHZ/Rz/jAb9YTujcKGogNg3jXjIXe9OR gadZSkOCmF4LP7ZTrfZ3xBN6qUU3Yoa/rIxh0GQem0A5Ud26cMxTYcacCect/Z7QHRjz /XVopDYVqHrSNvuNUE0W1La2Y7rc9ZflJ08CWMHz7TY0YIpE2x+L/9u+1ZBlh9NoBZYy aluDaB088TX0vNj+XHQ1M6dgK0OtQETg8yLY2ZteCkPeIAbfbhUrp7WSMuNPoiIcvpxu zo2FeDUxOCJ+RmLs0mQaMirbITi7zCZ3wi1Y/7iHEhw3XS+S1GRuCjLVHcbNL3m+7484 UHaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dT9bzhjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id mw5-20020a17090b4d0500b001e317fae3bcsi24667401pjb.78.2022.06.06.09.42.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 09:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dT9bzhjn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE1F729E4C9; Mon, 6 Jun 2022 09:25:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241828AbiFFQZb (ORCPT + 99 others); Mon, 6 Jun 2022 12:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241816AbiFFQZ0 (ORCPT ); Mon, 6 Jun 2022 12:25:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85EF11BD7F1 for ; Mon, 6 Jun 2022 09:25:25 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 1F0D860BFB for ; Mon, 6 Jun 2022 16:25:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAF35C385A9; Mon, 6 Jun 2022 16:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654532724; bh=6C1ftIq2+/BRnNYkuG6cpMTzXy2fGebCcPyZI8FE7QY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dT9bzhjnCTxPZn6QGKfd2z5w3YR63nDpB85aUWVor/+qPkxj7euBfWwutI92IpNJo jYzF4WDXCDrYD42/9X7z4ZFjcxw2x+YiyMA1neI0cankclhKPfFFVnBOxx5eYyxEcQ Eriz84kRzcbOKMTUlqh9i9em2Ag5YuV0nWk45McC9Vqtd96giRayypcn71FLM1u27q qk4a8d/ufM6q4/TpojKDoPY1q9RKYaPppcufBW3ByirZNCd/3ib3VCwl+omCNQ/88A m5Kc3ljj7Cpg4unwcImz2B63DKlQxhrLyj2Wz6CKsDW7ULMNGjBaviiZjrmizqphct XlOSo+BFiGSfg== Date: Mon, 6 Jun 2022 17:25:19 +0100 From: Mark Brown To: Lukasz Majewski Cc: Liam Girdwood , linux-kernel@vger.kernel.org, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, Takashi Iwai , Jaroslav Kysela Subject: Re: [PATCH 3/3] ASoC: wm8940: Mute also the speaker output Message-ID: References: <20220606154441.20848-1-lukma@denx.de> <20220606154441.20848-3-lukma@denx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vbR2GMX70upG8Py9" Content-Disposition: inline In-Reply-To: <20220606154441.20848-3-lukma@denx.de> X-Cookie: Bedfellows make strange politicians. X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --vbR2GMX70upG8Py9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 06, 2022 at 05:44:41PM +0200, Lukasz Majewski wrote: > Without this change the BTL speaker produces some > "distortion" noise when test program > (speaker-test -t waw) is ended with ctrl+c. > As our design uses speaker outputs to drive BTL speaker, > it was necessary to also mute the speaker via the codec > internal WM8940_SPKVOL register with setting > WM8940_SPKMUTE bit. This will not interact well with both the user visible control of the speaker volume via the Speaker Playback Volume control and the analog bypass paths that the device has - it'll change the state of the control without generating any events, and cut off any bypassed audio that's mixed in. You can probably achieve a similar effect by making the control an _AUTODISABLE one which will allow the core to mute the control when it's not being used in a way that's not visible to userspace. --vbR2GMX70upG8Py9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKeKm4ACgkQJNaLcl1U h9CkDwgAhJX7tOT+yGFzvFc73mwr1jkFi+2f+NgQ5Vz+AFyNn8C7GgMClt6+gXhI GuqETDHalU67stNb4ke1NTVdlKM1qI5rdGl20VfY/mFCb+itbR/fE/vxwMHIQSCy JY4dpCv2Z3yDKLSjSarJiTWV6dxaJ01tJYp3z3+i2Za9Di4v6K3j2wRayIZcczSt sxPdAt/4AL265LDctA6PmI2VCE2wjo3l4YgfInO1bGDpH5gjnZFMdJo3cKHD/Vrs JLRuB6A1guLo1oURYQOKLrvpMPRkKoF/XaoNlCA/Tlsd/p0l3Up8sk6zBY8Gr+f0 uNDYRwQnGcy/KqQT+B6Ytqa2i7pMqw== =2p+e -----END PGP SIGNATURE----- --vbR2GMX70upG8Py9--