From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9E9F1C54EBD for ; Fri, 13 Jan 2023 14:29:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229473AbjAMO3x (ORCPT ); Fri, 13 Jan 2023 09:29:53 -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 Precedence: bulk List-ID: X-Mailing-List: devicetree@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