snd_soc_dai_get_channel_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 channel 0~num-1 uses πŸ’œ
  • rx_num β€” how many RX channels πŸ”₯
  • rx_slot β€” pointer to an array which imply the RX slot number channel 0~num-1 uses πŸ’œ
lowkey note: both tx_slot and rx_slot are described the exact same way in the original β€” "pointer to an array which imply the TX/RX slot number channel 0~num-1 uses". so yes, that phrasing is on purpose, we are keeping it fr fr πŸ™ˆ

🌈 SEE ALSO 🌈

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