STRUCT SLIM_STREAM_CONFIG(9)
β¨ 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 eitherSNDRV_PCM_STREAM_PLAYBACKorSNDRV_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
- 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