Re: [PATCH v2 2/7] ASoC: codecs: aw88261: add TDM support

Mark Brown <[email protected]>
Newsgroups org.kernel.vger.phone-devel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-sound
Message-ID <[email protected]>
On Tue, May 19, 2026 at 07:32:33PM -0300, Val Packett wrote:
> On 5/19/26 1:06 PM, Mark Brown wrote:

> > In spite of the changelog this doesn't actually seem to use slot_width?
> > It should.

> Right, I hadn't exactly figured out where that slots in (ha)..

> The datasheet seems to say that I2SBCK is slot width, but there are only 3
> options for it (32/48/64) and I currently select the one that matches
> 2*physical_width.

> Grepping the tree I'm seeing that slot_width is basically the same thing as
> physical width. Should slot_width from set_tdm_slot take precedence over the
> params_physical_width() from hw_params? Should I just have both callbacks
> set the variable and whichever was called last "wins"?

If TDM is configured then hw_params should not cause the number of bits
on the bus to vary at all, the clocking of the bus is fixed by the TDM
configuration.

> > Note also that we should disable TDM if slots == 0.

> This is pretty much already the case.. but I guess I should also reset the
> masks specifically to the i2s default (2nd channel to R). Are masks also
> zero when slots == 0?

They should be.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmoNposACgkQJNaLcl1U
h9DuGgf+MDoWQjHIAaR4xZl4fbLRWJMeAA5LDyfvlh4HKl2hFn/ZwzNuENjHVpr1
1zlsQxbL1cjSnT0ENtbv9cVEr5t3VLAvVyVyxYdRuwrddQz0nAkemdv+A+dpgauu
7XQLiMVR47Emhq0rOlJJJbp8B9uLiCVCLYnXl+afVVJlSdLDnpB7NP5kpe8n+crS
QYlAwSNn+95QrAoHYdPVxHa9dtkr2uXtH2SAWwTfP6KKUI8sBusKq1S8KJ2Z0V0l
ADsMYvD3dkaZFdDv8irQrVpTYJjwRVhkg2/RbvROgzBUCD9Qc22eLCLPlzsKT1Xl
3EAkLWdkLPSdweySWH4jHowO+fFCpg==
=n95i
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.