From: jintao xu Date: Wed, 18 Dec 2019 03:13:46 +0000 (+0800) Subject: video_composer: fix black when hdmi hou-plug [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f533f9fdb837f6ccf5b9dd7443e5d5ed4ee02550;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git video_composer: fix black when hdmi hou-plug [1/1] PD#SWPL-17376 Problem: black when hdmi hou-plug Solution: init last_vf when enable video_composer Verify: U212 Change-Id: I3ca03d0bf737ce142e1d25de8dd83986645a9870 Signed-off-by: jintao xu --- diff --git a/drivers/amlogic/media/video_processor/video_composer/video_composer.c b/drivers/amlogic/media/video_processor/video_composer/video_composer.c index 075a08b4c2d4..ec9ddef9febd 100644 --- a/drivers/amlogic/media/video_processor/video_composer/video_composer.c +++ b/drivers/amlogic/media/video_processor/video_composer/video_composer.c @@ -1541,7 +1541,7 @@ static void vc_vf_put(struct vframe_s *vf, void *op_arg) dev->drop_frame_count = 0; } else { dev->drop_frame_count += repeat_count + 1; - vc_print(dev->index, PRINT_PERFORMANCE, + vc_print(dev->index, PRINT_PERFORMANCE | PRINT_FENCE, "put: drop repeat_count=%d\n", repeat_count); } @@ -1673,6 +1673,7 @@ static int video_composer_init(struct composer_dev *dev) dev->drop_frame_count = 0; dev->is_sideband = false; dev->need_empty_ready = false; + dev->last_file = NULL; init_completion(&dev->task_done); disable_video_layer(dev, 2);