From f08062e7d68befcbb5438db24bb067cec7c6f6fd Mon Sep 17 00:00:00 2001 From: "zhenteng.tian" Date: Tue, 14 May 2024 10:51:37 +0800 Subject: [PATCH] vq: notify di to bypass di_p for dual channel input. [1/1] PD#SWPL-165640 Problem: The bandwidth is insufficient to meet the simultaneous DI processing. Solution: notify di to bypass di_p for dual channel input. Verify: T3X Change-Id: I91f7e823fd44fb7fa27984a50250d87c08bc685c Signed-off-by: zhenteng.tian --- drivers/media/video_processor/videoqueue/videoqueue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/video_processor/videoqueue/videoqueue.c b/drivers/media/video_processor/videoqueue/videoqueue.c index ab26e3a0e..32a11ea30 100644 --- a/drivers/media/video_processor/videoqueue/videoqueue.c +++ b/drivers/media/video_processor/videoqueue/videoqueue.c @@ -1141,6 +1141,7 @@ static int videoqueue_reg_provider(struct video_queue_dev *dev) vq_print(dev->inst, P_ERROR, "reg: init_vt failed.\n"); return ret; } + v4lvideo_dec_count_increase(); for (i = 0; i < FILE_CNT; i++) { dmabuf = uvm_alloc_dmabuf(SZ_4K, 0, 0); if (!dmabuf_is_uvm(dmabuf)) @@ -1183,6 +1184,7 @@ static int videoqueue_unreg_provider(struct video_queue_dev *dev) } dev->vq_reg_flag = 0; mutex_unlock(&dev->mutex_reg); + v4lvideo_dec_count_decrease(); wake_up_interruptible(&dev->fence_wq); dev->wakeup = 1; wake_up_interruptible(&dev->file_wq);