vdin: Comment the code of changing secure mode dynamically [1/1]

PD#SWPL-161102

Problem:
vpp call tee interface in ISR cause abnormal because it may schedule
in tee interface.

Solution:
Donot need to call the tee intreface to change vdin secure buffer state,
so remove the related code,not to call it in ISR

Verify:
t5m

Change-Id: I971a2db1821532df475b2b2c856eb569a2b8177d
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
This commit is contained in:
haitao.liu
2023-11-17 18:52:21 +08:00
committed by gerrit autosubmit
parent 9d7cb0d7c8
commit ea8d0f2fdf
+7
View File
@@ -6146,9 +6146,11 @@ static int vdin_signal_notify_callback(struct notifier_block *block,
struct vd_signal_info_s *vd_signal = NULL;
/* only for vdin loopback */
struct vdin_dev_s *devp = NULL;
#ifdef VDIN_ENALBE_NOTIFY_SECURITY
#ifdef CONFIG_AMLOGIC_MEDIA_SECURITY
unsigned int i = 0;
struct vd_secure_info_s *vd_secure = NULL;
#endif
#endif
if (is_meson_t3x_cpu())
@@ -6171,6 +6173,7 @@ static int vdin_signal_notify_callback(struct notifier_block *block,
__func__, devp->tx_fmt, devp->vd1_fmt);
break;
case VIDEO_SECURE_TYPE_CHANGED:
#ifdef VDIN_ENALBE_NOTIFY_SECURITY
#ifdef CONFIG_AMLOGIC_MEDIA_SECURITY
vd_secure = (struct vd_secure_info_s *)para;
if (!vd_secure || !(devp->flags & VDIN_FLAG_DEC_STARTED))
@@ -6226,6 +6229,10 @@ static int vdin_signal_notify_callback(struct notifier_block *block,
vdin_set_mem_protect(devp, 0);
}
#endif
#else
if (vdin_dbg_en)
pr_info("%s VDIN_ENALBE_NOTIFY_SECURITY is not defined\n", __func__);
#endif
break;