Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2621597rwi; Tue, 11 Oct 2022 11:01:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xYBWarOxQFKCMuVC4DWf7sAXKAiZKHpWlAQUWCPKDmAXSOdlyOtzhg19ZDGkMxCtGeuGz X-Received: by 2002:a05:6402:3806:b0:450:bad8:8cd5 with SMTP id es6-20020a056402380600b00450bad88cd5mr24398308edb.305.1665511289439; Tue, 11 Oct 2022 11:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665511289; cv=none; d=google.com; s=arc-20160816; b=sNQPt1Ln4hwhkZttRhcd2JhslzJcCKSWwJ5noAxcZAxFEu9uhg2qCIGrmEg/0o9RRM WRdpiKDEMkNUsbDmVNQi2Og7T+RISe1OXPX1uvDG26+CVypqNlDJn0NeG0pea7BjDPLW O1ed96TuhlzrkOTkBZw5yHjCOqhFjiHEU3JfGbSmdUPJmKlih7Z7AAOxr0gW/ZY8sS/d gWF57HZERLKKT4uxE0NfKND3TaSOjMy2XCGKMTVuDoNuFHREfa+E2xOPP943anTvK03l MVOIL+tDwLK/0ahJox3K/cS/ZV/+gEwwqufwmjJ9siuIeqk12stNvUq27nfYZKIrF7QF +4FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NhUfh06C/An6YGnLWkAPjWZ5V+4TW6TFgUY2N8yedlQ=; b=rmuR+7yNDbgl6KT1hiM7bB6vv5dzPOQssexWWRXY2A4GEjrZJebzTlxJBcAV5Lvyto PbzebZrWivwi3itw4pTP3E0++/Eeohqff2b2BbBi92O6Q7s73F0+kzgYUBHHMHOC74GR Uy67UpzkYf5HUHtCFAk1VgnobQmIRew9U52lmv42vxgvV9iM0v3OedosGzqERfPh2KeU GMLrX89DccnlAkPf1ffhB7+4ENotHlL6M03ueaLtilY0lkXpiesHUFQz9ImQH7NEeDEM +J3ZaiUZPDo4y09h0NdbUcPsPbYBn2ULtE/NoVBlJg3xUddhVWIR8j/29fFlEzlH4LSH +c3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jwJ7b5n4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r9-20020a170906548900b0073d8f141e76si12403217ejo.130.2022.10.11.11.01.00; Tue, 11 Oct 2022 11:01:29 -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=@gmail.com header.s=20210112 header.b=jwJ7b5n4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbiJKRp1 (ORCPT + 99 others); Tue, 11 Oct 2022 13:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229820AbiJKRpU (ORCPT ); Tue, 11 Oct 2022 13:45:20 -0400 Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C843F13EB1 for ; Tue, 11 Oct 2022 10:45:18 -0700 (PDT) Received: by mail-vs1-xe33.google.com with SMTP id a2so9413392vsc.13 for ; Tue, 11 Oct 2022 10:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=NhUfh06C/An6YGnLWkAPjWZ5V+4TW6TFgUY2N8yedlQ=; b=jwJ7b5n4OHJ38hRs//PlrNs39qZE2d2GR4KT/tnJ6P0VN//vN/+KQ5Ptcug1fpGepz Q7mhuK9txLhRSb+IhG96/TJBZebtUk1/Oe2igsN6irT4lNzacB/n3vekLgHwJciSv9eI ar4EWFfW1X0lUmxB7h/JuUPIE0qoKCzvbFB7V0bsfU/IjEp2c19l3TH6aiPgjsXpdYc7 HrLeyv8hpdhv3dDMW06WTnSCEiYhFP1wFKG2q2YwbP9MGDdT+jPmCo0A/v9lntj6NWuQ GjJJlRsupfg10nF0iGgwFh6T5SIj/UytZeh/vEeuSafWWnLrbI6jlBV7E54pAHXisPwY sG+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NhUfh06C/An6YGnLWkAPjWZ5V+4TW6TFgUY2N8yedlQ=; b=O0r70Kxl41D9vQagHodZqXCSAdvgY8HcSlCU4Ety3wOTOa7XYGOXsjBcpG6fT1s0NM SKbx6jOVZKoB4kWz88AhW3KO39j48t3AYhyFFuu5yivWN5v6da3zEFNJ2gItY/HcPAvw zMwSgUq4dQ/nUnsHk1kTKVqldpW7blRGx//o4CfXnGXGV3Hw84aUJOuNjXXFjYfdso4F S44QLuoCclBwaL2EV57YyttO+UwB3k/0g63h1mpGuZIir8086Gfzi49COOJvqRadAran 2liSIGQECiK3P2cGbVzYyGJag/++RrxFqQY0sjNPMeFHjgiDKYM7GYUslF7QHYkhFUeH vTAg== X-Gm-Message-State: ACrzQf34HBMOWr1ob2iDsT9XXqW+rRl7mxMUYiJ/ZvcO0NiOwtTEUuPg ZbwO1GEMOrRxqz47vv5lqxkeEYIW/IcfOnfKQGlpL/sQ X-Received: by 2002:a05:6102:3172:b0:3a7:319c:ffef with SMTP id l18-20020a056102317200b003a7319cffefmr12116685vsm.80.1665510317370; Tue, 11 Oct 2022 10:45:17 -0700 (PDT) MIME-Version: 1.0 References: <20221010092014.2229246-1-xiaolei.wang@windriver.com> <20221010145726.GD92394@ediswmail.ad.cirrus.com> In-Reply-To: <20221010145726.GD92394@ediswmail.ad.cirrus.com> From: Adam Ford Date: Tue, 11 Oct 2022 12:45:06 -0500 Message-ID: Subject: Re: [PATCH] ASoC: wm8962: Add an event handler for TEMP_HP and TEMP_SPK To: Charles Keepax Cc: Xiaolei Wang , lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, steve@sk2.org, geert+renesas@glider.be, chi.minghao@zte.com.cn, patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Mon, Oct 10, 2022 at 9:57 AM Charles Keepax wrote: > > On Mon, Oct 10, 2022 at 05:20:14PM +0800, Xiaolei Wang wrote: > > In wm8962 driver, the WM8962_ADDITIONAL_CONTROL_4 is used as a volatile > > register, but this register mixes a bunch of volatile status bits and a > > bunch of non-volatile control bits. The dapm widgets TEMP_HP and > > TEMP_SPK leverages the control bits in this register. After the wm8962 > > probe, the regmap will bet set to cache only mode, then a read error > > like below would be triggered when trying to read the initial power > > state of the dapm widgets TEMP_HP and TEMP_SPK. > > wm8962 0-001a: ASoC: error at soc_component_read_no_lock > > on wm8962.0-001a: -16 Thanks for this. I saw this same error, but the audio that I use didn't appear impacted, so I just ignored it. > > > > In order to fix this issue, we add event handler to actually power > > up/down these widgets. With this change, we also need to explicitly > > power off these widgets in the wm8962 probe since they are enabled > > by default. > > > > Signed-off-by: Xiaolei Wang > > --- > > Acked-by: Charles Keepax Tested-by: Adam Ford > > Thanks, > Charles