Commit Graph

6669 Commits

Author SHA1 Message Date
Evoke Zhang 10f4b94de7 lcd: add pre_de_h timing for tconless panel [2/2]
PD#SWPL-229200

Problem:
need support pre_de_h timing for tconless panel

Solution:
add pre_de_h timing support for tconless panel

Verify:
bc302

Change-Id: I550086327c50cd1e833050837bc63ab86cd5f686
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-09-09 20:38:57 -07:00
Huqiang Qin f512e972c7 saradc: txhd2: Fix for SARADC and ADC keypad not working [1/1]
PD#SWPL-231134

Problem:
SARADC and ADC keypad not working.

Solution:
Not enabled in defconfig, just enable it.

Verify:
TXHD2/BE319

Change-Id: I2ad9c35f58aabf736644aacfa5e9aec73219c9a5
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2025-09-09 16:26:55 -07:00
haitao.liu 3f42053027 vdin: fix the issue of obtaining an incorrect compressed size for VFCE [2/2]
PD#SWPL-221001

Problem:
display visual artifacts randomly

Solution:
RDMA read the size before manual reset vfce

Verify:
t6w

Change-Id: I3b3a2bb0502a5c2b7b8d47cf764c5118c3caf282
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-09-09 16:26:46 -07:00
zijie.hong de8e0bc58a vdin: color matrix optimization [1/1]
PD#SWPL-230003

Problem:
vdin1 can not use manual csc

Solution:
use devp correctly

Verify:
T5W

Change-Id: I384b3026237b7c41e46f322190539012d8bca7b3
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-09-09 03:21:51 -07:00
zhenteng.tian b8d9ab8cf7 dpss: reset last_file when dpss init. [1/1]
PD#SWPL-223903

Problem:
need reset last_file when dpss init

Solution:
reset last_file when dpss init

Verify:
S6

Change-Id: I2f130b472277ebac0c4818dd9052c907c1acdcf2
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2025-09-09 03:08:48 -07:00
hai.cao b75ff7de8d vpp: add bypass video mute control [1/1]
PD#SWPL-230799

Problem:
add video mute bypass to debug

Solution:
add support

Verify:
tv chips

Change-Id: I83a956b949e7edcf6983b1aab728f70964c4f71c
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-09-09 02:11:41 -07:00
jian zhou 41224d05d3 audio: fix eARC TX noise [1/1]
PD#SWPL-230642

Problem:
eARC TX channel status bit swap, and AVRs play ac3 data
as pcm stream.

Solution:
add the channel sync start before enable eARC TX.

Verify:
t6x

Change-Id: I2532f535c037864f988040c32323b59299577e24
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-09-09 02:11:25 -07:00
Evoke Zhang 499de77e82 backlight: support boot_ctrl bl_state [2/2]
PD#SWPL-229285

Problem:
need support boot_ctrl bl_state

Solution:
support boot_ctrl bl_state

Verify:
bs311

Change-Id: I8188e4d02945cbb5e5d43348c7cc6e3e004d1376
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-09-09 02:10:58 -07:00
Jian Hu 8dc8e60689 dts: set the #size-cells property to 2 in the heap-secure node [1/1]
PD#SWPL-224782

Problem:
invalid size property in 'heap-secure' node.
invalid alignment property in 'heap-secure' node.

Solution:
set the #size-cells property to 2 in the heap-secure node

Verify:
t6d

Change-Id: I54886866fdff437deb5755ad62beaf19b0697908
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2025-09-08 18:43:16 -07:00
zhikui.cui 1775af1fe4 NAND: reg size wrong in dts
PD#SWPL-163069

Problem:
cell = 1, reg value should 32bit

Solution:
fix

Verify:
No

Change-Id: I5da37a4fb3ddc3368d4f73012be1695e74344366
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2025-09-08 15:38:38 -07:00
brian.zhu 2e293def7f vpp: process di local buffer crop under reverse case [1/1]
PD#SWPL-201256

Problem:
With T6D/TXHD2, need reverse the mif position
when using di local buffer under reverse case

Solution:
re-calucation mif position for that case

Verify:
Verified on T6D

