Commit Graph

4214 Commits

Author SHA1 Message Date
zhenteng.tian 840abb827f video_composer: enable low latency mode for drm. [1/1]
PD#SWPL-173202

Problem:
the delay time for sending the display needs to be optimized.

Solution:
enable low latency mode for drm.

Verify:
S7D

Change-Id: I94e1dd453228f70cf9db29f954e89dcfdb3f7271
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-06-19 03:21:13 -07:00
Xiangyu Cai c969770190 vlock: log print crtl [1/1]
PD#SWPL-173643

Problem:
clean up vlock log

Solution:
clean up vlock log

Verify:
t5m

Change-Id: I3a897235ad83ff7d9fa9528519d4c71b3e883e43
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-06-19 03:21:09 -07:00
Haotian Guo a46d370ec1 Revert "hdmirx: move hdp_c_ctrl [1/1]"
This reverts commit 7ae7cc951c.

Change-Id: Iea08d294efc74180b29450b45ea0ec788bf5d290
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-06-19 03:21:06 -07:00
yaoyu.xu a2714cb1d4 hdmirx: fsm stop at cable clk stable [1/1]
PD#SWPL-172368

Problem:
fsm stop at cable clk stable

Solution:
do not set phy disconnect and connect

Verify:
t3x

Change-Id: I428d9bfa2a9f6c4005eb3b4661cedd52f7530ce6
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-06-18 23:50:35 -07:00
xiang.wu1 74f938c584 hdmitx: init hdmitx_event_mgr point [1/1]
PD#SWPL-172191

Problem:
hdmitx_event_mgr point not init, causing the member
initial value to be abnormal

Solution:
init hdmitx_event_mgr point

Verify:
T7

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: I94271da51c21b0faf65e216607f751e649a89ac9
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-06-18 23:41:28 -07:00
yudong.cai c473b1121c vdin: Failed to execute the mk_smarthome64.sh [1/1]
PD#SWPL-173928

Problem:
mk_smarthome64.sh compile error

Solution:
correct

Verify:
t5m

Change-Id: Id0172ca5b92d91abf5b5a8095f64a7ef3652f5b7
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-06-18 23:41:23 -07:00
nengwen.chen 7d2792bd73 dtv_demod: fix atsc VBS to NTSC N+1 aci and R.1 test (V3.5.044) [1/1]
PD#SWPL-110341

Problem:
atsc VBS to NTSC N+1 -68dBm interference test fail.
R.1. Multiple Dynamic Echoes test fail.

Solution:
fix atsc VBS to NTSC N+1 -68dBm interference(T3X+R842).
reduce the agc target(0x28 to 0x1f).
add r842 atsc monitor.
AMLDTVDEMOD_VER "V3.5.044".

Verify:
T3X/T5M.

Change-Id: Ie32cf222ac9c1c99082320ca1e57f2ea11e2b8dc
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-06-18 23:41:06 -07:00
yaoyu.xu 65fc70d48d hdmirx: hdmirx fsm modify [1/1]
PD#SWPL-165955

Problem:
remove unused fsm code.

Solution:
remove unused fsm code.

Verify:
t3x

Change-Id: I2baf75d005d46d1a146dcc2302a821cfc75a1698
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-06-18 23:40:59 -07:00
jie.dai c12976a050 lcd: lcd memory management [2/3]
PD#SWPL-160850

Problem:
need add driver to manage lcd memory

Solution:
1. add resman platform driver to manage lcd common resource
2. add reserved memory management driver

Verify:
t5m/t3x/t3/t5w/t5d/txhd2

Change-Id: Id92a3807a234a650d48645d35c8f445b24fbcf69
Signed-off-by: Jie Dai <jie.dai@amlogic.com>>
2024-06-18 23:40:55 -07:00
Jian Cao 655d1eb457 vpp: add check for flag VFRAME_FLAG_HIGH_BANDWIDTH when updating frame [1/1]
PD#SWPL-173459

