STRUCT SDW_PORT_PARAMS(9)
π struct sdw_port_params(9) β like, the Data Port parameters struct, bestie β¨
okay so real talk, this is a page out of the Kernel API Manual, and it's all about struct sdw_port_params β no cap, it's the little struct that tells a SoundWire Data Port how to behave π
πΈ NAME πΈ
struct sdw_port_params β Data Port parameters. that's it, that's the vibe π¦
β¨ SYNOPSIS β¨
here's the struct in all its glory, copied exactly, don't touch a single character:
struct sdw_port_params {
unsigned int num;
unsigned int bps;
unsigned int flow_mode;
unsigned int data_mode;
};
π«Ά Members π«Ά
numβ the Port number. which port are we talking about, queen πbpsβ the Word length of the Port. yes bestie, the word length πflow_modeβ the Port Data flow mode. how the data flows, periodt πdata_modeβ Test modes or normal mode. pick your fighter π
π Description π
so this struct is literally used to program the Data Port based on Data Port stream parameters. that's the whole job. it's giving "small but crucial" main character energy β¨π₯
π¦ SEE ALSO π¦
Kernel file ./include/linux/soundwire/sdw.h β and the whole friend group, in order, no skips:
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_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 this one's a short read, so go read the rest of the SoundWire girlies too, iykyk
okay bye bestie, mwah π β this iconic little page lives in ./include/linux/soundwire and it's dated October 2026, so yeah, it's from the future and still slaying π
πβ
π¦ 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