snd_soc_dai_set_sysclk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 either SND_SOC_CLOCK_IN or SND_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 😭:


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