nau8824_set_tdm_slot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

nau8824_set_tdm_slot(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this one is nau8824_set_tdm_slot(9), and it’s all about getting your DAI into TDM mode. ✨


🌸 NAME 🌸

nau8824_set_tdm_slot β€” configure DAI TDM. periodt.


πŸŽ€ SYNOPSIS πŸŽ€

int nau8824_set_tdm_slot (struct snd_soc_dai *dai , unsigned int tx_mask
       , unsigned int rx_mask , int slots , int slot_width );

πŸ’… ARGUMENTS πŸ’…

  • dai β€” the DAI. literally the DAI. that’s the whole description, no cap. 🫢
  • tx_mask β€” a bitmask representing the active TX slots. Ex. 0xf for normal 4 channel TDM. 0xf0 for shifted 4 channel TDM. slay those bits. πŸ”₯
  • rx_mask β€” okay this one is fancy: bitmask [0:1] represents active DACR RX slots, and bitmask [2:3] represents active DACL RX slots. The mapping is 00=CH0, 01=CH1, 10=CH2, 11=CH3. Ex. 0xf for DACL/R selecting TDM CH3. 0xf0 for DACL/R selecting shifted TDM CH3. iykyk. πŸ’«
  • slots β€” number of slots in use. 🎚️
  • slot_width β€” width in bits for each slot. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

This configures a DAI for TDM operation. And the tea is: it only support 4 slots TDM. that’s it, that’s the vibe. πŸ’€βœ¨


🌈 SEE ALSO 🌈

Kernel file ./sound/soc/codecs/nau8824.c, plus these iconic little functions: nau8824_calc_fll_param(9), nau8824_enable_jack_detect(9). go bestie go πŸ§šπŸ’œ


and that’s the page, bestie πŸ’– this cutie comes from ./sound/soc/codecs, with manual version nau8824_set_tdm_slot(9), dated October 2026 β€” mwah, signed off with main character energy πŸ‘‘πŸŽ€

πŸ“¦ where this page comes from