[Sound-open-firmware] [PATCH] component: make sure we can enter the start from paused state
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");
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- src/ipc/intel-ipc.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/src/ipc/intel-ipc.c b/src/ipc/intel-ipc.c index 2a31772..4b56993 100644 --- a/src/ipc/intel-ipc.c +++ b/src/ipc/intel-ipc.c @@ -432,6 +432,7 @@ static int ipc_glb_stream_message(uint32_t header) case iCS(SOF_IPC_STREAM_POSITION): return ipc_stream_position(header); default: + trace_ipc_error("es1"); return -EINVAL; } }
participants (1)
-
Liam Girdwood