UNION SOF_IPC4_RESOURCE_EVENT_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… union sof_ipc4_resource_event_data β€” NAME

okay so bestie, this is union sof_ipc4_resource_event_data(9), and it's literally just the payload for resource events ✨ like, the little bag of bytes that a resource event hands you. that's the whole vibe. it's a union, so it's one blob that can be read three different ways depending on what actually showed up πŸ‘‘


πŸ¦‹ SYNOPSIS

union sof_ipc4_resource_event_data {
    uint32_t dws[6];
    struct sof_ipc4_process_data_error_event_data process_data_error;
    struct sof_ipc4_mixer_underrun_event_data mixer_underrun;
 };

no cap, that's the whole thing. three members, one union, endlessly iconic πŸŽ€


🌸 Members

  • dws β€” the raw event data payload, as six dwords. six of them. uint32_t dws[6]. this is the "just give me the bytes" option and honestly? valid πŸ™ˆ
  • process_data_error β€” the SOF_IPC4_PROCESS_DATA_ERROR payload. it's typed as struct sof_ipc4_process_data_error_event_data, so when the event is a process data error you read it through here 🫢
  • mixer_underrun β€” the SOF_IPC4_MIXER_UNDERRUN_DETECTED payload. typed as struct sof_ipc4_mixer_underrun_event_data. mixer underran, and now you know πŸ’€
⚠️ reminder that it's a union, so these three are stacked on top of each other in the same memory. you read one of them, not all three. that's the whole point. iykyk πŸ’…

πŸ‘‘ SEE ALSO

go touch some related grass, bestie, all in Kernel file ./include/sound/sof/ipc4/header.h:

  • struct sof_ipc4_msg(9)
  • struct sof_ipc4_tuple(9)
  • struct sof_ipc4_process_data_error_event_data(9)
  • struct sof_ipc4_mixer_underrun_event_data(9)
  • struct sof_ipc4_notify_module_data(9)

okay that's the page!! πŸŽ€ this little diva lives over in ./include/sound/sof/ipc4, dated October 2026, and it's filed under union sof_ip...e_event_data(9) β€” yes the footer really does abbreviate it like that, she's mysterious like that πŸ’œ mwah, go read some header files, ily, bye πŸ¦‹βœ¨

πŸ“¦ where this page comes from