Skip to content

ASoC: SOF: topology: make the topology parser IPC agnostic - #3287

Merged
plbossart merged 31 commits into
thesofproject:topic/sof-devfrom
ranj063:topic/ipc_agnostic_topology
Dec 13, 2021
Merged

plbossart merged 31 commits into
thesofproject:topic/sof-devfrom
ranj063:topic/ipc_agnostic_topology

Conversation

@ranj063

@ranj063 ranj063 commented Nov 22, 2021 •

Copy link
Copy Markdown
Collaborator

Make the topology parser IPC agnostic so that when new IPC versions are introduced, we can reuse the same parser and add
support for the new IPC structures.

The basic idea is that when parsing topology, we parse the tuple array and store them as token/value pairs in the appropriate objects. For example, in the case of the host component, we store it as part of struct snd_sof_widget. Once, the tuple arrays are all parsed, we can build the IPC structs for the respective component whenever needed based on the IPC version in use. In this PR currently, it is done in the topology complete op.

Introduce IPC ops and set the ops based on the IPC version. This PR includes all the required topology related ops for IPC3

Loading
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.

6 participants