STRUCT SLIM_STREAM_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct slim_stream_config ✨

okay so bestie, welcome to the struct slim_stream_config page from the Kernel API Manual β€” this is the SLIMbus stream configuration glow-up, and it's genuinely not as scary as it looks πŸ’…

πŸŽ€ NAME πŸŽ€

struct slim_stream_config β€” SLIMbus stream configuration. That's the whole vibe.

Here's the tea on how you actually configure a stream: you do it at the hw_params or prepare call, coming from the audio drivers, because that's the moment where they finally have all the required info about rate, number of channels, and so on 🫢. And important: there is a 1:1 mapping of channel and ports. No cap, that's just how it is.


🌸 SYNOPSIS 🌸

struct slim_stream_config {
    unsigned int rate;
    unsigned int bps;
    unsigned int ch_count;
    unsigned int *chs;
    unsigned long port_mask;
    int direction;
 };

πŸ¦‹ Members πŸ¦‹

  • rate β€” the data rate, bb. literally the rate of the data πŸ“
  • bps β€” bits per data sample ✨
  • ch_count β€” how many channels we're working with πŸ’–
  • chs β€” pointer to the list of channel numbers πŸ‘‘
  • port_mask β€” the port mask of the ports you're gonna use for this stream 🌈
  • direction β€” the direction of the stream, and it's either SNDRV_PCM_STREAM_PLAYBACK or SNDRV_PCM_STREAM_CAPTURE. those two, pick one, that's it πŸ’€

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/slimbus.h, plus all these icons: struct slim_eaddr(9), enum slim_device_status(9), struct slim_device(9), struct slim_driver(9), struct slim_val_inf(9), module_slim_driver(9) β€” go read those next, iykyk πŸ”₯


alright bestie that's the whole page 🧚 this little beauty lives in ./include/linux and it's dated October 2026, so like… future iconic behavior fr fr. mwah, go configure some streams πŸ’…πŸŽ€

πŸ“¦ where this page comes from