Commit Graph

65 Commits

Author SHA1 Message Date
shihong.zheng 20341a5b55 media: h266 format define. [1/1]
PD#SWPL-172885

Problem:
media_moduls h266 code depend on h266 format define.

Solution:
define h266 format for decoder

Verify:
s6 pxp

Change-Id: Ia001b35292691811425de6b7e8c98e9e3e65575d
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
2024-07-03 20:32:24 +08:00
zongdong.jiao 02fd74a5e1 hdmitx21: add vrr range and vic lists [1/1]
PD#SWPL-170918
PD#SWPL-161717

Problem:
Sink may support only 4k120, but its QMS range may be from
24 to 120.
Or sink may support upto 4k60, but 1080p120hz.

Solution:
Add the qms/game vrr range and vic lists to DRM group
Don't clear the EDID when forced_edid is true
Skip BRR 120 check when QMS tfr_max is false

Verify:
s7d/ross

Test:
DRM-TX-75

Change-Id: Ia65fa38bf18ae7399c9c4178665f8a3f18a03a74
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-06-27 20:10:21 +08:00
Huijuan Xiao c5f24c8d0e hdr: hdr core before osd blend [1/1]
PD#SWPL-165938

Problem:
move rgb2yuv from hdr core to osd csc.

Solution:
move rgb2yuv from hdr core to osd csc.

Verify:
s7d

Change-Id: Ib52d37f9f9a72dad048ce3ed2512ed1208d1538f
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-05-28 20:17:41 +08:00
guoqing.sun dad913e37f CI: CB2 add ioctl CA_SET_START. [1/1]
PD#SWPL-160156

Problem:
CA_SET_START

Solution:
CA_SET_START

Verify:
android-u t5m

Change-Id: Ia67484e2f12b4260436964cd91a8a8f9deb49bd9
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-05-16 15:28:51 +08:00
wenlong.zhang 456003ca6a drm: change afbc format [1/1]
PD#SWPL-163150

Problem:
support DRM_FORMAT_ABGR1010102

Solution:
support DRM_FORMAT_ABGR1010102

Verify:
S7D

Test:
DRM-OSD-6

Change-Id: I20a2b0080dd99baafd9fff4b0c6a9a32a99df58a
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-04-18 19:00:18 +08:00
wenlong.zhang 60eff10348 drm: s7d bringup & support gfcd [1/1]
PD#SWPL-147645

Problem:
s7d bringup & support gfcd

Solution:
s7d bringup & support gfcd

Verify:
s7d

Test:
DRM-OSD-138

Change-Id: I6e8f268f0fa42a6906f18a21d923ec059b749954
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-04-18 18:58:46 +08:00
Ao Xu aa7e2047cd drm: add get_vrr_range function for lcd connector [1/1]
PD#SWPL-156902

Problem:
hwc need get lcd connector's vrr range info

Solution:
add get_vrr_range function for lcd connector

Verify:
t3x

Test:
DRM-LCD-1

Change-Id: I02a58d23794c58b7cbc416f8ff5d692e814c3084
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-18 14:27:30 +08:00
Haotian Guo 260599fed4 hdmirx: add 480/567 format [1/1]
PD#SWPL-151288

Problem:
Driver does not support formats for 480 and 576

Solution:
Drive the addition of 480 and 576 formats

Verify:
t7c

Change-Id: I2fa54e65061752e641e03e0ea713a8f5ffd0fb14
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-01-20 19:53:51 +08:00
Gaowei Zhao 7938a66ce7 hdmirx: fix compile issue caused by __packed [1/1]
PD#SWPL-153477

Problem:
aml-tvserver build fail because of __packed

Solution:
delete __packed

Verify:
Yocto

Change-Id: I0068a3e9e79498e489e924d4b0421fdb19e0fcba
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-20 19:50:32 +08:00
Gaowei Zhao 27a526304f hdmirx: get AVI info [1/1]
PD#SWPL-152652

Problem:
dump AVI info invalid

Solution:
update register for AVI info

Verify:
t3x

Change-Id: Ic3874d3cc269043957b0244f9cb476db77c48ced
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-20 19:49:38 +08:00
Huijuan Xiao dbaf140d3c amvecm: add osd pq setting [1/1]
PD#SWPL-141758

Problem:
add brightness contrast color adjust for osd.

Solution:
add brightness contrast color APIs for osd.

Verify:
t5m

Change-Id: Ie2e2b463adf920aeb7ed5fa9e972325cbf778f01
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-01-20 18:45:40 +08:00
congyang.huang f2515d1ced drm: add vrr range getting ioctl [1/1]
PD#SWPL-147629

Problem:
no ioctl to get vrr range

Solution:
add ioctl to get vrr range

Verify:
t7c

Test:
DRM-TX-75

Change-Id: If6dab5d69b90ff63acf9617c61a452a6f25bd5d9
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-20 18:41:34 +08:00
jialong.jiang 2ee1d70ab8 dv: AISDK needs to be merged into trunk. [1/1]
PD#SWPL-134510

Problem:
End-User Calibration.
automatic playback potimization.
lightsensor.

Solution:
add user sample cfg interface,
apo driver reports content type by uevent.
lightsensor.

Verify:
t5m.

Change-Id: Idc193083424f6420ae774abf3b3e39181f127c05
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-01-20 18:35:59 +08:00
mingxiu.sun c5a4d0286e vdin & hdmirx: modify colorimetry delivery method [1/1]
PD#SWPL-125462

Problem:
open the HDMI2.0 ,the color of image is changed

Solution:
add vf info for colorimetry

Verify:
t5m kernel5.15

