mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
media: rockchip: vicap fixes err buffer state of buffer init
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I36207f2ba3c1c597e09cba1fe9749bfd0b0ae283
This commit is contained in:
@@ -2080,6 +2080,8 @@ static void rkcif_assign_new_buffer_init_toisp(struct rkcif_stream *stream,
|
||||
}
|
||||
} else {
|
||||
stream->next_buf_toisp = stream->curr_buf_toisp;
|
||||
if (stream->lack_buf_cnt < 2)
|
||||
stream->lack_buf_cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2606,8 +2608,6 @@ static void rkcif_assign_new_buffer_init(struct rkcif_stream *stream,
|
||||
__func__, __LINE__, stream->id, stream->next_buf->vb.vb2_buf.index);
|
||||
list_del(&stream->next_buf->queue);
|
||||
atomic_inc(&buf_stream->sub_stream_buf_cnt);
|
||||
} else if (stream->curr_buf) {
|
||||
stream->next_buf = stream->curr_buf;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user