Skip to content

audio: drc: register IPC-time blob validator#10943

Draft
singalsu wants to merge 1 commit into
thesofproject:mainfrom
singalsu:model_handler_validator_drc
Draft

audio: drc: register IPC-time blob validator#10943
singalsu wants to merge 1 commit into
thesofproject:mainfrom
singalsu:model_handler_validator_drc

Conversation

@singalsu

Copy link
Copy Markdown
Collaborator

Hook a drc blob validator into the model handler so a corrupted run-time configuration update is rejected before it can replace the working blob. Playback or capture then continues with the previously set parameters instead of being interrupted by a bad IPC.

The DRC configuration is a fixed-size struct sof_drc_config, so the validator requires the IPC payload size to match exactly and the self-declared config->size to agree with it. The same size check is also reused at prepare time when the initial blob is fetched.

Hook a drc blob validator into the model handler so a corrupted
run-time configuration update is rejected before it can replace the
working blob. Playback or capture then continues with the previously
set parameters instead of being interrupted by a bad IPC.

The DRC configuration is a fixed-size struct sof_drc_config, so the
validator requires the IPC payload size to match exactly and the
self-declared config->size to agree with it. The same size check is
also reused at prepare time when the initial blob is fetched.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
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.

1 participant