We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd55d5f + 563ab55 commit 1f1c9edCopy full SHA for 1f1c9ed
1 file changed
src/audio/component.c
@@ -162,13 +162,13 @@ int comp_set_state(struct comp_dev *dev, int cmd)
162
break;
163
case COMP_TRIGGER_RESET:
164
/* reset always succeeds */
165
- dev->state = COMP_STATE_READY;
166
if (dev->state == COMP_STATE_ACTIVE ||
167
dev->state == COMP_STATE_PAUSED) {
168
trace_comp_error("CER");
169
trace_error_value(dev->state);
170
ret = 0;
171
}
+ dev->state = COMP_STATE_READY;
172
173
case COMP_TRIGGER_PREPARE:
174
if (dev->state == COMP_STATE_PREPARE ||
0 commit comments