Commit Graph

5928 Commits

Author SHA1 Message Date
baocheng sun cb8ef17327 videotunnel: support ask refresh [1/1]
PD#SWPL-138027

Problem:
videotunnel drive support ask refresh

Solution:
support ask refresh, when use space ask refresh
at leas send one vt buffer

Verify:
ohm

Change-Id: I2255f2b329e09b46ed3218d3b39fdf84ae0d969d
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
(cherry picked from commit 575498273e)
2025-05-27 05:40:10 -07:00
nengwen.chen 5b92b285f7 dtv_demod: fix debug cmd compile and style error (V3.6.024) [1/1]
PD#SWPL-203846

Problem:
fix debug cmd compile and style error.

Solution:
fix debug cmd compile and style error.
AMLDTVDEMOD_VER: "V3.6.024".

Verify:
T5M/X4.

Change-Id: I76d9502af1aef60166820ec6d7f9c70d659d96cf
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2025-05-27 03:24:10 -07:00
jinbiao 02a05b2f6b sdio: turn on CFG_CLK_ALWAYS_ON to keep the clock output. [1/1]
PD#SWPL-209566

Problem:
After the CMD53 read command, the Bus clock outputs 3 clocks,
which cannot meet the spec condition to enter the asynchronous
interrupt cycle.

Solution:
Set CFG_CLK_ALWAYS_ON to output sufficient clocks
after the command ends.

Verify:
A5

Change-Id: I11f52057ad82506fcaef7b3177590e48e7112114
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2025-05-27 02:35:46 -07:00
Huijuan Xiao c1546d595b hdr: modify c_gain coef [1/1]
PD#SWPL-213436

Problem:
c_gain sel option need set 0

Solution:
complete it

Verify:
s7d

Change-Id: Ia55413035182fe7295c0f06c16bb4f2a3f4e3c2c
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2025-05-26 23:07:32 -07:00
chuangcheng.peng b71ce958fc demux: secure table enable and add flag [1/1]
PD#SWPL-213826

Problem:
dmx secure memory don't work

Solution:
add flag when secure table enable

Verify:
verified at t6w

Change-Id: Icca8dbf42589f35e5e2bc86db3c2932568ec8b25
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2025-05-26 20:59:08 -07:00
Yu Tu 458c610afb PCIe: PCIe with W2 may restart abnormally when wake up [1/1]
PD#SWPL-215252

Problem:
Due to the previous workround for W2, the preparation time for the
controller status was insufficient when the resume came back.

Solution:
Increase the delay time at the workround

Verify:
The customer stress test is ok

Change-Id: I65c704ff5d1898f5ab6310c284e4d40ade126675
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2025-05-26 09:15:09 -07:00
he.he a9ce388c1b usb: usb compilation error [1/1]
PD#SWPL-215094

Problem:
usb compilation error when include common/drivers/base/base.h

Solution:
add base.h to drivers/usb/BUILD.bazel

Verify:
s7d

Change-Id: I420d35d7d47500cf731375fc25aa255cd83deb36
Signed-off-by: he.he <he.he@amlogic.com>
2025-05-26 06:51:33 -07:00
baocheng sun 12065019e1 videotunnel: vt poll return POLLHUP when has no consumer [1/1]
PD#SWPL-214900

Problem:
producer poll timeout when no consumer connected

Solution:
if one of the session instances has no consumer,
vt poll will return POLLHUP

Verify:
ross

Change-Id: I5caed14c826c84f129b44fd9e07c2fd4cf48906e
Signed-off-by: baocheng sun <baocheng.sun@amlogic.com>
2025-05-26 06:51:26 -07:00
Jian Cao 3cd45138ba vpp: add aisr_en ioctl [1/1]
PD#SWPL-209170

Problem:
add IOC Interface to replace direct module parameter access

Solution:
complete it

Verify:
t5m

Change-Id: I38619829c193e1d54a3da8b59fe663f63d5aae61
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-05-26 06:51:21 -07:00
miaohong chen 9a18e988da v4ldec: CF2 Support dynamic transmission of signal type. [1/1]
PD#SWPL-202784

Problem:
Signal type information needs to be transmitted dynamically.

Solution:
The signal type of vp9 is dynamically transmitted
through the es package, and supports the joint transmission
of hdr10p & signal type data; other protocols
transmit the signal type through es parsing.

