5 Oct
2017
5 Oct
'17
11:09 p.m.
Fix state checking to make sure start can be entered after pause.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- src/audio/component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/audio/component.c b/src/audio/component.c index ec170c6..80311e3 100644 --- a/src/audio/component.c +++ b/src/audio/component.c @@ -122,7 +122,8 @@ int comp_set_state(struct comp_dev *dev, int cmd)
switch (cmd) { case COMP_CMD_START: - if (dev->state == COMP_STATE_PREPARE) { + if (dev->state == COMP_STATE_PREPARE || + dev->state == COMP_STATE_PAUSED) { dev->state = COMP_STATE_ACTIVE; } else { trace_comp_error("CES");
--
2.11.0