Skip to content

Commit 778a895

Browse files
committed
dp: don't schedule paused tasks
DP tasks don't need to be rescheduled when pause is released. Default handling works correctly in that case too. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 7ee9fb9 commit 778a895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/sof/audio/component_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ static inline int comp_trigger_local(struct comp_dev *dev, int cmd)
158158
/* schedule or cancel task */
159159
switch (cmd) {
160160
case COMP_TRIGGER_START:
161-
case COMP_TRIGGER_RELEASE:
162161
ret = schedule_task(dev->task, 0, dev->period);
163162
break;
163+
case COMP_TRIGGER_RELEASE:
164164
case COMP_TRIGGER_XRUN:
165165
case COMP_TRIGGER_PAUSE:
166166
case COMP_TRIGGER_STOP:

0 commit comments

Comments
 (0)