aio_port_set_fmt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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