snd_soc_dai_set_sysclk(9)
π snd_soc_dai_set_sysclk π
okay bestie, welcome to the Kernel API Manual β¨ β this is the page for snd_soc_dai_set_sysclk(9), and it's literally the one that sets your DAI's system clock or master clock. clock girl summer πΈ
β¨ NAME β¨
snd_soc_dai_set_sysclk β configure DAI system or master clock. that's it, that's the whole vibe π
π SYNOPSIS π
int snd_soc_dai_set_sysclk (struct snd_soc_dai *dai , int clk_id ,
unsigned int freq , int dir );
no cap, that's the exact signature β don't be out here changing types on me π
π¦ ARGUMENTS π¦
daiβ the DAI. yeah. it's the DAI. main character struct, honestly πclk_idβ the DAI specific clock ID. so it's your DAI's own little clock identifier, iykyk βfreqβ new clock frequency, in Hz. hertz. the unit. obviously πdirβ new clock direction, and it's gotta be eitherSND_SOC_CLOCK_INorSND_SOC_CLOCK_OUT. those two, bestie, no third option π«Ά
π DESCRIPTION π
so what does it actually do? it configures the DAI master (MCLK) or system (SYSCLK) clocking. that's the whole description fr fr β short, sweet, iconic π§
π SEE ALSO π
the kernel file lives at ./sound/soc/soc-dai.c β go say hi π
and here's the whole friend group, all twelve of them, not skipping a single one because that would be rude π:
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_get_channel_map(9)snd_soc_dai_set_tristate(9)snd_soc_dai_digital_mute(9)
ok and finally, the cute lil sign-off π this page is from ./sound/soc, dated October 2026. mwah, bye 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