Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1009324rwb; Fri, 13 Jan 2023 06:56:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXsjkjDfH9IJx3n/Yll8AjOmNiXmBlknkc34mtUIdy19FE1K893BX3SgAGg3WgUom2ejBigq X-Received: by 2002:a05:6a20:b044:b0:a2:405b:6769 with SMTP id dx4-20020a056a20b04400b000a2405b6769mr79098218pzb.2.1673621762254; Fri, 13 Jan 2023 06:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621762; cv=none; d=google.com; s=arc-20160816; b=Ao8dkHN2hxtjduLKcPHDC9htkCx7IUIj5n1w3Y9mI07RnTW1MY3SxHXzOwJd09t0oY coZGSu/RbFPcISA2BxRBEk1kg1dGdWFSi2kf0Y8zoED/QUqebA5E+febVdwgJXifbhIV q7E2nTpsHPvA62C4eRfwZ1K2fnKU9qgRV6pC15MesZ0F0D/vHXTCiJKOaXKOVQ7yssHs 7WGkxiwuBBOPeLuo8wbw/oC5mtLTFnb+wo12GEqPnS7IWKea32Zq8SkFwJz4Myvd16XE zbwQ/MOsAXJC/NojMbUN7BfRdcDpgyotKZt+TiwirZiCq6jRe+9CkZcluy0pi6LjxjNU OWhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=48ADDpQM9z/BZ40yXTCecgBCKKneMYXS0AEi6nY1rNY=; b=d7RgKW/ew6t6SGio01iSzcA9JL2n9hzX9epc1E+TNv6bejXHIvfXZMxRY0pDaLyOXo khjI+THiaqkaEg2Q4j9Qj7EuWVZBBeaNaAHxFQm94vsXKuP/HQJxEUeQ0n7CTmIome1M tomVgdNwqhpg9gpySveuWEPZFO9xNq5R7UoleKMGBmMNNztVTV05R5VqgyZlZE9/FsV5 S5/4EuYvOdEwGnv7LlroYSGrXFzuFiomHXe4KS5QzFQV0TZmorNvq0Rl0AxLl3r+lxNv T++kUxMEWSi+y4XwR6YKDNniHgcd5jj7VgeJBM7zB8hErXICCpdxWDu/iQVthBIbVGfV f19g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pxDShVxp; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a056a000a0600b00577e14babaesi21869108pfh.4.2023.01.13.06.55.55; Fri, 13 Jan 2023 06:56:02 -0800 (PST) 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=@bootlin.com header.s=gm1 header.b=pxDShVxp; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229509AbjAMO3z (ORCPT + 51 others); Fri, 13 Jan 2023 09:29:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229779AbjAMO3D (ORCPT ); Fri, 13 Jan 2023 09:29:03 -0500 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92D10FF; Fri, 13 Jan 2023 06:19:28 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 3A5AA60013; Fri, 13 Jan 2023 14:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1673619566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=48ADDpQM9z/BZ40yXTCecgBCKKneMYXS0AEi6nY1rNY=; b=pxDShVxpca+jED54OGgdBg2dQ/oLPtWL3k1XprzkQgOZNVmQB2J8anIbjl9TH5ndSi8EtM CVDwgeA/F1Rwz2aJFbe2d0uZMU8kwHdAq/sC33IEJYKedCQX6NkyE/Xhs6hNj1eFiczDsg MxGIigt6L9diQdCvI0t2FH80R9ieFCEml7Orp6TKOR/G0i2wQngnIXJH/3cpcfc6nQpN5s WO84G9SQyVaYOhrqgcXTjW5qRR9J30DCDtuvGO/9n2yWGs4irpkQLh+jnRHudKr2MV6S35 T8m1yxS6wMWcU80yb9BPjOkelGxc9ooexqQI/4QwIZIxZRKqpr6PujFTFg8Q1Q== Date: Fri, 13 Jan 2023 15:19:23 +0100 From: Herve Codina To: Mark Brown Cc: Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH 2/3] ASoC: codecs: Add support for the Renesas IDT821034 codec Message-ID: <20230113151923.086a0495@bootlin.com> In-Reply-To: References: <20230111134905.248305-1-herve.codina@bootlin.com> <20230111134905.248305-3-herve.codina@bootlin.com> <20230111174022.077f6a8c@bootlin.com> <20230113090431.7f84c93a@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Hi Mark, On Fri, 13 Jan 2023 12:59:59 +0000 Mark Brown wrote: > On Fri, Jan 13, 2023 at 09:04:31AM +0100, Herve Codina wrote: >=20 > > For DAPM (struct snd_soc_dapm_widget), no kind of .put() and .get() > > are available. I will use some Ids for the 'reg' value and use the > > .write() and .read() hooks available in struct snd_soc_component_driver > > in order to handle these Ids and so perform the accesses. =20 >=20 > That's what the event hooks are for - there's plenty of widgets using > SND_SOC_NOPM as the register, look at those for examples. Indeed, got it. Thanks for pointing it. Best regards, Herv=C3=A9 --=20 Herv=C3=A9 Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com