ENUM SDW_STREAM_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 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