STRUCT SDW_SLAVE_ID(9)
β¨ struct sdw_slave_id(9) β¨
okay so bestie, welcome to the struct sdw_slave_id(9) page in the Kernel API Manual π
this is the little glow-up of a struct that holds a SoundWire Slave ID β like the whole "who even am I" of a slave device. let's get into it π
πΈ NAME πΈ
struct sdw_slave_id β Slave ID, no cap π«Ά
β SYNOPSIS β
struct sdw_slave_id {
__u16 mfg_id;
__u16 part_id;
__u8 class_id;
__u8 unique_id;
__u8 sdw_version:4;
};
look at her. five fields. absolute main character energy π
π Members π
mfg_idβ the MIPI Manufacturer ID, aka who made this baby πpart_idβ the Device Part ID, aka which specific model we're talking about πclass_idβ the MIPI Class ID (heads up: this one's only defined starting with the SoundWire 1.2 spec, so don't come for it on older stuff) πunique_idβ the Device unique ID, literally the one thing that makes it it π¦sdw_versionβ the SDW version implemented, i.e. what flavor of SoundWire we're running π
π₯ Description π₯
the order of the IDs in here? it does not follow the DisCo spec definitions π like, yeah, the layout is what it is β just don't go assuming it lines up with DisCo, because it doesn't. that's the whole tea. periodt π
π SEE ALSO π
kernel file ./include/linux/soundwire/sdw.h, plus the entire friend group:
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_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)
ngl bestie, that SEE ALSO list is giving "my entire contact list" π go read them, they're iconic.
and that's the page!! brought to you by ./include/linux/soundwire, dated October 2026 β mwah, luv u, go read ur kernel headers ππ§ββοΈπΈ
π¦ 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