mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
	Ernest Van Hoecke <ernestvanhoecke@gmail.com>,
	Francesco Dolcini <francesco@dolcini.it>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Saravana Kannan <saravanak@google.com>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
	patches@opensource.cirrus.com,
	Ernest Van Hoecke <ernest.vanhoecke@toradex.com>,
	linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Francesco Dolcini <francesco.dolcini@toradex.com>
Subject: Re: [PATCH v2 3/5] ASoC: dt-bindings: wm8904: Add DMIC, GPIO, MIC and EQ support
Date: Wed, 5 Mar 2025 13:18:05 +0000	[thread overview]
Message-ID: <f0be0cc3-4349-4300-9fd2-9aecdcd9d099@sirena.org.uk> (raw)
In-Reply-To: <Z8geyb9ilUPmDUXk@opensource.cirrus.com>

[-- Attachment #1: Type: text/plain, Size: 2104 bytes --]

On Wed, Mar 05, 2025 at 09:52:09AM +0000, Charles Keepax wrote:
> On Wed, Mar 05, 2025 at 07:45:50AM +0100, Krzysztof Kozlowski wrote:
> > On 27/02/2025 16:34, Ernest Van Hoecke wrote:

> > > I expect most users to use the first five Retune Mobile registers and
> > > not care about the rest, which require a proprietary tool and are not
> > > well documented. The example in the binding shows how some simple
> > > static EQ can be configured. Anyone interested in the extended config
> > > can also use it (statically).

> > No, if this is suitable for dynamic configuration then it's a proof it
> > is not suitable for DT.

> Whilst I can see the argument that this could be exposed as an
> ALSA control. I would also suggest that this is not adding some new
> feature, these values have been filled in from pdata for 16 years
> now. Changing the way such a vintage part works at this point feels
> more problematic to me than a slightly iffy DT property.

> On the flip side of the argument, the parameters that are filled
> into this are almost certainly specific tuning for the hardware,
> so in many ways this is hardware description and there is a
> certain appeal to shipping the tuning with the hardware (ie. in
> DT).

Right, the intended use case for the dynamic configuration is lab tuning
rather than with end users - most things that are configured like this
*can* be tuned interactively (or interactively from the point of view of
the driver) but that doesn't translate to end users doing it.  It's more
like coefficient data that could also be loaded from a firmware blob
(but again, there's a proprietary tool here and it's not expecting to
produce anything except a list of register values), we do have some EFI
examples of pulling tuning data from the firmware for things like
speaker correction (which is one of the use cases here) IIRC.

Like Charles says this scheme has been deployed for a decade or
something, it seems unhelpful to upend everything right now.  We could
also implement an alternative scheme but providing something that makes
DT transition easy seems productive.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2025-03-05 13:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-24 15:54 [PATCH v2 0/5] ASoC: wm8904: Add DMIC and DRC support Francesco Dolcini
2025-02-24 15:54 ` [PATCH v2 1/5] of: Add of_property_read_u16_index Francesco Dolcini
2025-02-24 15:54 ` [PATCH v2 2/5] ASoC: wm8904: Don't touch GPIO configs set to 0xFFFF Francesco Dolcini
2025-02-24 15:54 ` [PATCH v2 3/5] ASoC: dt-bindings: wm8904: Add DMIC, GPIO, MIC and EQ support Francesco Dolcini
2025-02-24 17:19   ` Rob Herring (Arm)
2025-02-25  8:41   ` Krzysztof Kozlowski
2025-02-27 15:34     ` Ernest Van Hoecke
2025-03-05  6:45       ` Krzysztof Kozlowski
2025-03-05  9:52         ` Charles Keepax
2025-03-05 13:18           ` Mark Brown [this message]
2025-02-24 15:54 ` [PATCH v2 4/5] ASoC: wm8904: get platform data from DT Francesco Dolcini
2025-02-24 15:55 ` [PATCH v2 5/5] ASoC: wm8904: add DMIC support Francesco Dolcini
2025-03-04 13:56   ` Charles Keepax

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f0be0cc3-4349-4300-9fd2-9aecdcd9d099@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=ernest.vanhoecke@toradex.com \
    --cc=ernestvanhoecke@gmail.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=francesco@dolcini.it \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=patches@opensource.cirrus.com \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=saravanak@google.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®