mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
video: rockchip: vehicle: fix flinger buf search issue
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com> Change-Id: Id1fcecdb780c4cc69190619b23fc829a872201bb
This commit is contained in:
committed by
Tao Huang
parent
9f23b04a7f
commit
d36f5cd2cf
@@ -1469,9 +1469,8 @@ unsigned long vehicle_flinger_request_cif_buffer(void)
|
||||
int i;
|
||||
|
||||
src_buffer = NULL;
|
||||
found = last_src_index + 1;
|
||||
for (i = 1; i < NUM_SOURCE_BUFFERS; i++) {
|
||||
found = (found + i) % NUM_SOURCE_BUFFERS;
|
||||
found = (last_src_index + i) % NUM_SOURCE_BUFFERS;
|
||||
VEHICLE_DG("%s,flg->source_buffer[%d].state(%d)",
|
||||
__func__, found, flg->source_buffer[found].state);
|
||||
if (flg->source_buffer[found].state == FREE) {
|
||||
|
||||
Reference in New Issue
Block a user