aio_port_set_volume(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 is 0x0000 - 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:


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