Problem:
vpp needs to perform line skipping while high bandwidth

Solution:
add the corresponding flag check

Verify:
t5m

Change-Id: I60a180c9b20f7315b3d9e5cb9435df645469845c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-06-18 05:51:57 -07:00
zhou.han e672a82760 hdmitx21: Optimization of standby power consumption [1/1]
PD#SWPL-172001

Problem:
When s7d is in standby and wakes up, it will turn off and on the vpu
power domain. When it is turned off, the reg of the relevant modules
will be reset, the output no signal when it wakes up.

Solution:
hdmitx driver needs to reinitialize the required top register when
it wake up

Verify:
s7d

Test:
DRM-TX-78, DRM-TX-79, DRM-TX-80, DRM-TX-81

Change-Id: I0414be14d4ee28b8493b61122201b6b2c54569a0
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-06-18 05:51:39 -07:00
bowen cheng 2565b75d16 hdmirx: remove cor reg w/r twice [1/1]
PD#SWPL-159688

Problem:
write 8051 pram mem twice cause mem addr wrong

Solution:
just T7/T3 need write twice

Verify:
t5m

Change-Id: I4cb3c5d8c4913a9aa0046e24e55405ae9e215717
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2024-06-18 05:51:35 -07:00
yao liu 17c52ec792 amdv: ko crash when play error video [1/1]
PD#SWPL-161888

Problem:
metadata error and dolby source code stuck in
metadata_parser_process

Solution:
drvier add error check, treat as sdr when error
count > 10.

Verify:
s5

Change-Id: I2eb939ffbe5fa5fc4ae462c40e2d6f00fba3e025
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-06-18 05:51:08 -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
qinglin.li 091b66b611 ddr_tool: support sc2 and t5w priority [2/2]
PD#SWPL-173670

Problem:
support sc2 and t5w priority

Solution:
support sc2 and t5w priority

Verify:
local

Change-Id: I010790af9ee2c8e6fe46d2a426f3b1d9a17b4491
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-06-18 01:56:35 -07:00
lizhi.hu bbda9af34e lcd: fix mode change workflow [1/1]
PD#SWPL-171548

Problem:
cannot display after DRM mode change

Solution:
drm use (vout_server->disable + mode_change) to adjust reso
need reenable lcd when mode_change

Verify:
t3x_bc302

Change-Id: I00baebdcfda1f40c9e264514f5a21cc9e434d0ba
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-06-18 01:55:47 -07:00
Bichao Zheng f4b6a8586a spinand: add W25N01KV support [2/2]
PD#SWPL-148922

Problem:
add W25N01KV support.

Solution:
add the nand id into amlogic nand flash id table

Verify:
s1a

Change-Id: Ia335633779e0e9ee4b70656d20ea0c84e3249688
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2024-06-18 01:55:33 -07:00
Yongjie Zhu 43223afc2c uvm: fix coverity error about kernel 5.15 [1/1]
PD#SWPL-168349

Problem:
coverity check fail

Solution:
fix errors

Verify:
ohm

Change-Id: I1f614b1d1b33c44995e3d737dd6b8bffc324eea0
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-06-18 01:55:11 -07:00
yicheng shen 57729456b5 hdmirx: optimize phy rterm flow [1/2]
PD#SWPL-167196

Problem:
optimize phy rterm flow

Solution:
optimize phy rterm flow

Verify:
t3/t5m/txhd2/t3x

Change-Id: Iefba615e76a0e3a734f18f8367770030df251800
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-06-17 21:25:07 -07:00
qianqian.cai fb09e546bc deinterlace: sys allocate mm fail [1/1]
PD#SWPL-172501

Problem:
sys allocate mm fail

Solution:
add CODEC_MM_FLAGS_CMA for cma allocate
from nanxin decoder moduler

Verify:
t5m

Change-Id: I856601d37f60883f951280b81355fe64e94d9454
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-06-17 20:03:08 -07:00
qianqian.cai e80cc7dc27 deinterlace: bypass for di pre-vpp link [1/1]
PD#SWPL-172786

