snd_soc_dai_set_bclk_ratio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– snd_soc_dai_set_bclk_ratio(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual section 9, and today's main character is snd_soc_dai_set_bclk_ratio β€” no cap, she's the one who sets your BCLK-to-sample-rate ratio and just… makes the audio clock situation make sense. πŸŽ€


⭐ NAME ⭐

snd_soc_dai_set_bclk_ratio β€” configure BCLK to sample rate ratio. literally what it says on the tin, she configures the ratio, that's the whole gig πŸ’…


✨ SYNOPSIS ✨

int snd_soc_dai_set_bclk_ratio (struct snd_soc_dai *dai , unsigned int
ratio );

so she takes a struct snd_soc_dai *dai and an unsigned int ratio, and she returns an int. iconic signature, no notes 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dai β€” the DAI. yes, that's the whole description. she's a DAI. that's her vibe. 🌸
  • ratio β€” the ratio of BCLK to sample rate. this is the number that makes the clocks go brrr correctly πŸ”₯

🧚 DESCRIPTION 🧚

Configures the DAI for a preset BCLK to sample rate ratio. like, you show up with a ratio you already picked out, and she goes ahead and configures the DAI with it. preset. done. periodt. ✨


🌈 SEE ALSO 🌈

the kernel file lives at ./sound/soc/soc-dai.c and honestly the whole friend group is here:

go read them, they all ate πŸ’–


ngl this page is short but she understood the assignment. πŸ“

okay that's the whole read, bestie β€” from ./sound/soc, dated October 2026, this was snd_soc_dai_set_bclk_ratio(9) and she slayed πŸ’œπŸ‘‘

πŸ“¦ where this page comes from