mirror of https://github.com/thesofproject/sof.git
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:
parent
46a1db20a8
commit
cf6e2cd6a3
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue