Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/include/sof/audio/component_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down