Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1981028rdb; Thu, 7 Dec 2023 14:39:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDC8wihvbrhYlOHxZBItWh9swp4532Z/szZ1rPmA2UfDpQShEUjhANZDNUVGSvRiYOS1zS X-Received: by 2002:a17:902:d48a:b0:1d0:6ffd:6e7e with SMTP id c10-20020a170902d48a00b001d06ffd6e7emr3573865plg.118.1701988774974; Thu, 07 Dec 2023 14:39:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701988774; cv=none; d=google.com; s=arc-20160816; b=fFKn6qyIGjwz9njqNzqhaMgLLnx2cBe3EgAFSbLP8qn1veUAK/a6TKqkNukEux7n9S sAWHn6QaBcECF2BhAMRSUja0kQ769wablcnsF4mEJZ29IKEm5EP7zYdqYMXqiiqO+nIP 7S6bf2uYn6W1o9rMisFmD2GtsZRghEAQK0LkywXBA+XeuU4x+wkJcAzzY7GwwczreHV/ GkLDkGgwpP4mkrJhzOtayGc6+1uHa6uiPt/PxVJqtIEMAvXgV6hTAr+aVhaLLmgAMjGK bCb4eIjHx+czHgonyi8/3FeerESKZ7lE30DIOb9p32nqO6S81CthWfLoW601Ohlk40oE 0Y2Q== 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=KnsET0RDNGP85gKJzFnJRp7f5QRDyaarc+Fivmf7M8A=; fh=nmaIcstL9sV5Nq4RMhFU+6bYjxHdBWKpDsuXM6BleVE=; b=oIOrkCL5rqiYbqmbsV7PNATQDNOvMZI8KUqKLWooUtCOENDC0Z8VPIqLWX/VAiP6zy hphPOzM+4aXjeTeP1v7JhIiakci3X2APwzWjWUKmVmMnTGf726aI+CiKY7jC6We03zaz lnc+OClq3EVJLl+ihY7WMryBFzx0UHZltrp6g1TlNreGSwpUmRmifLUAF6JbK1I7rSWf LSNkZuifzE3DmZif8t+P1aVhC8X3w7HTKBgSv98V8AtT6nCjUfIw2u1AxZlN3Dmf7sVc SsPBirhSFsDV1aCsdwNOT2T6uD8g/hIq7lEBDjELgBsJz1v3zHK2G4FIjirkkkjIckU3 LO6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7kkiL7A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id jh9-20020a170903328900b001d05aa5490fsi442744plb.46.2023.12.07.14.39.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 14:39:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7kkiL7A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 767DF801B812; Thu, 7 Dec 2023 14:39:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231481AbjLGWjR (ORCPT + 99 others); Thu, 7 Dec 2023 17:39:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbjLGWjP (ORCPT ); Thu, 7 Dec 2023 17:39:15 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32289133 for ; Thu, 7 Dec 2023 14:39:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3DC8C433C8; Thu, 7 Dec 2023 22:39:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701988761; bh=MsLLpv1+/XDyn3UAs12wR75ZLa9IjOrbPm1kkfTtosE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h7kkiL7Ak/7GSuJ1qH4EHyUTxoHiRKTwCqw53xa/OV4dG+kFQuSJLBVZpzq1ocJGa QIuH0T9Tbb8/jeLEiHZW6rxhzy8mrpYV2qyy0rNpEzPjqkHTXC4eqXH7mOKNTVrMTv 5o7+wMTHoTkQarxlu6vWVUA1lwwSCE40hv+TlBJW4f8Pf64VgaN9dZ8dSr3kbNZjS6 bOaD0RbbdGg8s0e2/vqLwp9n3THviaOJZ2LYhM/PYjonw2zONkzwOSHDuSNqODY/It RG4qsrMtDz3JS/nbpytfBiewpy1Kp5f+7hll2qUBJGeR9b0D92tSZ73TbZfU2jLYGo 7F3ic/gYzLXRw== Date: Thu, 7 Dec 2023 22:39:16 +0000 From: Mark Brown To: Gergo Koteles Cc: Shenghao Ding , Kevin Lu , Baojun Xu , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH 03/16] ASoC: tas2781: disable regmap regcache Message-ID: References: <21a183b5a08cb23b193af78d4b1114cc59419272.1701906455.git.soyer@irl.hu> <0b836c10-b21b-4275-8dd0-254dd5467497@sirena.org.uk> <47097f19398808b64f4cc87c2a3c7cc462fb2416.camel@irl.hu> <5f3f0306-799f-4f3b-9e05-fbd300c59d5d@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FPnKMl3SLG0UUQNN" Content-Disposition: inline In-Reply-To: X-Cookie: Two is company, three is an orgy. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 14:39:32 -0800 (PST) --FPnKMl3SLG0UUQNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 07, 2023 at 10:12:13PM +0100, Gergo Koteles wrote: > On Thu, 2023-12-07 at 20:36 +0000, Mark Brown wrote: > > > And only one, because tasdevice_change_chn_book directly changes the > > > address of i2c_client, so the unlucky one gets invalid values in its > > > actual book from regcache_sync. > > The code creates the impression that writing to one tas2781 writes to > > all of them, is that not the case? > Yes, the tasdevice_* functions, but the regcache_sync doesn't know > this. So this syncing is done in software not hardware? My understanding was that this was a hardware thing. > > How would the devices get their configuration restored? > tasdevice_tuning_switch calls tasdevice_select_tuningprm_cfg which > checks whether the devices needs a new program or configuration. > the runtime_suspend and system resume set the devices cur_prog, > cur_conf to -1. ... > The tas2781_hda_playback_hook calls the tasdevice_tuning_switch And there are no registers other than these programs? --FPnKMl3SLG0UUQNN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVySZQACgkQJNaLcl1U h9Dz0Qf9EolHA/7hwfIR8tUUDiJRQu5X9PEQJHjmqNgUo0b2RfbIXugc4S/61wPO reW9pzswW/8Uix3UZcpSo16bjD2ZphcGMFoaFuYBfVf+7j8mg9fUMCuX2LcY5ch1 0EUB6G/1a3qGcVhC8yC9hGtF24lMOogSClM+t3jj8RhH60EU7VLKc1B4GhX+Vm/E ROtqapM8Tx5oi1tsQLV8nQ+zGdOXdqsg1kZNp9Arv7EcgQ2YkhqA3C6bnb2lebwF 2RZzfAdeX1wlXobP0fzO0h626QjKcHq1YqQgPc6Eyl+QIZfIZ67yvY3y0WJwHh6r TIHr3QC4TNT60x8XouFh6PuIHtjnaA== =eHRJ -----END PGP SIGNATURE----- --FPnKMl3SLG0UUQNN--