Change-Id: I436ae46662f254f2548201aea8873f0b4fcea1b8
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
2025-09-08 04:59:07 -07:00
huijie.huang 1242492a55 lcd: support t6w and t6x chip [1/1]
PD#SWPL-228770

Problem:
Kernel 6.12 need to support t6w

Solution:
Kernel 6.12 T6W bringup

Verify:
t6w

Change-Id: Ied122f870bc5d141bc2201ff5e99f1293d74132b
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2025-09-08 04:58:58 -07:00
ruofei.zhao cff695651d hdmitx: optimize hdmitx_edid_check_data_valid code [1/1]
PD#SWPL-229484

Problem:
hdmitx_edid_check_data_valid is called multiple times, code is redundant

Solution:
optimize hdmitx_edid_check_data_valid code

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: I6bdab3a2275b25d2d60e893b81f3fadc8511f4ea
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-09-08 04:58:51 -07:00
mingxiu.sun 66dff75927 vdin: cycle error [1/1]
PD#SWPL-229026

Problem:
The vdin function limits the max_fps to be below 250Hz;
otherwise, it will filter out abnormal frames.

Solution:
Increase the max_fps limit value

Verify:
t3x

Change-Id: I837afb102bbc396c669de2ccb6fb57c93939616a
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2025-09-08 01:32:28 -07:00
Jianxiong Pan 4faea8d07f mm: provide interface to set cma task priority. [1/1]
PD#SWPL-229258

Problem:
some scenarios hope to dynamically modify the cma task priority.

Solution:
provide interface to set cma task priority.

Verify:
local.

Change-Id: I72ad141f3535a9173f622ff73c79c96440aa76da
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-08 01:19:00 -07:00
Cheng Wang c48334c847 vlock: fix bug caused by non-standard signal [1/1]
PD#SWPL-205862

Problem:
FRC and vlock module conflict

Solution:
Disable vlock on non-standard signal

Verify:
T3X

Change-Id: Ia84ac94d49966bb185de73dee6b9b17d17143e29
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2025-09-08 01:18:16 -07:00
dian.shao 0186238f75 usb: t6d/t6w dts updates [2/2]
PD#SWPL-228769

Problem:
t6d/t6w dts props porting.

Solution:
Modify dts.

Verify:
BR301/BS319.

Change-Id: I5b8fbc72cb41ceec952bbcd03b4aa1357672a428
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-09-08 01:18:02 -07:00
dian.shao 7cdcfb931c usb: usb2 phy usb2t updates [1/2]
PD#SWPL-228769

Problem:
Setup param defined in soc file.
T6D usb2t mode mux 3 clk err
T6W usb phy not ported.

Solution:
Move setup param to common file.
Add workaround for T6D.
Port T6W usb2 phy.

Verify:
BR301/BS319.

Change-Id: Ie00a9700eef6f6cfa72b8d27c6e01fcbfc73b045
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-09-08 01:17:58 -07:00
yicheng shen 0325710742 hdmirx: optimize DC 422 override flow [1/1]
PD#SWPL-230141

Problem:
optimize DC 422 override flow

Solution:
optimize DC 422 override flow

Verify:
TXHD2

Change-Id: I06e2c7db017a90da393f8dbcba87d2a40c235065
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2025-09-08 00:38:33 -07:00
congyang.huang 38e11492ea drm: fix null reference issue [1/1]
PD#SWPL-229197

Problem:
drm kernel panic in meson_atomic_state_free

Solution:
the logo_skip causes the priv->logo pointer to be NULL, so need
determine if it is a null pointer when using its corresponding reference

Verify:
s7d

Test:
DRM-OSD-100

Change-Id: If006b91e214912be375e27c0c5294c98770e0b57
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2025-09-08 00:37:32 -07:00
zhicheng.huang 05410afc7e dtv_demod: optimize loading method of t2 firmware(V4.0.7) [1/5]
PD#SWPL-229229

Problem:
optimize loading method of t2 firmware

Solution:
1.optimize loading method of t2 firmware;
2.optimize function stack size;
3.AMLDTVDEMOD_VER V4.0.7

Verify:
t5m

