sdw_config_stream(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– sdw_config_stream(9) β€” the sdw_config_stream glow-up πŸŽ€

okay bestie, welcome to the Kernel API Manual ✨ today we're getting into sdw_config_stream(9) and honestly? it's giving "small function, big responsibilities" energy. let's go πŸ’…


🌸 NAME 🌸

sdw_config_stream β€” configure the allocated stream πŸ¦‹

like, the stream is already allocated, and now you're giving it its configuration. periodt.


✨ SYNOPSIS ✨

int sdw_config_stream (struct device *dev , struct sdw_stream_runtime
*stream , struct sdw_stream_config *stream_config , bool is_slave );

that's the whole signature, no cap. four arguments, one int coming back at you πŸ’œ


🫢 ARGUMENTS 🫢

  • dev β€” the SDW device πŸ’» like, the device device.
  • stream β€” the SoundWire stream 🌊 the actual stream we're working with.
  • stream_config β€” stream configuration for the audio stream 🎧 yes, the config for your audio stream. it's right there in the name bestie.
  • is_slave β€” is the API called from Slave or Master? πŸ‘‘ that's literally the question this flag is answering. Slave or Master. pick one.

πŸ’… DESCRIPTION πŸ’…

okay so here's the one thing you cannot fumble: this function is to be called with bus_lock held. πŸ”’

like, held held. not "I'll grab it in a sec", not "my friend has it". if you're calling sdw_config_stream without bus_lock held you are lowkey doing it wrong and the kernel is not gonna be cute about it 😭

real talk: bus_lock held. that's the rule. don't be the person who skips it πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./drivers/soundwire/stream.c β€” go read it, iykyk πŸ“– and while you're in the neighborhood, these are all the friends in the group chat:

all twenty-eight of them, accounted for, nobody left on read πŸ’–


✨ and that's the page, bestie ✨ this gem lives in ./drivers/soundwire, dated October 2026 β€” stan the SoundWire crew, they ate πŸ“πŸ’…

πŸ“¦ where this page comes from