snd_soc_dai_set_clkdiv(9)
π NAME π
<pink>snd_soc_dai_set_clkdiv</pink> β configure DAI clock dividers. That's it, bestie: it's the function that handles DAI clock divider setup β¨ (straight from the Kernel API Manual, iykyk).
πΈ SYNOPSIS πΈ
int snd_soc_dai_set_clkdiv (struct snd_soc_dai *dai , int div_id , int
div );
π ARGUMENTS π
daiβ DAI. literally the DAI struct you're working with πdiv_idβ DAI specific clock divider ID. this tells it which divider we're talking about π¦divβ new clock divisor. the fresh divisor value, periodt β¨
π¦ DESCRIPTION π¦
Okay so this function configures the clock dividers. It's used to derive the best DAI bit and frame clocks from the system or master clock π. And the glow-up tip: it's best to set the DAI bit and frame clocks as low as possible to save system power ππ. Lowkey iconic power-saving behavior, no cap.
π₯ SEE ALSO π₯
- Kernel file:
./sound/soc/soc-dai.cπ snd_soc_dai_set_sysclk(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_get_channel_map(9)snd_soc_dai_set_tristate(9)snd_soc_dai_digital_mute(9)
Signed off with ./sound/soc, October 2026, and snd_soc_dai_set_clkdiv(9) energy β slay, bestie π
β¨π
π¦ 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