Skip to content

volume: fix cache invalidation in volume_set_config()#6274

Merged
lgirdwood merged 1 commit intothesofproject:mainfrom
lyakh:ipc4volume
Sep 9, 2022
Merged

volume: fix cache invalidation in volume_set_config()#6274
lgirdwood merged 1 commit intothesofproject:mainfrom
lyakh:ipc4volume

Conversation

@lyakh
Copy link
Collaborator

@lyakh lyakh commented Sep 8, 2022

With IPC4 volume_set_config() is called from module_set_large_config() with the host mailbox used as a configuration source. Data there is written by the host, therefore any DSP cache contents for that area is invalid. volume_set_config() does invalidate local cache for that area but it's doing it too late - after calling module_set_configuration() which already reads the data. This leads to sporadic wrong configuration readings. Move cache invalidation before module_set_configuration() to fix that.

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.

5 participants