Commit Graph

36 Commits

Author SHA1 Message Date
mingyang.he 0ca1950f02 drm: sync meson_drm 5.15 and 5.4 about 5.15 [1/1]
PD#SWPL-139231

Problem:
meson_drm.h in 5.15 and 5.4 have discrepancies

Solution:
eliminate the difference between 5.15 and 5.4

Verify:
sc2

Test:
DRM-OSD-103

Change-Id: I806cf16490945bc3f34c1504b95a597c34d0b6b8
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2023-09-28 12:19:08 +08:00
congyang.huang 9890307604 drm: add mode and attr test ioctl [1/1]
PD#SWPL-118079

Problem:
no ioctl to test mode and attr

Solution:
add ioctl

Verify:
sc2

Test:
DRM-OSD-76

Change-Id: I39fa4f403d7302ca9af22c45389faf642735cdaa
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-09-27 21:18:19 +08:00
mingyang.he 6b8d3999ee drm: sync meson_drm 5.15 and 5.4 about 5.15 [1/1]
PD#SWPL-139231

Problem:
meson_drm.h in 5.15 and 5.4 have discrepancies

Solution:
eliminate the difference between 5.15 and 5.4

Verify:
sc2

Test:
DRM-OSD-103

Change-Id: I2f7432dcafc0976fbc67dbeed684280b17953284
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-09-20 20:40:21 +08:00
yufei.huan cfdb95cb0e deinterlace: 5.15 pq_api move to uapi [1/1]
PD#SWPL-127313

Problem:
move pq_api to uapi path

Solution:
move pq_api to uapi path

Verify:
verify on t5m

Change-Id: I253a8fce92feb84b630ea5d1199b2b1c724b57b3
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-08-18 00:23:39 -07:00
Gaowei Zhao 711cf53fd3 hdmirx: Android-U implement new hal IHdmiConnection [1/1]
PD#SWPL-130241

Problem:
not support setHpdSignal and getHpdSignal

Solution:
provide 2 ioctrl commands to setHpdSignal and getHpdSignal

Verify:
ohm

Change-Id: I8d2844b492b8e788388e3d1e7e25994bea14b4b8
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-08-15 20:08:38 -07:00
yaoyu.xu a9b6f6943b hdmirx: default close 5v wake up [1/1]
PD#SWPL-127580

Problem:
need close 5v wake up function.

Solution:
add ctl to open/close 5v wake up function.

Verify:
txhd2.

Change-Id: Ib61e5c75d1f3c5560dbb4f286b0d2319bcf4e1c8
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2023-08-03 03:58:35 -07:00
donghui.wang 9bdbcbfe4c ldim: add uapi for get bl_matrix [1/1]
PD#SWPL-132375

Problem:
provide uapi for get bl_matrix

Solution:
add ldim uapi

Verify:
t5m

Change-Id: I79206ba1cb28133ece4633817e9a03423796d576
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-08-03 01:58:40 -07:00
xing.xu 0541849d33 decoder: CF1 Provide UAPI headers for AMSTREAM (DECODER) module [1/1]
PD#SWPL-130933

Problem:
Provide UAPI headers for AMSTREAM (DECODER) module

Solution:
Provide UAPI headers for AMSTREAM (DECODER) module

Verify:
ohm

Change-Id: I943967d8abeba8d88ed2c5a76961b6ddbb227d9b
Signed-off-by: xing.xu <xing.xu@amlogic.com>
2023-08-02 03:32:21 -07:00
haitao.liu 11a126ffde vdin: sync the code from projects to the trunk branch [1/1]
PD#SWPL-133608

Problem:
fixed some issues on projects,need sync back into trunk
1.vdin vf lost when game mode change from game 2 to game 1
cause video freezing
2.keeper failed when using scatter memory
3.The first frame of vdin1 abnormal on g12b
4.latency may unstable in game mode 5,due to CPU schedule
5.vdin write is low priority cause video abnormal in some situation
6.request memory form codec_mm may takes long time cause av out of sync
7.new feature, dmc notifier debug method
8.1440x480p60 and 1440x480p50,vdin and hdmirx repeated decimation cause
video abnormal

