snd_soc_dai_get_channel_map(9)
π snd_soc_dai_get_channel_map(9) π
okay so bestie, welcome to the Kernel API Manual β this one is a function page, and honestly it's giving "short but iconic". We're talking about snd_soc_dai_get_channel_map, and no cap, it does exactly what it says on the tin: it gets you the DAI audio channel map. π
β¨ NAME β¨
snd_soc_dai_get_channel_map β Get DAI audio channel map πΈ
π¦ SYNOPSIS π¦
int snd_soc_dai_get_channel_map (const struct snd_soc_dai *dai ,
unsigned int *tx_num , unsigned int *tx_slot , unsigned int *rx_num ,
unsigned int *rx_slot );
like, that's the whole signature, copy it exactly please, we do not freestyle here π
π«Ά ARGUMENTS π«Ά
daiβ the DAI. yep. that's the whole description. it's the DAI, bestie, main character energy β¨tx_numβ how many TX channels π₯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 π
lowkey note: bothtx_slotandrx_slotare described the exact same way in the original β "pointer to an array which imply the TX/RX slot number channel0~num-1uses". so yes, that phrasing is on purpose, we are keeping it fr fr π
π 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_set_channel_map(9)snd_soc_dai_set_tristate(9)snd_soc_dai_digital_mute(9)
like, it's a whole friend group of functions, and snd_soc_dai_get_channel_map is just the one that reads instead of writes β iykyk π
and that's the page!! π this little gem lives at ./sound/soc and the version stamp says October 2026. kudos to whoever wrote it, mwah π bye bestie, go map those channels πππ¦
π¦ 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