Change-Id: Ib7f8f7dc4fb1f547629a90eb408b7b777eee899d
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2025-09-08 00:37:06 -07:00
chen.xu a1b333ba3e v2d: v2d adapts to dewarp function [1/1]
PD#SWPL-225603

Problem:
dewarp rotate abnormal.

Solution:
enabled dewarp rotation function on v2d.

Verify:
s6

Change-Id: Id9413309590684f4eb912813f376d9807aa9d407
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-09-08 00:36:38 -07:00
congyang.huang a8b6bdddc2 drm: modify vpp go_field for t3/t5m [1/1]
PD#SWPL-217328

Problem:
when memc is enabled, the screen flashes

Solution:
the t3/t5m chips are different from other chips
and should choose post go_field instead of pre
go_field, as pre go_field may be affected by memc

Verify:
t7/t5m/t3

Test:
DRM-OSD-53

Change-Id: Ia821aecfdde98cdef2f3fe459a64e52f289d7a82
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2025-09-08 00:36:11 -07:00
biao.sun e552b58598 mm: reduce kernel code size [1/1]
PD#SWPL-220724

Problem:
mm opt

Solution:
remove some configs

Verify:
txhd2

Change-Id: Ib494c0d699d444bd9b846d9625fb558018b882bd
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-09-05 07:54:23 -07:00
zijie.hong 68115a73bf vdin: Revert "vdin: t6x/t6d/t6w nv21 set uv swap" [1/1]
PD#SWPL-229103

Problem:
1) the writemif tool parses NV12 into NV21, error.
2) red is v:ef u:66 y:3e rather than u:ef v:66 y:3e
3) big endian & swap_cbcr=0, T3X is vuvu (NV21), T6D is uvuv(NV12)

Solution:
This reverts commit cba4965e0987ae295e80fb19245bbf6a528ebd4a.

Verify:
T6D

Change-Id: Ie5d49c5a42a7412748fa0d944a97b4732c2f7c32
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-09-05 07:51:34 -07:00
haitao.liu 73e83aadd8 vdin: screen flickering when exiting the game mode [1/1]
PD#SWPL-223582

Problem:
The vf buffer was not updated,causing afbcd to be abnormal

Solution:
Disable VDIN writing to DDR only under game and non-scatter memory

Verify:
t6w

Change-Id: I7bf68cfd7dca183a76b529832dd4699643437191
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2025-09-05 07:51:21 -07:00
haitao.liu 259ffc8ab0 vdin: Set the hold line of t6d/t6w/t6x to 2 [1/1]
PD#SWPL-230748

Problem:
The hold line set to 0 may cause the first line of
data in the frame not to be written

Solution:
Set the hold line to 2

Verify:
t6d/t6w/t6x

Change-Id: I8263c6f4908db2baacfb261501d1342916cd34b5
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2025-09-05 07:50:52 -07:00
zijie.hong a12f593820 vdin: keystone 8bit RGB444 h_size error [1/1]
PD#SWPL-230439

Problem:
In keystone 8bit RGB444 case,
canvas_max_stride error leads to DMC crash.

Solution:
modified keystone 8bit RGB444 h_size

Verify:
TXHD2

Change-Id: I0aa404a205cedff14bfb806aba79cb7840b13b9e
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-09-05 07:50:42 -07:00
Tao Zeng 98302a5551 amfc: make sure decriptor address is cacheline size aligned [1/1]
PD#SWPL-228691

Problem:
AMFC driver works not correctly

Solution:
The main reason is amfc enc/dec descriptor address is not cache line size
aligned. So cache maintain of descriptor is not fully works. This change
can help to makesure enc/dec descriptor address is cache line size aligned.

Verify:
s6

Change-Id: I8db8ad14ad99cdddff725366fc8b137474062afb
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2025-09-05 07:50:35 -07:00
qiyao.zhou bd6faedb0b di: di output param invalid when bypass.[1/1]
PD#SWPL-223126

Problem:
decoder buf not recycle because the param is invalid when di bypass by
weak signal..

Solution:
Di copy all param when bypass..

Verify:
T6D

