Skip to content

Commit

Permalink
audio: dai-zephyr: Add state change on DAI trigger
Browse files Browse the repository at this point in the history
Currently, the DAI component's state is not updated on
dai_trigger() operation, which leads to pipeline_comp_copy()
skipping the dai_copy() operation (since the DAI component
never transitions to the ACTIVE state). To fix this, add
a state transition in dai_comp_trigger_internal().

Signed-off-by: Laurentiu Mihalcea <[email protected]>
  • Loading branch information
LaurentiuM1234 committed Feb 22, 2024
1 parent 4f6c115 commit ac362b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/audio/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,9 @@ static int dai_comp_trigger_internal(struct dai_data *dd, struct comp_dev *dev,
break;
}

if (!ret)
return comp_set_state(dev, cmd);

return ret;
}

Expand Down

0 comments on commit ac362b4

Please sign in to comment.