Skip to content

Commit

Permalink
Fix Linux CI
Browse files Browse the repository at this point in the history
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
  • Loading branch information
serhiy-katsyuba-intel committed Jun 27, 2024
1 parent bab9dce commit 4ebd807
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 @@ -316,7 +316,7 @@ dai_dma_cb(struct dai_data *dd, struct comp_dev *dev, uint32_t bytes,
continue;
}

if (sink_dev && sink_dev->state == COMP_STATE_ACTIVE)
if (sink_dev && sink_dev->state == COMP_STATE_ACTIVE && sink->hw_params_configured)
ret = dma_buffer_copy_from_no_consume(dd->dma_buffer,
sink, converter[j],
bytes, dd->chmap);
Expand Down Expand Up @@ -1576,7 +1576,7 @@ int dai_common_copy(struct dai_data *dd, struct comp_dev *dev, pcm_converter_fun
sink = container_of(sink_list, struct comp_buffer, source_list);
sink_dev = sink->sink;

if (sink_dev && sink_dev->state == COMP_STATE_ACTIVE) {
if (sink_dev && sink_dev->state == COMP_STATE_ACTIVE && sink->hw_params_configured) {
sink_frames =
audio_stream_get_free_frames(&sink->stream);
frames = MIN(frames, sink_frames);
Expand Down

0 comments on commit 4ebd807

Please sign in to comment.