aio_port_set_clk(9)
π aio_port_set_clk(9) β Kernel API Manual, but make it a vibe β¨
okay so bestie, welcome to the group chat for the kernel β this is a page straight out of the Kernel API Manual and it's all about setting the clock and divider of an AIO port block. it's giving very "let me fix your timing, queen" energy π
β¨ NAME β¨
aio_port_set_clk β set clock and divider of AIO port block ππ«
πΈ SYNOPSIS πΈ
int aio_port_set_clk (struct uniphier_aio_sub *sub );
π¦ ARGUMENTS π¦
subβ the AIO substream pointer. literally the little pointer to the substream, she's the main character here π
π§ DESCRIPTION π§
okay so what this does: it sets a suitable PLL clock divider and the relational settings for the input/output port block of AIO. no cap, it's just getting the vibes aligned so the clock timing actually slays π₯
the parameters are specified by set_sysclk and set_pll β those are the two functions feeding it the deets, iykyk π
π RETURN π
Zeroif successful π- otherwise a negative value on error π β so like, if it didn't work, it's negative. periodt.
π«Ά SEE ALSO π«Ά
the kernel file ./sound/soc/uniphier/aio-core.c is the homegirl for all of this, and here's the whole squad of related functions you should absolutely check out:
aio_iecout_set_enable(9)aio_chip_set_pll(9)aio_chip_init(9)aio_init(9)aio_port_reset(9)aio_port_set_ch(9)aio_port_set_rate(9)aio_port_set_fmt(9)aio_port_set_param(9)aio_port_set_enable(9)aio_port_get_volume(9)aio_port_set_volume(9)aio_if_set_param(9)aio_oport_set_stream_type(9)aio_src_reset(9)aio_src_set_param(9)
like, the whole friend group is here and they're all iconic π«Άβ¨
this page is brought to you by the./sound/soc/uniphiersource directory, version vibes from October 2026, and the manual section foraio_port_set_clk(9)β mwah, go forth and set those clocks, 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