Solution:
1.recycle all vf in write mode list when game mode change
2.set the right right hand to mem_handle in vf
3.drop the first frame
4.use one fixed phy address,eliminate software scheduling effects
5.set vdin write priority to super urgent
6.notify app after codec_mm_alloc
7.add dmc notifier debug method
8.1440x480p60 and 1440x480p50,hdmirx do not notify vdin decimation,
and 1440x480p60 and 1440x480p50,hdmirx do not notify vdin decimation

Verify:
t7/t5m

Change-Id: I40d6c56fe64e389e0ee6e493e8b7d1e1503f686b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-07-29 23:53:44 -07:00
wenlong.zhang 4b0f486145 drm: add present fence [1/1]
PD#SWPL-131024

Problem:
add present fence

Solution:
add present fence

Verify:
SC2

Test:
DRM-OSD-87

Change-Id: I5050620befa65c6a3dca760753fd2952b7dadf67
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2023-07-24 05:08:13 -07:00
donghui.wang a981b05b03 ldim: provide UAPI headers for ldim module [1/1]
PD#SWPL-127300

Problem:
provide uapi headers for user space

Solution:
add ldim uapi headers

Verify:
kernel5.15

Change-Id: I2f9cf0c3be16a0e1569da366d72d0924d0a8f85d
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-07-17 01:41:58 -07:00
Gaowei Zhao ae714d0a06 hdmirx: move hdmirx ioctls to uapi [1/1]
PD#SWPL-129885

Problem:
move hdmirx ioctls to uapi

Solution:
move hdmirx ioctls to uapi

Verify:
T5W

Change-Id: Ic5be1de48c39e3cb05925dd87ce4241c99f08d07
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2023-07-11 23:18:51 -07:00
yuhua.lin 67a433c8c6 video: provide UAPI headers for video module [1/1]
PD#SWPL-129892

Problem:
provide UAPI headers for video module

Solution:
provide UAPI headers for video module

Verify:
T3

Change-Id: I62453993dfc5c9a57abd9e5e5276156001ae48ac
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2023-07-09 15:08:54 -07:00
shaochan.liu b5ab39b2b5 lcd: provide UAPI headers for lcd module [1/1]
PD#SWPL-127314

Problem:
provide uapi headers for user space

Solution:
add lcd uapi headers

Verify:
kernel5.15

Change-Id: Ia2fdd6b0b50ecdfbe31049b21b2b1cd6f90d833a
Signed-off-by: shaochan.liu <shaochan.liu@amlogic.com>
2023-07-04 07:07:44 -07:00
qirong.li 93285fd8b5 amvecm: Dual-screen PQ adjustment function [1/1]
PD#SWPL-127748

Problem:
Dual-screen PQ adjustment requires two sets of parameters

Solution:
Add the appropriate control interfaces and processes

Verify:
t7

Change-Id: I8cd2412173ddc0670cded55576a3cf4f057cb510
Signed-off-by: qirong.li <qirong.li@amlogic.com>
2023-06-27 03:21:14 -07:00
jinbing.zhu bb8b285a8d amvecm: 5.15 amvecm move to uapi [1/1]
PD#SWPL-127277

Problem:
move amvecm to uapi path

Solution:
move amvecm to uapi path

Verify:
verify on s5

Change-Id: Idd9e92694877a735e255562c28f6395816f711b6
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2023-06-19 07:29:40 -07:00
Cheng Wang 0898ca7c13 frc: provide UAPI headers for frc module [1/1]
PD#SWPL-127301

Problem:
provide UAPI headers for frc module

Solution:
provide UAPI headers for frc module

Verify:
T3X

