snd_soc_dai_set_channel_map(9)
π snd_soc_dai_set_channel_map
okay bestie, gather round, because this little function is from the Kernel API Manual and it's literally the one that tells your DAI which audio channel lives in which TDM slot. no cap. let's get into it π
β¨ NAME β¨
snd_soc_dai_set_channel_map β configure DAI audio channel map π
like, it's the channel-map configurator. that's the whole vibe.
πΈ SYNOPSIS πΈ
int snd_soc_dai_set_channel_map (struct snd_soc_dai *dai , unsigned int
tx_num , const unsigned int *tx_slot , unsigned int rx_num , const
unsigned int *rx_slot );
five args, returns an int. she's not complicated, she's just specific π¦
π«Ά ARGUMENTS π«Ά
daiβ the DAI. yes. that's the whole description. iconic of the kernel docs honestly πtx_numβ how many TX channels, like, the count πtx_slotβ pointer to an array which imply the TX slot number channel0~num-1uses β¨rx_numβ how many RX channels πΈrx_slotβ pointer to an array which imply the RX slot number channel0~num-1uses π
bothtx_slotandrx_slotare pointers to arrays, not arrays themselves, and the range they cover is0~num-1β keep that in mind, bestie π
π₯ DESCRIPTION π₯
configure the relationship between channel number and TDM slot number.
that's it. that's the function. she matches up your channels with your TDM slots and dips. main character energy, zero notes π
β SEE ALSO β
- Kernel file
./sound/soc/soc-dai.c snd_soc_dai_set_sysclk(9)snd_soc_dai_set_clkdiv(9)snd_soc_dai_set_pll(9)snd_soc_dai_set_bclk_ratio(9)snd_soc_dai_set_bclk_clk(9)snd_soc_dai_set_fmt(9)snd_soc_xlate_tdm_slot_mask(9)snd_soc_dai_set_tdm_slot(9)snd_soc_dai_set_tdm_idle(9)snd_soc_dai_get_channel_map(9)snd_soc_dai_set_tristate(9)snd_soc_dai_digital_mute(9)
like a whole little friend group of DAI setters, and yes we stan every single one π
and that's the page, bestie π§ this one's out of ./sound/soc, dated October 2026, page snd_soc_dai_set_channel_map(9) β go forth and map those channels, periodt π
π¦ 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