ENUM SDW_STREAM_TYPE(9)
β¨ enum sdw_stream_type(9) β¨
straight outta the Kernel API Manual, bestie π
okay so picture this: you're deep in the SoundWire headers and suddenly there's a enum sdw_stream_type staring at you like ποΈπποΈ and you're like "what even IS this". Don't panic. It's literally just a little enum that says what kind of data stream you're dealing with. That's it. That's the whole vibe. π
πΈ NAME πΈ
enum sdw_stream_type β data stream type, no cap π
π¦ SYNOPSIS π¦
enum sdw_stream_type {
SDW_STREAM_PCM ,
SDW_STREAM_PDM ,
SDW_STREAM_BPT
};
look at her. so small. so iconic. π«Ά (yes there's a lil blank line before the closing brace, that's canon, don't @ me)
π Constants π
these are the three besties in the enum, and here's what each one means:
SDW_STREAM_PCMβ a PCM data stream β¨SDW_STREAM_PDMβ a PDM data stream πΈSDW_STREAM_BPTβ a BPT data stream π
three constants, three vibes, all valid. periodt.
π Description π
okay so here's the tea β: the spec doesn't define this, but is used in implementation.
that's the whole description. the spec left us on read, but the implementation said "i'll handle it" and honestly? main character energy. π₯
real talk though β this is a documented-in-code-only situation, so if you're looking for the official spec section, it's giving "does not exist". the implementation is the source of truth here, iykyk.
π« SEE ALSO π«
buckle up bestie, this is the whole friend group π«Ά β all of these live in 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_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)enum sdw_stream_state(9)struct sdw_stream_params(9)struct sdw_stream_runtime(9)struct sdw_bus(9)sdw_slave_wait_for_init(9)
yeah that's a lot of cross-references β read them all, slay, you got this π
and that's the page!! π signed, sealed, delivered from ./include/linux/soundwire, dated October 2026 β mwah π go read some kernel source bestie, you're gonna do great π§ββοΈπ
π¦ 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