Commit Graph

6335 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
jie.dai 88df161ee0 lcd: lcd memory management [3/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

Change-Id: Ia0a0590879730c327c902f739504b5a43e7063d1
Signed-off-by: jie.dai <jie.dai@amlogic.com>
2024-06-18 23:41:17 -07:00
saisai.chang bde02f695c audio: loopback config is wrong [1/1]
PD#SWPL-172268

Problem:
1.loopback configuration error
2.resample1 status is wrong

Solution:
1.reconfig loopback
2.modify resample1 status

Verify:
s5 & sm1

Change-Id: Iab65e48d8d027549ecc8d805f29e162cde4a8805
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-06-18 23:41:12 -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
qing.zhang 8fc85981fc Audio: G12A kernel 5.15 need oe pin function [1/2]
PD#SWPL-158794

Problem:
oe pin can't work

Solution:
add oe pin control

Verify:
g12a

Change-Id: I43145d13958d9928eb839e8173e1b8fbd2dafbe2
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-06-18 05:51:44 -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
jiebing chen 7acf1fe8b1 Audio: enable spdif in pin for s7 [1/1]
PD#SWPL-173815

Problem:
need to enable for spdif in pin for hdmi arc

Solution:
enable spdif pin in audio dtsi

Verify:
use s7

Change-Id: I85b7b02fd56550d4958a36a9e46f82a66e25f887
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-06-18 01:55:25 -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
qiang.wei 815d041375 C3: aw409/aw402 256m board tee support [1/1]
PD#SWPL-163726

Problem:
aw409/aw402 256m board tee support

Solution:
aw409/aw402 256m board tee support

Verify:
C3_AW409

Change-Id: Ia53233659215fbab51712765091581f6fdada302
Signed-off-by: qiang.wei <qiang.wei@amlogic.com>
2024-06-16 23:43:11 -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
honghai.song 9ad3e57451 T5W: limit t5w dts cma range to 32bit ddr range [3/3]
PD#SWPL-170753

Problem:
limit t5w dts cma range to 32bit ddr range

Solution:
limit t5w dts cma range to 32bit ddr range

Verify:
on T5W

Change-Id: Ic2af320507a85a481df708006eb7287da164f202
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-06-16 20:05:36 -07:00
Jiacai.Liu 6b63779b8f s4d: CB linux dts modify [1/1]
PD#SWPL-170979

Problem:
s4d linux platform need modify

Solution:
s4d linux dts modify

Verify:
local s4d_ap232

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: Iba4204265a610fae3f588401d3a32e6fc047ec72
2024-06-16 20:05:18 -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
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
gerrit autosubmit d173507458 Merge "yocto: CF1 Add s7_bo201 dts [1/1]" into amlogic-5.15-dev 2024-06-13 22:40:33 -07:00
zhenyu.gao 1226a16e66 yocto: CF1 Add s7_bo201 dts [1/1]
PD#SWPL-172322

Problem:
New featrue

Solution:
Add s7_s805x3_bp201_linux_1g.dts
Add s7_s805x3_bp201_linux_512M.dts

Verify:
jenkins

Signed-off-by: zhenyu.gao <zhenyu.gao@amlogic.com>
Change-Id: I0483cc418caa2f0444f7e9fb184da59f03ecc8f7
2024-06-13 22:40:32 -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
Jiacai.Liu 4db7b228c6 t5w_lw: add 1g t5w linux dts file [1/1]
PD#SWPL-172372

Problem:
add 1g t5w linux dts file
add linux dts check in makefile

Solution:
add 1g t5w linux dts file
add linux dts check in makefile

Verify:
local

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: I4bcbd645659e5badf38ec72bfb6fb1098f951396
2024-06-12 13:41:06 -07:00