ENUM SDW_PORT_DATA_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ enum sdw_port_data_mode(9) πŸŽ€

okay bestie, welcome to the Kernel API Manual β€” this one's all about enum sdw_port_data_mode, which is literally the Data Port mode and honestly it's giving "small enum, big responsibilities" πŸ’…


✨ NAME ✨

enum sdw_port_data_mode β€” Data Port mode πŸ¦‹


🌸 SYNOPSIS 🌸

enum sdw_port_data_mode {
    SDW_PORT_DATA_MODE_NORMAL ,
    SDW_PORT_DATA_MODE_PRBS ,
    SDW_PORT_DATA_MODE_STATIC_0 ,
    SDW_PORT_DATA_MODE_STATIC_1

};

like, that's the whole thing. four constants. short king energy πŸ‘‘


πŸ’– Constants πŸ’–

  • SDW_PORT_DATA_MODE_NORMAL β€” the normal data mode, where audio data is received and transmitted. the main character mode fr fr 🎧✨
  • SDW_PORT_DATA_MODE_PRBS β€” test mode which uses a PRBS generator to produce a pseudo random data pattern that is transferred. chaos on purpose, we love to see it πŸŒ€πŸ”₯
  • SDW_PORT_DATA_MODE_STATIC_0 β€” simple test mode which uses static value of logic 0. the encoding will result in no signal transitions. flatline vibes, but make it intentional πŸ’€
  • SDW_PORT_DATA_MODE_STATIC_1 β€” simple test mode which uses static value of logic 1. the encoding will result in signal transitions at every bitslot owned by this Port. busy busy busy, every single bitslot is booked and busy 🌈⭐

🫢 SEE ALSO 🫢

Kernel file ./include/linux/soundwire/sdw.h β€” and like, the whole 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_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)

like okay go read them, i'll wait πŸ’œ


ngl the PRBS and STATIC modes are test modes β€” the manpage says so, so don't come for me, i'm just the messenger πŸ™ˆ

that's the whole page bestie, no cap ✨ this lil icon dropped straight out of ./include/linux/soundwire in October 2026, living under the Kernel API Manual banner β€” mwah, xoxo, go forth and configure your data ports πŸ’…πŸŽ€πŸŒŸ

πŸ“¦ where this page comes from