Change-Id: I126786f130d59fe2977ad8ea46b921aadd302d67
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-01-20 18:25:17 +08:00
Gaowei Zhao eecc6da060 hdmirx: dual hdmi input [1/1]
PD#SWPL-134200

Problem:
new feature,dual hdmi input on t3x

Solution:
add code

Verify:
t3x

Change-Id: Ic51e37520a752e122deb7f5ef885456e1ab49781
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2024-01-20 15:07:28 +08:00
linfang.zhao 0ca74885d6 drm: add mute plane interface [3/3]
PD#SWPL-143936

Problem:
show or hide video does not work

Solution:
add mute plane interface

Verify:
AP222

Test:
DRM-OSD-111

Change-Id: Ib5898c9a0bc3201d397a3a33a9c073f0799c3aee
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-01-20 15:02:49 +08:00
Song Zhao 05afab09ad msync: sync driver from 5.4 [1/1]
PD#TV-98016

Problem:
5.15 has old driver version.

Solution:
Back port some of the missing change from 5.4 and add CL370123

Verify:
T3X + RDK

Change-Id: I15c7d3bdb1e87aa95aaa4e8238bc4dcd2b5287b6
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
2024-01-20 15:02:07 +08:00
jinbing.zhu 5bb4f8ba13 amvecm: add amvecm ai color enable control ioctl [1/1]
PD#SWPL-144175

Problem:
add new ioctl

Solution:
add new ioctl

Verify:
t3x

Change-Id: I3a4f8eb446059f940bfce3c97b7800f8c90baf0c
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-01-20 09:23:15 +08:00
qiang.liu 50244e4bf9 vdin: add upper use signal format [1/1]
PD#SWPL-142519

Problem:
driver not add upper layer use format

Solution:
driver add upper layer use format

Verify:
t5w

Change-Id: I6c9ff0487453f5122ca51a2f47f47fc5b656b873
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-20 09:02:53 +08:00
jinbing.zhu 8ce389818d amvecm: 515 move struct to uapi [1/1]
PD#SWPL-142608

Problem:
move to uapi

Solution:
move to uapi

Verify:
t5w

Change-Id: Ie6737b1ad87792a6fb5ee5cff101464195da8354
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-01-20 08:59:15 +08:00
Song Zhao b7145c1c3a msync: add mono time into pts structure [1/2]
PD#TV-89282

Problem:
HbbTV need more accurate position.

Solution:
Add two more ioctl to get the A/V pts/mono pair

Verify:
T5W + Sandia

Change-Id: I9bc5408d0b41b4429056e581a18646d16d44fe41
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
2024-01-19 23:13:51 +08:00
mingxiu.sun 0150bfa426 vdin: Provides vdin1 hist values for the upper layer [1/1]
PD#SWPL-135475

Problem:
txhd2 vdin1 hist uses the vdin0 hist register

Solution:
Open the clk of vdin1 and configure the hist related register

Verify:
txhd2

Change-Id: If86d6fbfd7a760e1a51db98aecce9c37c685687e
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-01-19 23:06:58 +08:00
yaoyu.xu f2f7b05174 hdmirx: add support for 240p [1/1]
PD#SWPL-139463

Problem:
add support for 240p.

Solution:
add support for 240p.

Verify:
txhd2

Change-Id: Id2a0e2dec3aad54143cf78a7ce9fbae0568291d0
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-19 22:54:31 +08:00
yaoyu.xu 5c52b715ef hdmirx: t3x reb bring up [1/1]
PD#SWPL-136712

Problem:
1.add support for 5k 8k.
2.frl flow.
3.frl overlap.

Solution:
t3x sw flow.

Verify:
t3x

Change-Id: I4aeb0b6fff064db89a13b2f1454ad7cb95e8ed50
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-19 20:52:47 +08:00
Gaowei Zhao fab849c568 hdmirx: support iMax mode [1/1]
PD#SWPL-137268

Problem:
not support iMax mode

Solution:
parse iMax flag from VSIF packet

Verify:
T5W

Change-Id: I3b1c52f132e47d825cf086473c6c60af44c5045f
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-19 20:37:30 +08:00
qiang.liu d87274dfe0 vdin: if fmt is null send nosig [1/1]
PD#SWPL-137116

Problem:
fmt is null vdin send unstable will black screen

Solution:
if fmt is null send nosig

Verify:
txhd2

Change-Id: I482068d6bbc6aeb867c6c59528d9d8edf3dd79dd
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-19 20:31:24 +08:00
congyang.huang 7801be4b3d vout: move vout ioctls to uapi [1/1]
PD#SWPL-134166

Problem:
move vout ioctls to uapi

Solution:
move vout ioctls to uapi

Verify:
T5W

Change-Id: Idcb298b99738883cbb9b5e6486248fa698fbfb33
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-16 19:58:18 +08:00
MingLiang Dong 21e3bcf004 amvecm: add sdr2020 source process [1/1]
PD#SWPL-140725

Problem:
new feature, add sdr2020 source process case

Solution:
new feature, add sdr2020 source process case

Verify:
t5m

Change-Id: I5d4d701c11066bc853b2cf24579363cec44bd963
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-12-22 17:08:10 +08:00
jialong.jiang 2b5fd04286 amdv: 5.15 ioc move to uapi. [1/1]
PD#SWPL-140850

Problem:
5.15 ioc move to uapi.

Solution:
5.15 ioc move to uapi.

Verify:
t3.

Change-Id: Icc1bd8efb807a84d55fd3b380fd3a016b34f4849
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-11-22 13:24:00 +08:00
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