Change-Id: I22f5dbaaba6e6e4f0ed663781161a3c2455da596
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2023-06-16 01:25:57 -07:00
qiang.liu 7ddf254c78 vdin: add get vdin status [1/1]
PD#SWPL-127812

Problem:
vdin not support get vdin status

Solution:
add get vdin status

Verify:
t5m

Change-Id: Ie41ec7931b942493bf214ec1b9f426fe28bd80ca
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-06-14 08:56:21 -07:00
Lei Yang b3eaeb1717 hdmirx: modify 420 configuration for t3x [1/1]
PD#SWPL-125131

Problem:
color is abnormal under 420 format

Solution:
add new setting for t3x 420 mode

Verify:
T3X

Change-Id: I8a9ab78bed3f1afb3560512294f0a166145b926f
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2023-05-26 07:43:27 -07:00
chen.wang1 d6aa321845 drm: implement video fence ioctl [1/3]
PD#SWPL-124599

Problem:
Unable to obtain video fence.

Solution:
implement video fence ioctl.

Verify:
t3x

Test:
DRM-OSD-65

Change-Id: Idf779bbccc05b08786ffbeebe27cd10aa80be682
Signed-off-by: chen.wang1 <chen.wang1@amlogic.com>
2023-05-25 05:28:07 -07:00
haitao.liu d9cb055a6a vdin: t3x silicon bringup.patch 1 [1/1]
PD#SWPL-117268

Problem:
continue validation

Solution:
1.afbce
2.dual hdmi input
3.vdi6 input
4.hist
5.black bar detect

Verify:
T3x

Change-Id: Ib0492983915f7e00c4b35c959b309bf6643599ef
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-05-18 21:08:40 +08:00
haitao.liu 36a9e41fc4 vdin: t3x silicon bringup [1/1]
PD#SWPL-117268

Problem:
t3x silicon bringup

Solution:
add vdin on t3x

Verify:
T3x

Change-Id: I21847a5e63a1032e813a05bdfe77df8de564dbcd
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-05-18 21:08:39 +08:00
mingxiu.sun 1bf092bfa7 vdin: provide UAPI headers for vdin module [1/1]
PD#SWPL-117407

Problem:
provide uapi headers for user space

Solution:
add vdin uapi headers

Verify:
kernel5.15

Change-Id: I3b7a18aac89a6e0f750ff92996e522d2308de4c5
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-05-09 05:39:15 -07:00
shufei.zhao 7f2d3ec975 uapi: add license [2/2]
PD#SWPL-113370

Problem:
uapi file is missing a license

Solution:
Add license

Verify:
local

Change-Id: I021e400e794235ea51a1c77edf685d046b0aab9f
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2023-04-05 22:13:09 -07:00
Liqiang Jin e5eaac6d1e optee: change vmx-socket API from socket to ioctl for kernel 5.15 [1/1]
PD#SWPL-114262

Problem:
selinux blocks the socket

Solution:
change vmx-socket API from socket to ioctl for kernel 5.15

Verify:
Android T + AH212(SC2)

Change-Id: Iba760d5593eed4b73f95add52599cb8342edd67a
Signed-off-by: Liqiang Jin <liqiang.jin@amlogic.com>
2023-03-13 22:46:43 -07:00
Hangyu Li 02322b8dc5 tee: integrate tee linux driver 3.18 [1/1]
PD#SWPL-100078
PD#SWPL-100278

Problem:
need to change tdk_linuxdriver to linux kernel

Solution:
update tee driver from linaro-swg/linux upstream
https://github.com/linaro-swg/linux
upstream tag: optee-3.19.0
upstream commit: 29aee39cfa
optee-3.19.0 is almost same with optee-3.18.0

Verify:
Android T + ohm + Kernel 5.15

Change-Id: Ib58f53f50e7b4be3fb87f120a9eceaea0c5803f4
Signed-off-by: Hangyu Li <hangyu.li@amlogic.com>
2023-02-24 03:56:26 -08:00
Ao Xu f3c617fa49 drm: add async commit ioctl support [1/1]
PD#SWPL-102811

