aio_port_set_volume(9)
okay so welcome to the aio_port_set_volume(9) page in the Kernel API Manual β this is the one about setting the volume of an AIO port block, and it's lowkey iconic. π
β¨ NAME β¨
aio_port_set_volume β set volume of AIO port block. periodt.
π SYNOPSIS π
here's the signature, exactly as it is, no cap:
void aio_port_set_volume (struct uniphier_aio_sub *sub , int vol );
πΈ ARGUMENTS πΈ
subβ the AIO substream pointer. it's giving "main character pointer energy" π«Άvolβ the target volume, and its range is0x0000-0xffff. yes bestie, that whole range. β¨
π¦ DESCRIPTION π¦
so this function changes the digital volume and performs the fade-out/fade-in effect for the specified output slot of the port. very demure, very audio-core. π§
the gained PCM value can be calculated like this:
Gained = Original * vol / 0x4000
that formula is literally right there, so keep it safe in your notes. π
π₯ SEE ALSO π₯
the kernel file is ./sound/soc/uniphier/aio-core.c, and these are the SEE ALSO besties:
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_clk(9)aio_port_set_param(9)aio_port_set_enable(9)aio_port_get_volume(9)aio_if_set_param(9)aio_oport_set_stream_type(9)aio_src_reset(9)aio_src_set_param(9)
okay thatβs the whole page, bestie. the footer details are: source/version ./sound/soc/uniphier, date October 2026, and it belongs to aio_port_set_volume(9). π«Άπβ¨
π¦ 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