From b335bb5fd15bc05f4029ba966a388b8bbad43892 Mon Sep 17 00:00:00 2001 From: "zhiwei.yuan" Date: Tue, 11 Jun 2019 15:43:33 +0800 Subject: [PATCH] vdin: Get video hdr status from vdin [1/1] PD#SWPL-9636 Problem: upper layer get signal type is too late,cause screen flash Solution: report signal type to upper layer directly in vdin module Verify: verified by t962x2_x301 Change-Id: I08f7754f20ba8b6b00a34387dcaf4aee7fdc2185 Signed-off-by: zhiwei.yuan --- drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c | 2 ++ include/linux/amlogic/media/frame_provider/tvin/tvin.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c b/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c index 9843ae2..c8dec90 100644 --- a/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c +++ b/drivers/amlogic/media/vin/tvin/vdin/vdin_ctl.c @@ -4216,6 +4216,8 @@ void vdin_set_drm_data(struct vdin_dev_s *devp, vf->signal_type = ((1 << 8) | (vf->signal_type & (~0xFF00))); } + + devp->parm.info.signal_type = vf->signal_type; } u32 vdin_get_curr_field_type(struct vdin_dev_s *devp) diff --git a/include/linux/amlogic/media/frame_provider/tvin/tvin.h b/include/linux/amlogic/media/frame_provider/tvin/tvin.h index 25f5421..7b573ca 100644 --- a/include/linux/amlogic/media/frame_provider/tvin/tvin.h +++ b/include/linux/amlogic/media/frame_provider/tvin/tvin.h @@ -314,6 +314,7 @@ struct tvin_info_s { enum tvin_color_fmt_e cfmt; unsigned int fps; unsigned int is_dvi; + unsigned int signal_type; }; struct tvin_frontend_info_s { -- 2.7.4