UNION SOF_IPC4_RESOURCE_EVENT_DATA(9)
π 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β theSOF_IPC4_PROCESS_DATA_ERRORpayload. it's typed asstruct sof_ipc4_process_data_error_event_data, so when the event is a process data error you read it through here π«Άmixer_underrunβ theSOF_IPC4_MIXER_UNDERRUN_DETECTEDpayload. typed asstruct 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
- 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