psc_i2s_set_sysclk(9)
π psc_i2s_set_sysclk β like, the whole kernel API manual vibe π
okay so bestie, you're reading the psc_i2s_set_sysclk(9) page from the Kernel API Manual and honestly? it's short, it's sweet, and it's giving "one job, done right" energy. let's get into it π
β¨ NAME β¨
psc_i2s_set_sysclk β set the clock frequency and direction. that's it. that's the whole thing. slay π
β¨ SYNOPSIS β¨
int psc_i2s_set_sysclk (struct snd_soc_dai *cpu_dai , int clk_id ,
unsigned int freq , int dir );
so it's an int-returning function, four args, all listed above β screenshot that, it's iconic πΈ
β¨ ARGUMENTS β¨
cpu_daiβ the DAI runtime data pointer. it's the whole context for what you're poking at, so likeβ¦ give it the respect it deserves πclk_idβ reserved, should be zero. that means be a good citizen and pass0, no cap πfreqβ the frequency of the given clock IDβ¦ and currently it's ignored. yes bestie, it's a decorative argument rn, she's just standing there being pretty πΈdirβ eitherSND_SOC_CLOCK_IN(clock slave) orSND_SOC_CLOCK_OUT(clock master). those are the two vibes β
β¨ DESCRIPTION β¨
so this function is called by the machine driver to tell us what the clock frequency and direction are. that's the whole point of her existence β¨
but here's the tea π: currently we only support operating as a clock slave β that's SND_SOC_CLOCK_IN. and we genuinely don't care about the frequency, like at all, lowkey irrelevant. so if you roll up with a dir that is not SND_SOC_CLOCK_IN, she's gonna return an error at you. respectfully. π«Ά
ngl the vibe check here is strict: SND_SOC_CLOCK_IN or nothing. clock master energy is not accepted in this house π
β¨ RETURN β¨
0on success π-EINVALon failure π
that's the whole menu, bestie, two options only.
β¨ SEE ALSO β¨
- the kernel file
./sound/soc/fsl/mpc5200_psc_i2s.cβ that's where she lives π PSC_I2S_RATES(9)PSC_I2S_FORMATS(9)psc_i2s_set_fmt(9)- var
psc_i2s_dai_ops(9)
go read them, they're all part of the same friend group π
and that's the page, bestie!! no cap, you're now fully caught up π¦ β this one's from ./sound/soc/fsl, dated October 2026, and the page itself is psc_i2s_set_sysclk(9). periodt π
β¨π
π¦ 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