Commit Graph

95 Commits

Author SHA1 Message Date
Huijuan Xiao 3e6b6bb78e amvecm: t6d bringup [1/1]
PD#SWPL-167798

Problem:
add t6d pxp bringup flow

Solution:
probe lut1 gmt_comp lut3d osd_mtx

Verify:
t6d

Change-Id: I72b493cc8ecdf12d42bef495e6c49abee9a90439
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-08-22 14:27:51 +08:00
congyang.huang 64d2722e6f drm: optimize qms_brr_viclist function [1/1]
PD#SWPL-178271

Problem:
optimize qms brr viclist

Solution:
optimize get_modes function
vrr range equals hdmitx and lcd group freq divided by 100

Verify:
s5 t5m

Test:
DRM-OSD-45
DRM-OSD-47

Change-Id: I72d1a2588fb761f21b1b56039c1cb37d5b55ce60
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-08-15 04:00:48 -07:00
Evoke Zhang e5e428f250 lcd_extern: support reload cmd bin [1/1]
PD#SWPL-175831

Problem:
need support lcd_extern reload cmd bin

Solution:
add lcd_extern reload cmd bin

Verify:
ay301

Change-Id: I3ed9041bc680a458e5853f0ef23bdb5f6810ae13
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2024-08-13 21:46:32 -07:00
lizhi.hu c4db023225 lcd: support phy tuning function [2/2]
PD#SWPL-168501

Problem:
need support lcd phy tuning function

Solution:
1.support lcd phy tuning tool api
2.support lcd tuning_Attr parse
3.support multi group phy tuning parameters

Verify:
ay301

Change-Id: Ib4aacfe358a993876ee2a11f954b509811702619
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-08-07 21:48:26 -07:00
Yan.Yan ca02ab631f CI: CIPLUS1-3-LSC-0460 [3/5]
PD#SWPL-151623

Problem:
platform app can not access /sys

Solution:
use ioctl to do that.

Verify:
Local

Change-Id: I107e11acc38ae411c0a344ad2d322338e98509b7
Signed-off-by: Yan.Yan <yan.yan@amlogic.com>
2024-07-25 06:07:54 -07:00
qinghui.jiang ed1c8a5f8b amvecm: new ioctl cmd for get chip id [1/1]
PD#SWPL-175088

Problem:
new ioctl cmd for get chip id.

Solution:
add new ioctl cmd and flow.

Verify:
t982

Change-Id: If7384905cbad3b9ee2c770a837ba98cf4031cd34
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-07-10 20:52:57 -07:00
pengzhao.liu 1fa017d4c8 kernel: s6 build fail. [1/1]
PD#SWPL-172848

Problem:
s6 build fail

Solution:
s6 build fail

Verify:
s6

Change-Id: I4313c75873efd693c6258685e180444687ac3700
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2024-07-04 20:34:03 -07:00
wenlong.zhang 5e56b59e3a drm: solution for gfcd odd size display abnormal [1/1]
PD#SWPL-173403

Problem:
gfcd source odd width display abnormal;

Solution:
1.add workround for odd width input;
2.add gfcd odd size and gfcd global alpha enum;
3.move the gfcd block forward because it is more sensitive to timing;
4.optimizing gfcd afbc switches;
5.add gfcd div alpha setting;

Verify:
S7d & S6

Test:
DRM-OSD-15

Change-Id: I83fda11948abd49abe021830a5acdd2607776094
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-07-05 10:43:04 +08:00
congyang.huang 9bc6865144 drm: support qms_brr_viclist function [1/1]
PD#SWPL-161718

Problem:
drm need add qms brr viclist

Solution:
add brr viclist and return in get_modes
drm vrr freq equals group freq divided by 100

Verify:
t7c

Test:
DRM-OSD-5

Change-Id: I9a4d5d9fe553c53d560fad64f5a56f7eedce7734
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-07-01 02:01:37 -07:00
zongdong.jiao b97732af86 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-07-01 02:01:32 -07:00
haitao.liu 105de984f7 vdin: Pass afd info to vpp [1/2]
PD#SWPL-168849
PD#SWPL-168856

Problem:
AFD feature development

Solution:
vdin pass afd info to vpp

Verify:
t5m

Change-Id: I3264ef109e560590b3da1c5ae0d2ab6355c8ea19
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2024-06-28 05:53:51 -07:00
qinghui.jiang 4aee7fc2c6 amvecm: sdr2hdr no effect [1/1]
PD#SWPL-174005

Problem:
ioctl cmd id not match.

Solution:
modify id to match function.

Verify:
t3x_revb