Problem:
no async commit ioctl

Solution:
add async commit ioctl support

Verify:
ohm

Test:
DRM-OSD-29

Change-Id: Ia23e804fb9b7b6bdaaa54503a5b2b367ad69b0dc
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2022-12-31 06:19:13 -08:00
yanmei.yang 249b7b830c yocto: video can't play in kernel 5.15 [1/1]
PD#SWPL-101324

Problem:
cann't play video in kernel 5.15

Solution:
some parameters missing in kernel 5.15 define in msync.h
add missed parameters

Verify:
Local

Signed-off-by: yanmei.yang <yanmei.yang@amlogic.com>
Change-Id: I5db5227e6d9f3722d20a340b68a53c61a963460b
2022-12-13 04:24:38 -08:00
yujun.zhang 4a30708bdd drm: update header to MIT license [1/1]
PD#SWPL-102479

Problem:
Code pollution for codes with amlogic
drm header files

Solution:
Use MIT license header, and keep GPL license
in implementation files.

Verify:
sc2

Change-Id: Ie546e0754f8e2a4a451ce1e32d775ecb4e599e5d
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2022-11-29 08:42:21 -07:00
qinglin.li d111ada7c5 sc2: add gcc compile with arm64 [2/2]
PD#SWPL-97112

Problem:
add gcc compile with arm64

Solution:
fix gcc code style check error
build gcc arm64

Verify:
sc2

Test:
scripts/amlogic/mk_gx64.sh

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I7a70623bb91217f4a09b9e4624cc9cf82af09684
2022-10-24 20:05:38 +08:00
chuangcheng peng 7687f59168 dvb-core: use origion dvb-core in kernel [2/2]
PD#SWPL-89132

Problem:
use dvb-core to ko

Solution:
put aml modification to dvb-core

Verify:
not verified, compile pass

Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
Change-Id: If400a437e48a4e1c0f8193b56e2f54d06660e806
2022-09-07 20:06:43 +08:00
yujun.zhang 54bd40dae9 drm: add drm driver support [1/1]
PD#SWPL-82197

Problem:
no drm driver support

Solution:
add drm driver support

Verify:
ap222

Change-Id: I331a75afe6087278ebf9de27ae36a346539d09a8
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2022-06-07 04:47:30 -07:00
Yongjie Zhu 78e99bfc22 ion: move ion.h to include [1/1]
PD#SWPL-78227

Problem:
drm driver need use ion function

Solution:
move ion.h to common_driver/include

Verify:
s4d

Change-Id: I06b800c9394a3337c7e44363768687ed917110f2
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2022-05-29 19:28:59 -07:00
chuangcheng peng 455212b1b9 dvb: add dvb module [1/1]
PD#SWPL-77327

Problem:
need dvb feature

Solution:
add dvb feature

Verify:
compile pass, no verify

Change-Id: I6ae02c2685a09b31a53926ef341c1dbd65b98241
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2022-05-15 22:41:36 -07:00
wanwei.jiang 423b97c4b8 upgrade: enable NDK_TRIPLE [1/2]
PD#SWPL-80398

Problem:
build fail with NDK_TRIPLE

Solution:
1. modify uapi directory
2. enable NDK_TRIPLE in common git

Verify:
s4d and c2

Change-Id: Ib294877d68b5b061aa8517558ccaf05a93d67cab
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-05-11 22:46:14 +08:00
wanwei.jiang af26eeaf9d media: enable the same config as kernel 5.4 [1/1]
PD#SWPL-77521

Problem:
enable the same config as kernel 5.4

Solution:
enable the same config as kernel 5.4

Verify:
s4d

Change-Id: I73f6eb8a896956337503477f32c218fe465cddda
Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
2022-04-11 20:57:12 +08:00