Change-Id: I5af420727136c0e3d467bfe0cf751ff186ef42e0
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
(cherry picked from commit 5791e359b554cb1604f0f53268ef601aca4ebc95)
2025-09-05 05:16:59 -07:00
dongfei.li 282862c937 frc: frc sync k5.15 [1/1]
PD#SWPL-230806

Problem:
sync k5.15

Solution:
sync k5.15

Verify:
T5M

Change-Id: Id133261c3c87e636b85853978b45414ab1ff6039
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2025-09-05 05:16:31 -07:00
Mingyen Hung e82eb2b538 crypto: block invalid kte [1/1]
PD#SWPL-226573

Problem:
Stress-ng will send invalid kte for testing.

Solution:
Check input kte is invalid or not.

Verify:
daisy + android u

Change-Id: I9ce0ff7763d51e21f8181081f2053f28bf7367e0
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2025-09-05 04:52:18 -07:00
hai.cao ab179b938e rdma: sync codec_io canvas rdma for t6w [1/1]
PD#SWPL-228894

Problem:
sync codec_io canvas rdma for t6w

Solution:
sync codec_io canvas rdma for t6w

Verify:
t6w

Change-Id: I7678a6c93fdd0002bc23023c998359a66e717c31
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-09-05 04:52:11 -07:00
brian.zhu c76b55d1f9 vpp: add more skip ratio for DI prelink case on t6d/txhd2 [1/1]
PD#SWPL-208625

Problem:
vpu performance is not enough when DI prelink enables for <= 720p case
with small window

Solution:
Adjust vskip ratio

Verify:
Verified on t6d

Change-Id: I9a3f962b377d70e502badec516283b45a50de1c1
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
(cherry picked from commit f8052ceb692ca5b70afffc7d6b3c58248cc6e6f6)
2025-09-05 04:52:05 -07:00
qinglin.li 3d18d31974 ddr_bandwidth: move dmc_side_band define [1/1]
PD#SWPL-226991

Problem:
move dmc_side_band define

Solution:
move dmc_side_band define

Verify:
local

Change-Id: I407e8fb8783f4bdeb7a456c0a298dc76e5a79f68
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-05 04:51:57 -07:00
yicheng shen 1e5eed4fc1 hdmirx: optimize class create flow [1/1]
PD#SWPL-229366

Problem:
hdmirx should not exist on ott project

Solution:
optimize class create flow of hdmirx

Verify:
S7D/t6w

Change-Id: Iea01d0a717de7635367fd6a00b96c169887ddd3e
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2025-09-05 04:51:00 -07:00
Pengcheng Chen dd14330c57 vpp: fix vskip=1 and lcevc play exit crash issue [1/1]
PD#SWPL-229359

Problem:
crash when vskip=1 and lcevc play exit

Solution:
when vskip = 1, vd2 switch, if vd1 disable,
not force set enhance vf to new_frame

Verify:
s6

Change-Id: I8cbddd5872f2ed3a0140a4ff2ec0b47a1f9fc4ca
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2025-09-05 04:50:40 -07:00
Jian Cao 761793b77d dummy_provider: add support for new features [1/1]
PD#SWPL-188983

Problem:
new features need to be added for testing

Solution:
1. extend AFBC/AFRC color formats and bit depths
2. add videopip support
3. add lcevc support

Verify:
t6d/t6w

Change-Id: I6d7de3becde55b881bffd2b9cf0d3f950c8ac192
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-09-05 04:50:27 -07:00
Ao Xu d7f68502e7 meson_tx_connector: update dptx and hdmitx driver [1/1]
PD#SWPL-229825

Problem:
update dptx and hdmitx driver

Solution:
update dptx and hdmitx driver

Verify:
s7d

Test:
DRM-TX-38

Change-Id: Ic0f8ccdfd250b3fa5bc54f63d4c73c4904948b50
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2025-09-05 04:50:02 -07:00
Jianxiong Pan 4fa9cce6f5 mm: profile cma pool usage. [1/1]
PD#SWPL-225018

Problem:
statistic cma pool usage.

Solution:
echo cma_name > /proc/cma_stat
cat /proc/cma_stat
or call get_cma_stat() to get info;

Verify:
local.

