snd_soc_dai_set_tdm_idle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_soc_dai_set_tdm_idle ✨

okay so bestie, welcome to the Kernel API Manual, and buckle up because this little function is all about telling a DAI how to behave when its TDM slots are just… sitting there doing nothing πŸ’…


πŸŽ€ NAME πŸŽ€

snd_soc_dai_set_tdm_idle β€” configure a DAI's TDM idle mode


🌸 SYNOPSIS 🌸

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 );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dai β€” the DAI you're configuring, obvs. this is the main character of the operation πŸ‘‘
  • tx_mask β€” a bitmask representing the idle TX slots ✨
  • rx_mask β€” a bitmask representing the idle RX slots ✨
  • tx_mode β€” the idle mode you wanna set for the TX slots
  • rx_mode β€” the idle mode you wanna set for the RX slots

πŸ’– DESCRIPTION πŸ’–

so basically this function configures the DAI to handle idle TDM slots in whatever manner you specify. fr fr, that's the whole vibe.

tx_mode and rx_mode can be one of:

  • SND_SOC_DAI_TDM_IDLE_NONE
  • SND_SOC_DAI_TDM_IDLE_ZERO
  • SND_SOC_DAI_TDM_IDLE_PULLDOWN
  • SND_SOC_DAI_TDM_IDLE_HIZ

now listen, SND_SOC_TDM_IDLE_NONE represents the DAI's default/unset idle slot handling state β€” and it could actually be any of the other modes depending on the hardware behind the DAI. so setting it explicitly? that's undefined behaviour πŸ˜­πŸ’€ not it. don't do that.

mode and mask can be set independently for both the TX and RX direction β€” slay, flexible icon behaviour 🫢

⚠️ heads up: some hardware may ignore both the TX and RX masks depending on its capabilities. so like, don't come for the masks if your hardware genuinely doesn't care πŸ™ˆ

🌈 SEE ALSO 🌈

kernel file ./sound/soc/soc-dai.c plus all these besties:


and that's the whole page, periodt πŸ’…βœ¨ this came to you from ./sound/soc, dated October 2026, under the Kernel API Manual umbrella β€” stay iconic, go configure some idle slots responsibly πŸŽ€πŸ’œ

πŸ“¦ where this page comes from