snd_soc_comp...t_set_sysclk(9)
β¨ snd_soc_comp...t_set_sysclk(9) β¨
okay so welcome to the Kernel API Manual bestie, this is the page for snd_soc_component_set_sysclk and it's literally the glow-up your clock situation has been waiting for π
π NAME π
snd_soc_component_set_sysclk β configure COMPONENT system or master clock. that's it, that's the whole vibe. clock configured, vibes immaculate, periodt π
πΈ SYNOPSIS πΈ
int snd_soc_component_set_sysclk (struct snd_soc_component *component ,
int clk_id , int source , unsigned int freq , int dir );
five args, one int coming back at you, no cap π¦
π ARGUMENTS π
componentβ the COMPONENT. the main character of this whole operation, fr fr πclk_idβ the DAI specific clock ID. yes it's DAI specific, so don't go mixing them up bestie πsourceβ where the clock is coming from. the origin story, if you will β¨freqβ the new clock frequency, measured in Hz. numbers only, no vibes-based guessing πdirβ the new clock direction β input/output. pick a lane, literally π§
π¦ DESCRIPTION π¦
this one configures the CODEC master clock (that's MCLK) or the system clock (SYSCLK). lowkey iconic of it tbh π
β SEE ALSO β
the kernel file lives at ./sound/soc/soc-component.c β go snoop, iykyk π₯
and here's the whole bestie group chat of related calls, all present and accounted for:
snd_soc_component_set_jack(9)snd_soc_component_get_jack_type(9)snd_soc_component_init_regmap(9)snd_soc_component_exit_regmap(9)snd_soc_component_read(9)snd_soc_component_write(9)snd_soc_component_update_bits(9)snd_soc_component_update_bits_async(9)snd_soc_component_read_field(9)snd_soc_component_write_field(9)snd_soc_component_async_complete(9)snd_soc_component_test_bits(9)
go configure that clock bestie, the MCLK and SYSCLK are gonna eat π no cap
and that's the whole page!! sourced from ./sound/soc, dated October 2026 β mwah, talk later, don't forget to read the source π«ΆπΈ
π¦ 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