Change-Id: I54d57f8165c23a56f53c771d38538516a6795ddf
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-06-23 20:04:31 -07:00
huijie.huang 91ed26090c lcd: support dccd parsing flow [2/3]
PD#SWPL-139062

Problem:
DCCD support

Solution:
Support load dccd

Verify:
T5M

Change-Id: I3f30b90b6e27fff1566902b9da848280fe6aa532
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-06-18 03:06:22 -07:00
donghui.wang 32a15e6656 ambilight: add ioctl api for get data [1/1]
PD#SWPL-173586

Problem:
miss ioctl api for get data

Solution:
add ioctl api for get data

Verify:
t3x

Change-Id: Ia6f1f69f22ec8e5c68c23c766b5abc48a10c1d60
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-06-17 03:35:52 -07:00
shihong.zheng 8582af4d3a 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-06-16 20:05:14 -07:00
Gaowei Zhao 2033694d10 hdmirx: add filmmaker flag to struct tvin_latency_s [1/1]
PD#SWPL-168888

Problem:
tvserver can not get filmmaker flag

Solution:
add filmmaker flag to struct tvin_latency_s

Verify:
t3x

Change-Id: Iebe041e02dcf1deea7a0a96f9681cd629fbbb50f
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-06-05 02:25:52 -07:00
jinbing.zhu 05d50eaa10 amvecm: add colorimetry delivery method [1/1]
PD#SWPL-140663

Problem:
add ext signal type

Solution:
add ext signal type

Verify:
t965d4

Change-Id: Ibe681cdcef8194328282a31af09096f8cb961424
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-05-28 05:54:40 -07:00
qinghui.jiang 9025387ebf amvecm: sdr2hdr ioctl for pq server [1/1]
PD#SWPL-167174

Problem:
need new ioctl for sdr2hdr

Solution:
add new ioctl and flow for sdr2hdr

Verify:
t3x_revb

Change-Id: Ia479ae29cfd7c3552e87ca17fbda78ae2db3ad29
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-05-28 03:58:07 -07:00
Hao Shi b83a65e54e amvdec: optimize vdec_info and vframe_counter_s [1/1]
PD#SWPL-168978
PD#SWPL-169060

Problem:
The size of vdec_info and vframe_counter_s of
the kernel and player are out of sync causing
tsplayer AMSTREAM_IOC_GET_MVDECINFO to fail.

Solution:
force structures to be byte-aligned

Verify:
t5w s4d

Change-Id: I14f2388d82288cbaa97dbc309a486f908bf597db
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-05-28 03:57:23 -07:00
jinbing.zhu 98863d138b amvecm: add ai color param ioctl [1/1]
PD#SWPL-165683

Problem:
add ai color param ioctl

Solution:
add ai color param ioctl

Verify:
T3X

Change-Id: I9103c45c8e8325183d9769ad814a67394458b029
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-05-27 01:53:00 -07:00
Huijuan Xiao f6bf14f09c hdr: hdr core before osd blend [1/1]
PD#SWPL-157470

Problem:
bypass hdr mtx when osd blend after hdr core.

Solution:
bypass osd hdr mtx.

Verify:
t3x

Change-Id: I4ef0f736fe270cf52f91dcf09dc99ae0574e2c42
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-05-24 02:24:08 -07:00
wenlong.zhang 86ad56769f drm: support yuv 10bit for video [1/1]
PD#SWPL-146801

Problem:
support yuv 10bit for video

Solution:
support yuv 10bit for video

Verify:
s7

Test:
DRM-OSD-63

Change-Id: I93d00a77cb6776bd430c2db9845e685ff059bddd
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-05-20 23:55:39 -07:00
Huijuan Xiao 0bca5b8708 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>
2024-05-20 06:39:47 -07:00
jialong.jiang 47b69b6702 amdv: add aisdk function for hw5. [1/1]
PD#SWPL-168075
PD#SWPL-168078

Problem:
add aisdk function for hw5.

Solution:
add aisdk function for hw5.

Verify:
t3x

Change-Id: I60b3d1e3488ae7442179a7f6974134141e2f4082
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-05-20 04:10:28 -07:00
yao liu 1cfc6caede amdv: SDK test case DMB fail [1/1]
PD#SWPL-167148
PD#SWPL-166753

Problem:
1.DMB level5 fail
2.PD ioctl fail

Solution:
1.correct error for reg compare
2.change ioctl parameter

Verify:
t3x

Change-Id: I74fee5fd9eca74fd2df02600d9b1a96cf00c7313
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-05-08 07:38:14 -07:00
Hao Shi c53c3195c6 amvdec: optimize vdec_info and vframe_counter_s [2/2]
PD#SWPL-160457

Problem:
memcpy beyond individual struct members

