diff --git a/src/include/sof/audio/component_ext.h b/src/include/sof/audio/component_ext.h index 837fc90d355a..c929b4bb08a5 100644 --- a/src/include/sof/audio/component_ext.h +++ b/src/include/sof/audio/component_ext.h @@ -281,6 +281,10 @@ static inline int comp_get_requested_state(int cmd) int state = COMP_STATE_INIT; switch (cmd) { + case COMP_TRIGGER_PRE_START: + case COMP_TRIGGER_PRE_RELEASE: + state = COMP_STATE_PRE_ACTIVE; + break; case COMP_TRIGGER_START: case COMP_TRIGGER_RELEASE: state = COMP_STATE_ACTIVE; @@ -296,10 +300,6 @@ static inline int comp_get_requested_state(int cmd) case COMP_TRIGGER_RESET: state = COMP_STATE_READY; break; - case COMP_TRIGGER_PRE_START: - case COMP_TRIGGER_PRE_RELEASE: - state = COMP_STATE_PRE_ACTIVE; - break; } return state;