Skip to content

Commit

Permalink
audio: dai-zephyr: Fix config option string for reversed trigger
Browse files Browse the repository at this point in the history
The correct config to use for ifdef for reversing the stop trigger order
is CONFIG_COMP_DAI_STOP_TRIGGER_ORDER_REVERSE

Fixes: a6a80ec ("dai-zephyr: Fix the ordering of DAI and DMA triggers")
Signed-off-by: Peter Ujfalusi <[email protected]>
  • Loading branch information
ujfalusi authored and kv2019i committed Feb 9, 2024
1 parent 5c3a1ca commit bdf2143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ static int dai_comp_trigger_internal(struct dai_data *dd, struct comp_dev *dev,
* drain the FIFO in order to stop the channel
* as soon as possible.
*/
#if CONFIG_COMP_DAI_TRIGGER_ORDER_REVERSE
#if CONFIG_COMP_DAI_STOP_TRIGGER_ORDER_REVERSE
ret = dma_stop(dd->chan->dma->z_dev, dd->chan->index);
dai_trigger_op(dd->dai, cmd, dev->direction);
#else
Expand All @@ -1122,7 +1122,7 @@ static int dai_comp_trigger_internal(struct dai_data *dd, struct comp_dev *dev,
break;
case COMP_TRIGGER_PAUSE:
comp_dbg(dev, "dai_comp_trigger_internal(), PAUSE");
#if CONFIG_COMP_DAI_TRIGGER_ORDER_REVERSE
#if CONFIG_COMP_DAI_STOP_TRIGGER_ORDER_REVERSE
ret = dma_suspend(dd->chan->dma->z_dev, dd->chan->index);
dai_trigger_op(dd->dai, cmd, dev->direction);
#else
Expand Down

0 comments on commit bdf2143

Please sign in to comment.