snd_soc_dai_set_bclk_ratio(9)
π 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:
snd_soc_dai_set_sysclk(9)snd_soc_dai_set_clkdiv(9)snd_soc_dai_set_pll(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_get_channel_map(9)snd_soc_dai_set_tristate(9)snd_soc_dai_digital_mute(9)
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
- 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