Problem:
bypass pre-vpp link

Solution:
when first not bypass

Verify:
t5d

Change-Id: I9c26168f5b3aa156e473ea346947e6cd7693742c
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-06-17 20:03:03 -07:00
qianqian.cai 988c27ea91 deinterlace: t5w arb error [1/1]
PD#SWPL-172577

Problem:
arb error

Solution:
add  protect for arb

Verify:
t5w

Change-Id: Ie005af4469d05a9c807a3280bf7e17b1ce01306a
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-06-17 07:39:03 -07:00
Gaowei Zhao d86ec6a9e4 hdmirx: Fix screen flicker issue [1/1]
PD#SWPL-172215

Problem:
Some source devices do not send DRM packet per frame.

Solution:
Ensure to send one DRM packet per frames

Verify:
T3X

Change-Id: If92f8004e345c1aa167222b66e137fd63e75a10f
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-06-17 06:03:22 -07:00
xiang.wu1 3e99d70844 hdmitx: add soundbar switch API on hdmi tx driver [1/1]
PD#SWPL-172191

Problem:
[U] need add soundbar switch API on hdmi tx driver

Solution:
1.add sounbar_en node to control soundbar switch
write 1 is on, write 0 is off
2.if soundbar is on, not send hpd event to android
if soundbar is off, keep the original process

Verify:
T7

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82,DRM-TX-122

Change-Id: I4d2c78064a3d158eca038cbbae945a8331dac76d
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-06-17 06:03:18 -07:00
he.he 48e96cc4a5 usb: black screen display after monkey test [1/1]
PD#SWPL-173442

Problem:
Memory leakage
open usb 2.0 camera fail:SH-20175

Solution:
related host 011

Verify:
t3

Change-Id: I3bd52c35f2aef31f3cb4dbb2eb50f97962d0b032
Signed-off-by: he.he <he.he@amlogic.com>
2024-06-17 03:53:20 -07:00
yudong.cai 9f85040a82 vdin: vdin memory optimization [1/1]
PD#SWPL-173184

Problem:
kernel 5.15 vdin memory optimization

Solution:
delete function

Verify:
t5m

Change-Id: I75fbb0bb296911754bd1557a8f69eabb37149c5d
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-06-17 03:53:15 -07:00
xiangyang.yan 4c6736039d eth: change txhd2/s1a analog setting [1/1]
PD#SWPL-173748

Problem:
change txhd2/s1a analog setting

Solution:
change txhd2/s1a analog setting

Verify:
S805C1-BG201

Change-Id: I6c08114e678867f25e04efe39c3533453f8a8d4d
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2024-06-17 03:36:04 -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
qinglin.li 7972b99614 ddr_tool: support sc2 and t5w priority [1/1]
PD#SWPL-173670

Problem:
support sc2 and t5w priority

Solution:
support sc2 and t5w priority

Verify:
local

Change-Id: Ibe6c3858e04eb60f59b6d44b66a9c0dab7b6f44c
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-06-16 23:03:08 -07:00
guoqing.sun a821bcabc1 USBCI: CB2 Null pointer dereferences. [1/1]
PD#SWPL-172788

Problem:
Dereference before null check

Solution:
fix it

Verify:
local

Change-Id: I85ab490a794d717299674b31f5ea60ff8a0f5419
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-06-14 01:56:50 -07:00
yuhua.lin 5a7edf7493 ge2d: display shadow when ge2d rotate 180 [1/1]
PD#SWPL-173607

Problem:
display shadow when ge2d rotate 180

Solution:
1. do not use repeat function
2. modify x_chr_phase

Verify:
t5m

Change-Id: I4d0ae458cbf8f79c73be2fe9e064ea2e2b752362
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-06-13 23:56:53 -07:00
dian.shao 23fbeb25e1 usb: nak retry time too long [1/1]
PD#SWPL-173238

Problem:
Nak retry time too long.

