ENUM SDW_STREAM_STATE(9)
π enum sdw_stream_state β the kernel API manual, but make it make sense π
okay bestie, so this is a page straight out of the Kernel API Manual, and it's literally just the glow-up journey of a SoundWire stream β¨ like, the whole entire lifecycle from "just born" to "gone" π and every single state along the way needs its moment.
The name of the thing? enum sdw_stream_state β the stream states, periodt. π
β¨ NAME β¨
enum sdw_stream_state β stream states π like... literally the states a stream can be in, no cap.
π¦ SYNOPSIS π¦
okay so here's the whole squad, in order, one per line, exactly like this:
enum sdw_stream_state {
SDW_STREAM_ALLOCATED ,
SDW_STREAM_CONFIGURED ,
SDW_STREAM_PREPARED ,
SDW_STREAM_ENABLED ,
SDW_STREAM_DISABLED ,
SDW_STREAM_DEPREPARED ,
SDW_STREAM_RELEASED
};
that's it, that's the enum π«Ά notice how there's a lil blank line before the closing brace β yeah, that's canon, don't come for me.
π§ Constants π§
every single one of these is a whole main character, so let's do a vibe check on each:
SDW_STREAM_ALLOCATEDβ new stream allocated π± the fresh baby, just spawned into existence.SDW_STREAM_CONFIGUREDβ stream configured βοΈ it's got its settings on now, look at it go.SDW_STREAM_PREPAREDβ stream prepared π prepped and ready, like when you've done your skincare and you're set for the day.SDW_STREAM_ENABLEDβ stream enabled π₯ it's ON. living its truth. slaying.SDW_STREAM_DISABLEDβ stream disabled π turned off, napping, not currently serving.SDW_STREAM_DEPREPAREDβ stream de-prepared π the un-prepping happened, it's undoing the prep era.SDW_STREAM_RELEASEDβ stream released π¦ free, let go, off to the great beyond.
π SEE ALSO π
bestie there are SO many cousins, here's the whole family tree β all of them, fr fr, from the kernel file ./include/linux/soundwire/sdw.h:
enum sdw_slave_status(9)enum sdw_clk_stop_type(9)enum sdw_command_response(9)enum sdw_stream_type(9)enum sdw_data_direction(9)enum sdw_port_data_mode(9)enum sdw_p15_behave(9)enum sdw_dpn_type(9)enum sdw_clk_stop_mode(9)struct sdw_dp0_prop(9)struct sdw_dpn_prop(9)struct sdw_slave_prop(9)struct sdw_master_prop(9)struct sdw_slave_id(9)struct sdw_slave_intr_status(9)enum sdw_reg_bank(9)struct sdw_prepare_ch(9)enum sdw_port_prep_ops(9)struct sdw_bus_params(9)struct sdw_slave_ops(9)struct sdw_slave(9)struct sdw_master_device(9)struct sdw_port_params(9)struct sdw_transport_params(9)struct sdw_enable_ch(9)struct sdw_master_port_ops(9)struct sdw_defer(9)struct sdw_master_ops(9)struct sdw_port_config(9)struct sdw_stream_config(9)struct sdw_stream_params(9)struct sdw_stream_runtime(9)struct sdw_bus(9)sdw_slave_wait_for_init(9)
lowkey obsessed with how tidy that list is. go read them, ikyk. π
okay that's the whole page, no notes π
this came from ./include/linux/soundwire, dated October 2026, and it's filed under enum sdw_stream_state(9) β mwah, bye bestie, go forth and stream responsibly πΈπ«Ά
π¦ 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