Verify:
ross

Change-Id: I00eeccfdefdbb735dc39ad90c2180a62bd1dbb8d
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2025-05-26 05:13:33 -07:00
Blance Tang 46caa26629 Yocto: Fix build issue in Yocto 4.0 [1/1]
PD#SWPL-203846

Problem:
Build failed with GCC 11.3 in Yocto 4.0

Solution:
Fix build issue

Verify:
BH201

Signed-off-by: Blance Tang <guofeng.tang@amlogic.com>
Change-Id: Ib37210908ae64b7fb4edd540adfeaa12eb8f9400
2025-05-26 05:05:39 -07:00
jian zhou a1fd48585c audio: add spdifin valid change event [1/1]
PD#SWPL-214927

Problem:
there is sound pop when spdifin format changed.

Solution:
add spdifin valid change event as raw and pcm switch.
audio hal will mute data when valid change.

Verify:
a4

Change-Id: Ied6df0d60a4269170ed7c9b4e61d9fabfe048b57
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-05-25 22:48:45 -07:00
Wanwei Jiang eb4e1a61ee patch: auto patch fail [1/1]
PD#SWPL-214570

Problem:
failure occurred when calling autopatch.sh in the kernel directory

Solution:
1. Before applying the patch, confirm that the directory is a Git repository
2. The kernel path and kernel version can be obtained through calculation,
so there is no need to add additional parameters
3. Optimize the maximum number of patches to improve performance
4. Optimize lunch patch
5. Optimize debug logs
6. Refactor into functions

Verify:
local

Change-Id: Ied02c8ed30816ac65bb53691aab92fd23d4146e7
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-05-25 22:48:28 -07:00
qiyao.zhou 1547ea4405 vd: Add log for receive param. [1/1]
PD#SWPL-213478

Problem:
Add log for receive param from drm in video display.

Solution:
Add log for receive param from drm in video display.

Verify:
S905X5

Change-Id: I83f7da25f4ee9144f653ea30254f1439f77aea50
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2025-05-25 22:47:31 -07:00
ruofei.zhao f7e9a87839 hdmitx: correct the wrong word [1/1]
PD#SWPL-214148

Problem:
bese_refrsh_rate is misspelled

Solution:
bese_refrsh_rate is changed to base_refresh_rate

Verify:
S905X5M

Test:
DRM-TX-147

Change-Id: I90e5a517af3f85f04ab1130422e21ff46f9c6946
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-05-25 22:47:17 -07:00
jinbiao 85e1d88c95 mmc: fix coverity error [1/1]
PD#SWPL-213930

Problem:
Coverity cleanup for ignored CID --mmc

Solution:
fix coverity error

Verify:
local

Change-Id: If1b47d57d75e88fc57a158a18ffbcb8c50744f09
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2025-05-23 19:07:29 -07:00
qiyao.zhou abed030cd8 videoqueue: too many log about skip [1/1]
PD#SWPL-214496

Problem:
Too many log about skip.

Solution:
Use log control about skip frame.

Verify:
T6D

Change-Id: I6a70021558b80b97fcb38ca7545f6a6e3bd2c10f
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2025-05-23 19:07:22 -07:00
qiyao.zhou e40a8214e3 vd: Add drop count in video display. [1/1]
PD#SWPL-212513

Problem:
Add drop count log in video display.

Solution:
Add drop count log in video display.

Verify:
S905X5

Change-Id: I99f002c706e2b0765928cec30b0a3eccb1f5f0fc
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2025-05-23 06:48:26 -07:00
biao.sun 8fcc08f7fd ramoops: status double disabled [1/1]
PD#SWPL-212588

Problem:
status double disabled

Solution:
remove one status

Verify:
t6w

Change-Id: Id23adcaa944ff8c5168474be4bce1be4815c061b
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-05-23 03:00:15 -07:00
Pengcheng Chen 0cfd33ca0a vpp: add sideband setting for t7c [1/1]
PD#SWPL-207780

Problem:
add sideband setting for t7c

Solution:
add sideband setting for t7c

Verify:
t7c/t3x

Change-Id: Ia262a619ef3ab1b42472ae0766f22e6cbd5829a6
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2025-05-23 00:57:49 -07:00
jian zhou 2e0d2045a5 audio: optimize the audio log [1/1]
PD#SWPL-214870

