Re: [PATCH v5 2/2] ASoC: codecs: nau8360: Add support for NAU83G60 amplifier

Mark Brown <[email protected]> Sun, 5 Jul 2026 13:32:11 +0100
Newsgroups org.alsa-project.alsa-devel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-sound
Message-ID <[email protected]>
On Fri, Jul 03, 2026 at 11:26:12AM +0800, YLCHANG2 wrote:
> On 7/2/26 23:15, Mark Brown wrote:

> > I would expect TDM to be configured by set_tdm_slot() from the machine
> > driver, not from userspace.  I see the driver does actually have a
> > set_tdm_slot() operation...

> Our DSP functions require specific Slot mapping (e.g., Slot 0 for AECL, Slot
> 1 for AECR).
> The standard set_tdm_slot() only defines active slots but doesn't handle the
> functional mapping.
> We originally intended to allow dynamic mapping via UCM/userspacea and then
> apply these settings using set_tdm_slot().
> How should we implement this mapping according to ASoC standards?

This would usually be doing using DAPM routing if it's expected to be
runtime variable, define AIF widgets for the bus slots then route to
them.

> Should we define the default mapping during the codec probe stage,
> or is there a preferred way to handle this via the machine driver?

Device properties, this is better if it's supposed to be fixed for the
system.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpKTssACgkQJNaLcl1U
h9A/mQf/c053HM+naqdF17/uVmgb6e04rPNnqH7Us+kvxpfWyPS0bp+3vo1P6Ur0
POHx0sPld8RauUxTig2rXk+Kt87Asn3/wm4kTQrOvOBv8airOLBViFeIQHoIrajo
JdH678NtqoVhc3zy5W8pt+/6zeTbQK4obbfOzjtWEe6EbsrXiy3B9BUnxbe2bt5k
E3coE4U4a587PPepJe5ue7eJfyc3xFHTHlsLxtWXsO+P0oSZXwrt2CB74Cvjvzwc
Yt1JExI6vhfLnLt/2YR1PtTiMH9srG/xVBQo7USnxq1SxDnV2y8nelMpyE9LjkAH
KZ9YYwMy9ji8OzML5MUqNYGiVXihiA==
=bhKF
-----END PGP SIGNATURE-----