Solution:
Modify reg params.

Verify:
s7.

Change-Id: I9ab30914f44125e967ec9047e6cdb5884faf1e91
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-06-13 22:40:40 -07:00
congyang.huang 4011b879cf drm: use the appropriate sequence_id to decide attr during set mode [1/1]
PD#SWPL-172323

Problem:
hdmi block screen while entering recovery

Solution:
use appropriate sequence_id to prevent the failure of
drm set mode during recovery mode

Verify:
s7

Test:
DRM-OSD-2

Change-Id: Ic2e50120abc4edbd25d8de34126f2d0b716e7584
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-06-13 01:47:25 -07:00
Haotian Guo 7ae7cc951c hdmirx: move hdp_c_ctrl [1/1]
PD#SWPL-170980

Problem:
Writing hdp_c_ctrl conflicts

Solution:
move hdp_c_ctrl

Verify:
t7

Change-Id: Ie3f2c25a75ad81e1cb01d7aa7e9b35c255169229
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-06-13 01:47:13 -07:00
zongdong.jiao 65c0df5159 hdmitx: fix gpio_to_desc warning [1/1]
PD#SWPL-170731

Problem:
prk: [ 2.356825@0]h invalid GPIO 2
prk: [ 2.356894@0]h ------------[ cut here ]-----------
prk: [ 2.356917@0]h WARNING: CPU: 0 PID: 0 at drivers/gpio/gpiolib.c:106
	gpio_to_desc+0xd4/0xdc
prk: [ 2.356923@0]h Modules linked in:
prk: [ 2.356925@0]h
prk: [ 2.356932@0]h CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.269 #1
prk: [ 2.356933@0]h Hardware name: gxl_p212_2g23 (DT)
prk: [ 2.356941@0]h PC is at gpio_to_desc+0xd4/0xdc
prk: [ 2.356943@0]h LR is at gpio_to_desc+0xd4/0xdc

Solution:
Correct the gpio value judgement

Verify:
gxl/s905x

Test:
DRM-TX-38

Change-Id: Ic9e9762df166ce9359848bd053efcdd790473528
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-06-13 01:47:02 -07:00
Matthew Shyu 3313854231 crypto: fix driver stuck when invalid key set [1/1]
PD#SWPL-172313

Problem:
When invalid key set, the driver stuck at waiting for owner bit.

Solution:
If the DMA meets error during processing, it will skip setting owner
bit.  Therefore, we should only wait for owner bit if everything is
good.

Verify:
S4D

Change-Id: Ic41998f568e78759e65a1c034ef30ae1eebd132a
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2024-06-13 00:58:33 -07:00
Pengcheng Chen a739a2eb19 codec_io: skip ioremap when dts resource not get [1/1]
PD#SWPL-169423

Problem:
skip ioremap when dts resource not get

Solution:
skip ioremap when dts resource not get

Verify:
txhd2

Change-Id: Idaa4b9f95ed239497c34a9def8e85cfb455f9841
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-06-12 23:44:47 -07:00
jialong.jiang b385842d23 amdv: t7 flashes blue screen when switching to HDMI. [1/1]
PD#SWPL-173236
PD#SH-19865

Problem:
t7 flashes blue screen when switching to HDMI.
do not detunnel for first dv frame.

Solution:
do parser/control_path when hdmi_inst_id changed.

Verify:
t7

Change-Id: I0d54b1865dbfb3c1e661c07e1341cd27a4604ac5
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-06-12 23:44:34 -07:00
hai.cao 1d8c9d64d2 video: safa scale down need disable analy_en [1/1]
PD#SWPL-172285

Problem:
safa scale down need disable analy_en

Solution:
fix it

Verify:
s7d

Change-Id: Id195541e5bbc261ff51752e7c3df4f2a879e70f5
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-06-12 19:58:33 -07:00
haitao.liu 06a69bbd93 vdin: optimize the stopping process [1/1]
PD#SWPL-168740