Problem:
optimize the audio log

Solution:
optimize the audio log

Verify:
sc2

Change-Id: Ia85eaf502b7552c4bb6e25e33cda6b4eae3bed93
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-05-23 00:57:42 -07:00
chuangcheng.peng af9f116d36 demux: dmx source changed the reset status [1/1]
PD#SWPL-214638

Problem:
Sometimes no video

Solution:
get the reset status from es table, don't change reset

Verify:
verified at S1A

Change-Id: I1579e1b7575801870377db608ee7b0162bdabec9
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-05-22 10:06:11 -07:00
xiangyang.yan 3259b3cf28 eth: update eth_top address [1/1]
PD#SWPL-214403

Problem:
update eth_top address

Solution:
update eth_top address

Verify:
HW

Change-Id: I2a9f1560041446f8ff625efd27676badec154170
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2025-05-22 10:05:42 -07:00
lele xiang 591cdaf814 Codec_mm: CF1 Enable basic scatter limited size function. [1/2]
PD#SWPL-212227

Problem:
Fixed scatter cache size causes redundant memory consumption.

Solution:
Calculate scatter memory requirements and used to limite
scatter cache allocation.

Verify:
T6d/ah212

Change-Id: Ibbe54a98ff77d71b10a79c55d1a4a45601805c4f
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2025-05-22 10:05:20 -07:00
biao.sun 016d9edcf4 ramoops: optimize dts size [1/1]
PD#SWPL-212588

Problem:
1.resize ramoops size
2.delete unnecessary items

Solution:
1.resize ramoops size
2.delete unnecessary items

Verify:
t6w

Change-Id: I99f7f087edd83b17b2cfcec15650eeb72e79dccb
Signed-off-by: biao.sun <biao.sun@amlogic.com>
2025-05-22 10:05:11 -07:00
Hanjie Lin 54ac1d96b7 tty: reduce useless count [1/1]
PD#SWPL-202314

Problem:
reduce useless check when count is too big

Solution:
reduce useless check when count is too big

Verify:
sc2

Change-Id: I41022ce294ee4e3efebd9594188891a1b69a72d5
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2025-05-21 22:30:10 -07:00
Yongjie Zhu f94c54f8b4 uvm: fix aipq attach to uvm fail [1/1]
PD#SWPL-214634

Problem:
move uvm to separate ko (aml_uvm.ko),
aipq attach fail

Solution:
fix aipq attach to uvm fail

Verify:
t7c

Change-Id: I346f34e4d000132b239d37ef80c92327019fe77a
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2025-05-21 21:06:49 -07:00
Evoke Zhang b2da15adc5 lcd: update clk_mode parameter [2/2]
PD#SWPL-213247

Problem:
need support clk_mode for each detail timing

Solution:
support clk_mode in extend timing config

Verify:
ay301

Change-Id: I8887b42b1fc0e194157db3da9fbe6758fa275c61
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-05-21 21:06:14 -07:00
Pengcheng Chen 3475025abb vpp: enable t3x vpu read sideband for game mode [1/1]
PD#SWPL-210417

Problem:
enable t3x vpu read sideband for game mode

Solution:
enable t3x vpu read sideband for game mode

Verify:
t3x

Change-Id: Iaeaa9f7f30bb68a9eb06028fc9eab50c836bd2e8
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2025-05-21 21:06:00 -07:00
Ao Xu f0db54693c drm: Add separate duplicate and destroy interfaces for video plane [1/1]
PD#SWPL-213197

Problem:
The OSD and video planes currently share the same duplicate and destroy
interfaces. Since they have different plane states, this leads to KASAN
issues due to incorrect state handling.

Solution:
Implement independent duplicate and destroy interfaces for the video
plane to ensure proper state management and avoid memory errors.

Verify:
s7d

Test:
DRM-OSD-95

Change-Id: I171d7a404180b1f523cef62593ba74a38b663d29
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2025-05-21 21:05:51 -07:00
he.he 7ddd101307 usb: panic from crg_rewrite_otg_write_UDC [1/1]
PD#SWPL-208057

Problem:
Competitive to unregister crg_udc driver causes panic.

Solution:
Add lock protection and check the state of the crg_udc driver

Verify:
s7d

