video: rockchip: vehicle: flinger fix rotate-mirror config be changed

rk_flinger_first_done & vehicle_flinger_reverse_open may run
at the same time, cause buffer rotate-mirror value changed;
so fix it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ie278d89d53386a91700961137f2a60a6a442c0e9
This commit is contained in:
Wang Panzhenzhuan
2023-07-13 02:13:33 +00:00
committed by Tao Huang
parent 4004a8990c
commit 89b5efc091

View File

@@ -1169,9 +1169,11 @@ static void rk_flinger_first_done(struct work_struct *work)
FORCE_XOFFSET, FORCE_YOFFSET,
v_cfg->width, v_cfg->height,
v_cfg->width, FORCE_FORMAT);
rk_flinger_set_buffer_rotation(buffer, FORCE_ROTATION);
rk_flinger_set_buffer_rotation(buffer, v_cfg->rotate_mirror);
rk_flinger_cacultae_dst_rect_by_rotation(buffer);
buffer->dst.f = buffer->src.f;
VEHICLE_INFO("buffer[%d]->rotation(%d).\n",
i, buffer->rotation);
}
}
}