Problem:
video flicker when changing dlg from OFF to ON

Solution:
1.disable vlock after video path unreg
2.video path unreg before vdin stopped

Verify:
t5w

Change-Id: I26fa30245a64f05d8a372e39ae2f32a8cdb0a44f
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-06-12 13:41:00 -07:00
lizhi.hu 578a7fb4b5 vout: add connector_type compact [1/1]
PD#SWPL-166373

Problem:
display error in case of uboot2015 + kernel5.15

Solution:
add connector_type env as vout for compatibility

Verify:
t5w_yocto

Change-Id: I1b222070224e431b40eb842b2f7318e9bc075f60
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-06-12 04:53:33 -07:00
Rong Chen 29a2603f07 mmc: clean coverity [1/1]
PD#SWPL-168329

Problem:
clean coverity

Solution:
clean coverity

Verify:
g12a

Change-Id: I09f90815caad67603dd2b6254a434183a2f6e8c3
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2024-06-11 22:35:24 -07:00
chen.xu 8f7b8d6dd3 video_composer: fix use dewarp rotate vc set crop to vpp [1/1]
PD#SWPL-171604

Problem:
use dewarp rotate vc set crop to vpp

Solution:
support

Verify:
T7C

Change-Id: Iaac141168c7ee7be57fd1b43af10e288193bb1cd
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-06-11 22:35:15 -07:00
jialong.jiang bfd46f74c8 amdv: add interface to set hlg source min/max [1/1]
PD#SWPL-171414

Problem:
hlg min/max is fixed value

Solution:
add interface to set hlg source min/max

Verify:
tm2

Change-Id: I668123a824a4bc63f67981272fb3952ea2bae5a7
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-06-11 03:45:35 -07:00
yaoyu.xu 876eac68ea hdmirx: do not use vcbus mute unless game [1/1]
PD#SWPL-170597

Problem:
screen split when signal change.

Solution:
do not use vcbus mute unless game.

Verify:
t3x

Change-Id: I8586dd44c8b7d3b56d1f59dc46c629eabb93e5d5
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-06-11 03:45:21 -07:00
mingyang.he 01cc3bcfbe drm: flash screen before bootanimation [1/1]
PD#SWPL-170497

Problem:
handle8(vpp1) and handle9(vpp2) write same reg with different val

Solution:
set VPP_INTF_OSD3_CTRL in handle9(vpp2) only

Verify:
t3x

Test:
DRM-OSD-13

Change-Id: I0443e4fa05674f205c81c1a3ca70b843f715189c
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-06-11 01:50:12 -07:00
congyang.huang a6d9be6753 drm: add protection for logo load [1/1]
PD#SWPL-172336

Problem:
drm logo init failed

Solution:
add protection for logo load

Verify:
ohm

Test:
DRM-OSD-2

Change-Id: I31c9f580d5a181e5bcb33a211d4b7bbd3a3d8864
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-06-11 01:49:50 -07:00
qiyao.zhou 6ae4cac925 diprocess: move thread flow in diprocess. [1/1]
PD#SWPL-171533

Problem:
create thread would pending hwc process.

Solution:
Move thread flow to open and release flow.

Verify:
t5w

Change-Id: Ia1cea13985756eb66445484dd9afbf65ca2be95e
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-06-11 01:49:21 -07:00
chuangcheng.peng f602f0d40b demux: add pts adjust for t5w chip [1/1]
PD#SWPL-172223

Problem:
video not smooth

Solution:
add pts adjust for slow es

Verify:
verified at project

Change-Id: I74df9a677aca67a243d1c00b1be5bcfcaf5ce27e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-06-11 01:49:11 -07:00
yaoyu.xu 11e6779c74 dsc: dsc flow modify [1/1]
PD#SWPL-165955

Problem:
some dsc format can not decode.

Solution:
adjust dsc settings.

Verify:
t3x

Change-Id: If89605bbaeed3f40b59d4c53a4721de2929f4f23
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-06-11 01:49:03 -07:00