aio_port_set_rate(9)
β¨ aio_port_set_rate(9) β¨
okay bestie, so this is a Kernel API Manual page, and it's literally about setting the sampling rate of LPCM. it's giving "small function, big responsibilities" energy π
πΈ NAME πΈ
aio_port_set_rate β set sampling rate of LPCM
π SYNOPSIS π
int aio_port_set_rate (struct uniphier_aio_sub *sub , int rate );
π¦ ARGUMENTS π¦
subβ the AIO substream pointer, PCM substream only π«Ά (like, don't come at it with anything else, it said what it said)rateβ Sampling rate in Hz. the actual number, bestie π΅
π DESCRIPTION π
okay so what this does: it sets the suitable I2S format settings to the input/output port block of AIO. that's the whole vibe. β¨
and the parameter? it's specified by hw_params. so that's where it comes from, no cap.
β οΈ heads up: this function may return error if non-PCM substream. so if you're rolling up with something that isn't PCM, it might just say no π
π₯ RETURN π₯
Zero if successful, otherwise a negative value on error. that's it, that's the deal π
π SEE ALSO π
- the kernel file
./sound/soc/uniphier/aio-core.cπ (that's where the main character lives) 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_fmt(9)aio_port_set_clk(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 fr fr π«Ά
and that's the page!! written from ./sound/soc/uniphier, dated October 2026 β tysm for reading, ily, go set some rates 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