Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4418568ybc; Fri, 15 Nov 2019 04:26:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwltj9k8B40Lhr2xl4SPw8DQh93X7nK4R4BqM9A2Mm13eILpRaWyhNvv4H5td9lL2t2c6Ua X-Received: by 2002:a5d:5687:: with SMTP id f7mr15065279wrv.384.1573820819285; Fri, 15 Nov 2019 04:26:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573820819; cv=none; d=google.com; s=arc-20160816; b=YuKDGN94jhMB91PnfTLHheaAwIZLVDtkstiVns/FAhhv1Xea11mq5maDWbVSbw5QM6 EgYco1VtNF8679j7QSaNPGd8+zHwx/T6y1dim9fnOsEUTriYcmSdF6q2Iw5xSCwbJRQq L6JaAEoLV+9rTIR1BaiQyQB2wKt5c9jQqVOsidCW/wz2NaWNSRJ9XNBTRdeUHIwMY6QB YvVVqEP6T6y31K6T+uqMOcbS/DGwUwrAKtZGwRkAytOYvk8A1XRf2NErbbeYtxYiGPk3 G29eZINjrFRbEdANz7F4UlVAamcQkLFWfktq/+pwgmC/14rWsRmxWvg+uAl7042lboeG GKiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=9Xr+rAsIpC8CQjO9znN4MATq/9q62joQAxWNOZyqq4o=; b=uW4S40DlIfQFboJdOQvtLlPa24qCHVtgDyoi9fnnfuN3wpHOYnRFQ6cT8QQUaFT5sc X34Fu1Y3RA+dNbNj6FjS9AtZ+CrjJcQXB8eTBRduBBB7fZ+hUsTFaYLLwXwEXv1lVZ+L ZwV8bg4aIY1MpDhRUbYRhIcgHQb+CSz0y8RKr1fCXefmPvma6CIgoNeKIZmsDHYRYKRu PUqQ1WJdZ4QRPj0zIDMjBz7kE2Yp6RkFJibd68mnSoXewWBU/A1ZZBb2OZ+TGXt+8cK4 uIISLOc4lAK5MvuQRUCG6DodDfbtpepDWcuBXN6d1U/YT6HqbS7ZW10D+/MquKGx6JE8 p8/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=OfifgALu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i47si6484603eda.91.2019.11.15.04.26.34; Fri, 15 Nov 2019 04:26:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=OfifgALu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727683AbfKOMZQ (ORCPT + 99 others); Fri, 15 Nov 2019 07:25:16 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:32780 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727343AbfKOMZM (ORCPT ); Fri, 15 Nov 2019 07:25:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=9Xr+rAsIpC8CQjO9znN4MATq/9q62joQAxWNOZyqq4o=; b=OfifgALu+Jk8 +01yTvo/23z/ruBH+bITj+mKv3MQITklmQoUVZzusEdc7ek85enxfAS6rsMtCFPGwwSOwyJodvyqO Mi2omigkbGXSpajrbgjB3WdcyZsT1cqpY1jqMu8lIYCsF8pQx+NoEGqJY6Hm3PUrW6iNSq9rAsgnY Z1ykY=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVaes-0000KB-7q; Fri, 15 Nov 2019 12:25:02 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id A43D1274162A; Fri, 15 Nov 2019 12:25:01 +0000 (GMT) From: Mark Brown To: Michael Walle Cc: alsa-devel@alsa-project.org, Charles Keepax , Jaroslav Kysela , Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , patches@opensource.cirrus.com, Takashi Iwai Subject: Applied "ASoC: wm8904: fix regcache handling" to the asoc tree In-Reply-To: <20191112223629.21867-1-michael@walle.cc> X-Patchwork-Hint: ignore Message-Id: <20191115122501.A43D1274162A@ypsilon.sirena.org.uk> Date: Fri, 15 Nov 2019 12:25:01 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: wm8904: fix regcache handling has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From e9149b8c00d25dbaef1aa174fc604bed207e576d Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Tue, 12 Nov 2019 23:36:29 +0100 Subject: [PATCH] ASoC: wm8904: fix regcache handling The current code assumes that the power is turned off in SND_SOC_BIAS_OFF. If there are no actual regulator the codec isn't turned off and the registers are not reset to their default values but the regcache is still marked as dirty. Thus a value might not be written to the hardware if it is set to the default value. Do a software reset before turning off the power to make sure the registers are always reset to their default states. Signed-off-by: Michael Walle Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20191112223629.21867-1-michael@walle.cc Signed-off-by: Mark Brown --- sound/soc/codecs/wm8904.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index bcb3c9d5abf0..9e8c564f6e9c 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -1917,6 +1917,7 @@ static int wm8904_set_bias_level(struct snd_soc_component *component, snd_soc_component_update_bits(component, WM8904_BIAS_CONTROL_0, WM8904_BIAS_ENA, 0); + snd_soc_component_write(component, WM8904_SW_RESET_AND_ID, 0); regcache_cache_only(wm8904->regmap, true); regcache_mark_dirty(wm8904->regmap); -- 2.20.1