aio_port_set_rate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈

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