Change-Id: I36a7a0021e9454006dde63e6ce5f8561f3d62c15
Signed-off-by: he.he <he.he@amlogic.com>
2025-05-21 21:05:19 -07:00
Yao Jie 2cbe44ad7b mailbox: support aocpu to arm mailbox transport [1/1]
PD#SWPL-168573

Problem:
AOCPU need to support sending mailbox message to ARM
actively

Solution:
1. Change mailbox driver to support AOCPU sending
mailbox to ARM
2. Change mailbox devfs driver to support receiving
data from AOCPU and notify user space task
3. Configure mailbox dts to support receiving
data from AOCPU via device node

Verify:
SC2-AH212
S7D-BM209

Change-Id: If8f1a26a237e0e1d3ee4085493b379adc74b8129
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2025-05-21 21:05:11 -07:00
bowen cheng 71648524bc cec: sw check signal_free_time [1/1]
PD#SWPL-213919

Problem:
sw check signal_free_time

Solution:
sw check signal_free_time

Verify:
t6w

Change-Id: I0751122e43fd8711598d1cb80aa93e6121bd24d9
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2025-05-20 21:15:31 -07:00
chenyang.liu c40fd7e993 lcd: remove LCD_CLK_MODE_DEPENDENCE_ADAPT marco [2/2]
PD#SWPL-206939

Problem:
LCD_CLK_MODE_DEPENDENCE_ADAPT was not used

Solution:
remove LCD_CLK_MODE_DEPENDENCE_ADAPT

Verify:
br301

Change-Id: I28e2b3c9ae13302a063b45cb59719c427b9ae43b
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2025-05-20 13:17:59 -07:00
ruofei.zhao ba819c822e hdmitx: add new uevent for hwc [1/1]
PD#SWPL-207734

Problem:
Need to add uevent reporting function of HDMITX_LINK_UNSTABLE and
HDMITX_INCOMPATIBLE_CABLE

Solution:
Added uevent reporting function for HDMITX_LINK_UNSTABLE and
HDMITX_INCOMPATIBLE_CABLE

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: Id75f0cca9873bfe02a87197b3a0586a06a9d00e3
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-05-20 13:17:49 -07:00
ruofei.zhao f2cd5c2e6f drm: solve the tv compilation error problem [1/1]
PD#SWPL-214341

Problem:
compilation failed for TV platform because macro isolation was not
used when adding hdmitx diagnostic API in drm

Solution:
add hdmitx diagnostic API to drm for macro isolation

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: If4c8c8d8d9721b29d10c64d8a2e14fed729b051d
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-05-20 03:10:21 -07:00
Wenjie Qiao 39d129f59c hdmitx: hdcp14 cts fail [1/1]
PD#SWPL-212534

Problem:
hdcp14 cts 1B-01/1B-04 Fail
can not read the 127 ksv, read the 127ksv need more time

Solution:
modify 100 times to 200 times

Verify:
s5/s6/s7d

Test:
DRM-TX-146

Change-Id: Ib70ed063bad1956681858ebbd0d97d8a31f25e83
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2025-05-20 03:10:14 -07:00
chuangcheng.peng cb98778ba6 demux: add alp/tlv feature [1/1]
PD#SWPL-208097

Problem:
add alp/tlv feature

Solution:
add alp/tlv feature

Verify:
not verified

Change-Id: Icdb23dd817216088fa45c44c64b3ba56a46ca39e
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-05-20 01:37:30 -07:00
chenyang.liu 8f7c7c4cf0 lcd: add lcd_resman_init to media_main [1/1]
PD#SWPL-213897

Problem:
lcd_probe fail,without rsvd mem

Solution:
add lcd_resman_init to media_main

Verify:
txhd2

Change-Id: If591c6910d982ca1b27d0877674057fdf6a6892a
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2025-05-20 01:00:03 -07:00
yang.zhou 604383457a uvm: uncompressed format doesn't need gpu realloc [2/2]
PD#SWPL-211950

Problem:
after modifying the nv12 format, the h264 process goes to
the ge2d copy, but the ge2d is not adapted to nv12, and
an error occurs during data copying.

Solution:
a compress member is added to decoder_para to determine
whether GPU reallocation is required.

Verify:
android-16

Change-Id: I640f5ceaf6fce3cf7b0146d8accc6fe26f6c9373
Signed-off-by: yang.zhou <yang.zhou@amlogic.com>
2025-05-20 00:59:40 -07:00
chen.xu b4939a8d63 video_composer: support NV12 src format [1/1]
PD#SWPL-211941