Change-Id: I39ad7e9fbc6ad8b1bf75e40d2f3074ccd77b0f2b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2025-09-05 04:49:33 -07:00
hang.cheng 067dbf60aa cvbs: add dump node for bugreport [1/3]
PD#SWPL-229115

Problem:
need to add cvbs out dump node for bugreport

Solution:
add cvbs out dump node for bugreport

Verify:
ROSS

Test:
DRM-CVBS-3

Change-Id: I286a1fbceeb5d959e9452aab7a5bf8588fbc098c
Signed-off-by: hang.cheng <hang.cheng@amlogic.com>
2025-09-05 03:04:27 -07:00
Lei Yang 0978ffee54 tvafe: position adjustment [1/1]
PD#SWPL-229846

Problem:
the image position is not centered.

Solution:
fine tune the display center position

Verify:
t5w/t6w

Change-Id: I735528569c2741284f511ce12cdf80de6cf74a01
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2025-09-05 02:13:53 -07:00
hai.cao a36dfa306e vpu_top: sync vpu top driver for t6w [1/1]
PD#SWPL-228892

Problem:
sync vpu top for t6w

Solution:
sync vpu top for t6w

Verify:
t6w

Change-Id: I5e692137b7d1735b3a9b75a1e0da36a87e856dd6
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-09-05 01:14:42 -07:00
brian.zhu f856388c5c vpp: avoid to access invalid pointer when suspend [1/1]
PD#SWPL-194192

Problem:
When during suspend flow, check_video_mute_state function
access invalid vf pointer.

Solution:
Save vf type in swap frame function for check_video_mute_state

Verify:
Verified on t5w

Change-Id: I2c3f0f57cc8d43b9087952b4b32f633f681c5edd
Signed-off-by: brian.zhu <brian.zhu@amlogic.com>
2025-09-04 05:20:29 -07:00
Junyi Zhao 0966ae7d83 i2c: cov: fix coverity error [1/1]
PD#SWPL-228472

Problem:
coverity error

Solution:
fix it

Verify:
t6w

Change-Id: I41c960afd287cae9967064aca7bd06d22c5c2442
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2025-09-04 05:16:43 -07:00
Junyi Zhao be8e828092 i2c: support tcon i2c driver [1/1]
PD#SWPL-228472

Problem:
there is no tcon i2c driver
It is same as gxlx4 ip

Solution:
support it

Verify:
t6w-bs319

Change-Id: Ia4e1a969d8cd8085780ab07b073e65d62298b55b
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2025-09-04 05:16:38 -07:00
qinglin.li db87c83a68 coverity: fix ddr_tool coverity error [1/1]
PD#SWPL-230495

Problem:
fix ddr_tool coverity error

Solution:
fix ddr_tool coverity error

Verify:
local

Change-Id: I1ccce1716cb401e94b58dff333b43f29c4a81d53
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-09-04 00:42:57 -07:00
qing.zhang f0fdf34c29 audio: audio clip get ram function [1/1]
PD#SWPL-230103
PD#TV-167152
PD#TV-171282
PD#TV-175606

Problem:
the data read form ram, while the eqdrc is running
which may cause the ram read timing issue

Solution:
1. only read from table with setting

Verify:
test on T6d/t6w

Change-Id: I3f625e1f795ee303986eb0e7b577deccd37e45ba
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2025-09-04 00:42:46 -07:00
zijie.hong a43a73e612 vdin: aa ds coef for dpss [1/1]
PD#SWPL-230317

Problem:
For dw mif of DPSS,
the aa ds coefficients need to be adjusted

Solution:
modified aa ds coef

Verify:
T6W

Change-Id: I30465699802e4c036d003d769174e8098ece69c4
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-09-04 00:42:40 -07:00
Jiebing Chen 9fa7302110 Audio: fix kernel hang up in tdm probe [1/1]
PD#SWPL-227350

Problem:
kernel hang up in tdm probe

Solution:
switch resample pll to hifipll

Verify:
bs311

Change-Id: Ib8d2974db06dd218fb0007d103029822a9f76eec
Signed-off-by: Jiebing Chen <jiebing.chen@amlogic.com>
2025-09-03 09:11:02 -07:00