aio_port_set_fmt(9)
π aio_port_set_fmt(9) β like, the kernel API manual, but make it make sense π
okay bestie, buckle up, because we're diving into the Kernel API Manual, section 9, and today's main character is aio_port_set_fmt. she's a little function with one job and, honestly? she ate. π
β¨ NAME β¨
aio_port_set_fmt β set format of I2S data π΅
like, literally that. it sets the format. of I2S data. no cap.
πΈ SYNOPSIS πΈ
int aio_port_set_fmt (struct uniphier_aio_sub *sub );
one function, one pointer, one int coming back atcha. we love a simple signature, fr fr. π«Ά
π¦ ARGUMENTS π¦
subβ the AIO substream pointer, PCM substream only. and listen, this is important: this parameter has no effect if the substream is I2S or PCM. so if you're out here passing an I2S or PCM substream like it's gonna do something? it's giving nothing. π
π DESCRIPTION π
okay so here's the vibe: this function sets suitable I2S format settings onto the input/output port block of AIO. the parameter itself is specified by set_fmt. iconic behavior, honestly.
β οΈ heads up bestie β this function may return an error if the substream is non-PCM. so like, know what you're passing in there. π
β RETURN β
- Zero if successful π
- otherwise, a negative value on error π
that's it. that's the whole return section. short and slay.
π₯ SEE ALSO π₯
the kernel file lives at ./sound/soc/uniphier/aio-core.c, and here's the whole friend group, all tagged with (9) because they're all kernel API icons:
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_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)
go read them all, iykyk. πβ¨
and that's the page, bestie!! this lil gem comes to you from ./sound/soc/uniphier, dated October 2026 β so like, future vibes only. mwah, go forth and set some formats π
ππ
π¦ 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