nau8824_set_tdm_slot(9)
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.0xffor normal 4 channel TDM.0xf0for 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 is00=CH0,01=CH1,10=CH2,11=CH3. Ex.0xffor DACL/R selecting TDM CH3.0xf0for 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms