Re: [PATCH v3 5/7] ASoC: soc-dai: add common operation to set TDM idle mode
From: James Calligeros
Date: Tue Mar 03 2026 - 04:11:17 EST
Hi Kuniori,
On Tuesday, 3 March 2026 12:11:50 pm Australian Eastern Standard Time Kuninori
Morimoto wrote:
> > +int snd_soc_dai_set_tdm_idle(struct snd_soc_dai *dai,
> > + unsigned int tx_mask, unsigned int rx_mask,
> > + int tx_mode, int rx_mode);
>
> Do we need "rx_mode" ?
> Only "tx_mode" is enough if my understanding was correct.
For our (Asahi) purposes yes, we only require TX. However, TAS2770 also
has a bus keeper on SDIN, and I suspect other hardware may too. Rather than
break the API later on should the need to configure this arise,
I decided to add the capability now. I am happy to get rid of it if
we think it is superfluous at this time though.
> This patch-set adds new snd_soc_dai_set_tdm_idle(), but no one is calling
> it. Who use it ??
Currently no one in tree consumes this API, and it is likely that no one will
until we submit our platform driver. See the linked resources in the cover
letter for more details.
In the interests of transparency, I don't expect to have the
platform driver ready for submission any time soon; it is a bit of a mess
and given that I did not write most of it I still need to wrap my head
around why certain decisions were made during its design. However, we
are 100% committed to getting it merged at some point.
If you would prefer I can resubmit this series along with the driver
once it is ready, so that there is an example consumer for the API.
Regards,
James Calligeros