Problem:
need support NV12 src format

Solution:
support

Verify:
T5M

Change-Id: I6f4659102fc6d5877fa3bbb31c870ffc1afcda7e
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-05-20 00:59:31 -07:00
jialong.jiang f9da697e59 amdv: adjust g_vporch. [1/1]
PD#SWPL-212707

Problem:
adjust g_vporch.

Solution:
for 6.12, adjust g_vporch
from 0x48 to 0x70.

Verify:
s7d/s6

Change-Id: I8c91f01ab85be7f953e5eecac1fb16bfb55e84aa
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2025-05-20 00:59:17 -07:00
jiebing chen 7db1fec1c7 audio: suspend twice with internal codec [1/1]
PD#SWPL-211009

Problem:
pm soc and pm use the same time


Solution:
1. keep the pm soc use for codecs
2. remove cache sync when save in user setting

Verify:
t5c

Change-Id: Ie7ca104a2a5fab3fa945a3a7b6b6259a43dcedeb
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2025-05-20 00:59:09 -07:00
ruofei.zhao c85ab5d846 hdmitx: remove the aspect ratio to 64:27 resolutions [2/2]
PD#SWPL-211473

Problem:
resolutions with an aspect ratio of 64:27 are not supported,
validate_mode check failed

Solution:
remove the aspect ratio to 64:27 resolutions

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: Ib05a1b93672699e58431616de92a09c1bd3bb072
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-05-20 00:58:58 -07:00
jiebing chen 4f8c10a9aa Audio: sync tas5707 code from kernel 5.15 [1/1]
PD#SWPL-211009

Problem:
sync tas5707 code from kernel 5.15

Solution:
sync tas5707 code from kernel 5.15

Verify:
t7c

Change-Id: Ibe593c34a7b619d02322bd6c18cebfe95227d3c8
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2025-05-20 00:58:44 -07:00
xiang.wu1 564c0763e7 hdmitx: drm need pass frac_mode to tx [1/1]
PD#SWPL-213016

Problem:
drm not pass frac_mode value to tx driver,
In QMS mode, the frame rate with all decimal
points selected in Resolution is abnormal

Solution:
drm pass frac_mode value to driver

Verify:
s7d

Test:
DRM-TX-75

Change-Id: Id20d575764005bbdd561eca93c0a46d127b8a3b6
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2025-05-19 23:08:35 -07:00
chuangcheng.peng aacf9d2e91 demux: add dummy frontend [1/1]
PD#SWPL-158421

Problem:
Needs dummy fe.

Solution:
Support.

Verify:
AP222-S905y4

Change-Id: I5365656fa861fda6e6bb511f008a854f798a14e2
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-05-19 13:17:34 -07:00
ruofei.zhao be4c65dee2 hdmitx: add hdmitx diagnostic information [1/1]
PD#SWPL-197767

Problem:
need to add hdmitx diagnostic function

Solution:
add hdmitx diagnostic information

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: I8813659df1a8b6b789adea767aab934cbf68a9b9
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-05-19 06:39:51 -07:00
qing.zhang 8a45fd689d audio: vad back to trunk [1/1]
PD#SWPL-213894

Problem:
1. TV-96610 vad wake up automatically when str
2. TV-115829 vad not wake up when on/off far-field
3. TV-103977 vad data lost when dump
4. TV-107607 vad not wake up when power on
5. TV-80658  vad crash when reboot

Solution:
1. add memset vad buffer clear after asr handle done
2. add max count protection
3. modify buffer alloc for __memcpy
4. alloc continuse buffer only when vad probe
5. use static to save the point to avoid point not
update when transmission to asr

Verify:
verify by t5m

Change-Id: Ie1da149771c91d6c8fb038299dee3346897795af
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2025-05-19 03:33:39 -07:00
jinbiao 9d9c021746 mmc: Larger divisions to support lower modes or frequencies. [1/1]
PD#SWPL-212089

Problem:
Not support lower modes.

Solution:
Support Larger divisions.

Verify:
S5

Change-Id: I4be72616f014061e248bbe599d4e4b136a1ae1bf
Signed-off-by: jinbiao <jinbiao.ou@amlogic.com>
2025-05-18 14:59:08 -07:00