STRUCT SDW_PORT_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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