Skip to content

ASoC: SOF: ipc4: Add decoder for RESOURCE_EVENT notifications from fi…#5842

Open
ujfalusi wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/ipc4-resource_event_decode
Open

ASoC: SOF: ipc4: Add decoder for RESOURCE_EVENT notifications from fi…#5842
ujfalusi wants to merge 1 commit into
thesofproject:topic/sof-devfrom
ujfalusi:peter/sof/pr/ipc4-resource_event_decode

Conversation

@ujfalusi

Copy link
Copy Markdown
Collaborator

…rmware

Decode and print out the content of currently supported RESOURCE_EVENT notifications from firmware along with the needed data structures and definitions.

…rmware

Decode and print out the content of currently supported RESOURCE_EVENT
notifications from firmware along with the needed data structures and
definitions.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Copilot AI review requested due to automatic review settings July 14, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds decoding support for IPC4 RESOURCE_EVENT notifications in the SOF IPC4 receive path, so driver debug logs include interpreted resource/event information (and raw payload for unknown event types).

Changes:

  • Add a SOF_IPC4_NOTIFY_RESOURCE_EVENT handler that decodes supported event payloads and logs details via dev_dbg().
  • Introduce IPC4 resource/event type enums and event-specific payload structures, replacing the raw u32 data[6] with a typed union.
  • Wire the new handler into sof_ipc4_rx_msg() for SOF_IPC4_NOTIFY_RESOURCE_EVENT notifications.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sound/soc/sof/ipc4.c Adds a resource event notification handler and connects it in the IPC4 RX notification switch.
include/sound/sof/ipc4/header.h Adds resource/event enums and typed payload definitions for resource event notifications.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sound/soc/sof/ipc4.c
Comment on lines +303 to +305
return "resource: EDF_TASK";
case SOF_IPC4_INVALID_RESOURCE_TYPE:
return "INVALID_RESOURCE_TYPE";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants