component: call copy for own components

Component copy function should be called only if
component is owned by current core.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2020-02-13 11:51:41 +01:00 committed by Liam Girdwood
parent 46a1db20a8
commit cf6e2cd6a3
1 changed files with 3 additions and 1 deletions

View File

@ -685,7 +685,9 @@ static inline int comp_copy(struct comp_dev *dev)
assert(dev->drv->ops.copy);
ret = dev->drv->ops.copy(dev);
/* copy only if we are the owner of the component */
if (cpu_is_me(dev->comp.core))
ret = dev->drv->ops.copy(dev);
comp_shared_commit(dev);