Skip to content

Commit 3e00247

Browse files
FIX audio/buffers/audio_buffer.c get last feeding
1 parent 661484c commit 3e00247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio/buffers/audio_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ uint32_t audio_buffer_sink_get_lft(struct sof_sink *sink)
243243
*/
244244
int32_t deadline_correction = 0;
245245

246-
if (data_consumer_mod->dev->period < data_producer_mod->dev->period) {
246+
if (data_consumer_mod->dev->period > data_producer_mod->dev->period) {
247247
deadline_correction = (data_consumer_mod->dev->period - us_in_buffer) /
248248
data_producer_mod->dev->period;
249249
if (deadline_correction < 0)

0 commit comments

Comments
 (0)