From ac362b4902d859024668901d6ecccb3ce263e38a Mon Sep 17 00:00:00 2001 From: Laurentiu Mihalcea Date: Fri, 24 Nov 2023 11:17:48 +0200 Subject: [PATCH] audio: dai-zephyr: Add state change on DAI trigger 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 --- src/audio/dai-zephyr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/audio/dai-zephyr.c b/src/audio/dai-zephyr.c index 134f73f71cd3..35ac47a6f4f0 100644 --- a/src/audio/dai-zephyr.c +++ b/src/audio/dai-zephyr.c @@ -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; }