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 13, 2024
1 parent a33816b commit 8686295
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 @@ -1055,6 +1055,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 8686295

Please sign in to comment.