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 Nov 24, 2023
1 parent c431c0d commit 1ecad24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/audio/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,11 @@ static int dai_comp_trigger_internal(struct dai_data *dd, struct comp_dev *dev,

comp_dbg(dev, "dai_comp_trigger_internal(), command = %u", cmd);

ret = comp_set_state(dev, cmd);
if (ret < 0) {
return ret;
}

switch (cmd) {
case COMP_TRIGGER_START:
comp_dbg(dev, "dai_comp_trigger_internal(), START");
Expand Down

0 comments on commit 1ecad24

Please sign in to comment.