Solution:
create a named mirror of an anonymous struct union

Verify:
sc2&sm1

Change-Id: If86c3581ac473bb8e4c2b2021bedcbe44ad406e2
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-04-28 22:39:52 -07:00
guoqing.sun 70b5ce8ae9 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-04-23 04:08:26 -07:00
Haotian Guo 23704bf705 hdmirx: edid block checksum [1/1]
PD#SWPL-162491

Problem:
calculating checksum error when there are more than 2 blocks

Solution:
Change the calculation method

Verify:
t3x

Change-Id: I71d212144273705a8eba62823fc27b0cdbec75d5
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-04-18 04:49:13 -07:00
wenlong.zhang b3436bfa11 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-17 19:31:22 +08:00
wenlong.zhang 560bdbdbac 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>
2024-04-17 19:31:20 +08:00
Ao Xu 3e79ef53f5 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: I562929b06bdfcfc4bb514b2d67e93e84a6925814
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-04-12 16:39:52 +08:00
yao liu c58211d886 amdv: add precision api [1/1]
PD#SWPL-161721

Problem:
new function

Solution:
1.DV_IOC_GET_DV_PRECISION_DETAIL_SUPPORT get cap from cfg
2.DV_IOC_SET_DV_PRECISION_DETAIL_BYPASS set bypass

Verify:
t3x

Change-Id: I01e1f01e942349aa2241df6748100015603e185b
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-04-10 20:39:54 -07:00
Gaowei Zhao a54e3fca89 hdmirx: support qms [1/1]
PD#SWPL-154454
PD#SWPL-160882

Problem:
not support qms

Solution:
support qms

Verify:
t3x

Change-Id: I3f373014962a06788ae9b0185555d8a8e0cf5725
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-04-09 19:48:57 -07:00
jinbing.zhu d7c8c44b1c amvecm: need optimize vframe for 5.15 [1/1]
PD#SWPL-161639

Problem:
need optimize vframe for 5.15

Solution:
.need optimize vframe for 5.15

Verify:
t3

Change-Id: I7ecb26b4d602c3620a4064831e23fea961d74ff9
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-06 21:46:57 -07:00
dongfei.li f68672dd56 frc: frc configure buf num [1/1]
PD#SWPL-151267

Problem:
drv set buf num

Solution:
drv set buf num

Verify:
T3X

Change-Id: I2e8ee518adddb969c499b285ceb0988f13ab7a00
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2024-03-25 11:33:02 +00:00
donghui.wang d468bb8c64 ldim: add ioctl api for glb hist [1/1]
PD#SWPL-157518

Problem:
add ioctl api for glb hist

Solution:
add ioctl api for glb hist

Verify:
t5m

Change-Id: Idff2157533509a850eaf56a45b8ccc3b8bba7085
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-02-29 22:53:24 -08:00
Haotian Guo 8258df371f hdmirx: differentiate HDMI ALLM and DV ALLM [1/1]
PD#SWPL-158200

Problem:
The upper layer cannot distinguish between dv allm and hdmi allm

Solution:
The bit1 of allm_mode represents dv allm, and bit0 represents hdmi allm

Verify:
t5w

Change-Id: I42f73ceffc20beae3e0182c1dce9e1fdc9c1f787
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-02-23 02:08:20 -07:00
Haotian Guo ee8c1bc0e6 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-15 06:39:38 -07:00
Gaowei Zhao bb65d6ad2d 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-11 16:11:24 -07:00
Gaowei Zhao 78c7661731 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-10 00:34:22 -07:00
Huijuan Xiao 57524869bc 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>
2023-12-19 00:19:09 -07:00
congyang.huang c0fa7f03bf 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>
2023-12-13 20:59:09 -07:00
jialong.jiang 45af8ab3f9 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>
2023-12-05 20:27:07 -07:00
mingxiu.sun 15a3f407ab 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>
2023-11-28 08:19:14 -07:00
donghui.wang 9593ac7960 ldim: fix power on duty on kernel [1/1]
PD#SWPL-144978

Problem:
duty change when enter kernel

Solution:
keep duty until get level_idx

Verify:
t3x bc302

Change-Id: I747f6389420d367d34e009f4758110ae49a28220
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-11-13 20:37:36 -07:00
Gaowei Zhao 9dd6f6e994 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>
2023-11-10 06:47:06 -07:00
linfang.zhao d44cc4a246 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>
2023-11-07 04:51:50 -07:00
Song Zhao 84bd527247 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>
2023-11-06 23:37:49 -07:00
jinbing.zhu d0123a3d3f 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>
2023-11-06 04:33:31 -07:00
qiang.liu 82b4572a95 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>
2023-10-18 23:04:12 -07:00