Commit Graph

6027 Commits

Author SHA1 Message Date
Jian Cao 4ecc61dafa videodisplay: fix kernel panic caused by present fence. [1/1]
PD#SWPL-215901

Problem:
fix kernel panic caused by present fence.

Solution:
fix kernel panic caused by present fence.

Verify:
TXHD2

Change-Id: Ibd952eb7080f43d4d1241581c5678982bd00ed8e
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-06-19 05:29:45 -07:00
jian zhou 3a98cb06b2 audio: get DTS HBR audio by repetition period size [1/2]
PD#SWPL-212261

Problem:
get DTS HBR audio failed

Solution:
get DTS HBR audio by repetition period size

Verify:
SC2 soundbar

Change-Id: Iefcf19b3efea2e9e5848e179c3d1d3b740897412
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-06-19 03:10:41 -07:00
Shuai Li 569fe42a4d audio: bringup locker driver [1/1]
PD#SWPL-194346

Problem:
Audio locker is not ready for anti-drifting function.
More and more projects are waiting for it, such as
HDMIIN->EARCTX passthrough, EARCRX->SPEAKER.

Solution:
Bringup audio locker and verify the clk tuning method.

Verify:
SC2: ohm soundbar

Change-Id: Ibfa7a9e7e86e931f25a4edca29f17076c9c863fe
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2025-06-19 01:16:08 -07:00
saisai.chang e409f42b42 audio: resample clk should be consistent with tdm [1/1]
PD#SWPL-217722

Problem:
1.Abnormal recording of ref data for loopback

Solution:
1.resample clk and loopback clk should be consistent with tdm

Verify:
s4 & s4d

Change-Id: I129c60f5d3f3b49e872fb834c509c65a9d37c9e3
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2025-06-19 01:11:33 -07:00
Jian Hu 3d2019f852 pll: correct PLL enable sequence [1/1]
PD#SWPL-218527

Problem:
there is something wrong in PLL enable sequence

Solution:
let lock reset before enabling PLL

Verify:
t6d

Change-Id: I216f7dc88dd32439834c4095efb7428ab2e2e51c
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2025-06-18 17:47:38 -07:00
zhangyongdong 83df71ea5a DDR: fix dtb build warnings [1/1]
PD#SWPL-217438

Problem:
fix dtb build warning

Solution:
fix dtb build warning

Verify:
t7c

Change-Id: Icf820a3433dba0e5d0602ca8d80e2a2099162acb
Signed-off-by: zhangyongdong <yongdong.zhang@amlogic.com>
2025-06-18 04:05:19 -07:00
Hao Shi f79a41a5fe codec_mm: only check dmabuf heap when codec_mm_heap enabled [1/1]
PD#SWPL-211952

Problem:
IPC C3 build error.

Solution:
Only check dmabuf heap when codec_mm_heap enabled.

Verify:
C3

Change-Id: Ib76c398a5672b691a09ca3f63e81bc67a3c3fc9f
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2025-06-18 04:04:33 -07:00
chuangcheng.peng 5b2af56105 demux: fix section/ts callback cause crash [1/1]
PD#SWPL-215925

Problem:
section callback cause crash

Solution:
callback should adjust the filter status

Verify:
verified at project

Change-Id: I91d5f0454b476e36f9fa5b7cf1777455982c10c5
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-18 04:04:25 -07:00
yajing.li 41a1df4ed7 gpu: mark aobus register on mali450 [1/1]
PD#SWPL-213816

Problem:
mali450 not need read core num

Solution:
mark aobus register replace with 0

Verify:
mali450

Change-Id: Ic53859c0552771eb7070617d22a355de48538cec
Signed-off-by: yajing.li <yajing.li@amlogic.com>
2025-06-18 04:03:34 -07:00
yuhua.lin 776ab46023 video: cleanup log in pts_process [1/1]
PD#SWPL-217888

Problem:
cleanup log in pts_process

Solution:
complete it

Verify:
t6w

Change-Id: Ib6b639da808f12818543531e239996b200c8635b
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2025-06-17 23:53:53 -07:00
jian zhou aa250925bb audio: fix vad crash [1/1]
PD#SWPL-218573
PD#TV-166394

Problem:
wake_up_process+0x18/0x24
vad_wakeup_isr+0x68/0x9c [amlogic_snd_soc]
__handle_irq_event_percpu+0xc0/0x2fc
handle_irq_event+0x60/0xcc
root cause: in disable vad function, after set thread handle as null,
but in IRQ callback function still access thread handle.

Solution:
free IRQ first then set thread handle as null in disable vad function.

Verify:
t5m

Change-Id: I92897ce88ecb98ee75a058e557d697a3d36c6b76
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-06-17 23:53:46 -07:00
jiebing chen 1bf6c9db48 audio: fix noise when switch av in [1/1]
PD#SWPL-217587

Problem:
when switch av in, the spk output noise

Solution:
need invert tocodec ctrl bit[9]

Verify:
t6w

Change-Id: Icf440dca785d395587f76abf92f58eb4a10b44d2
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2025-06-17 06:06:01 -07:00
qing.zhang b7af22d7d1 Audio: kernel sync to k6.12 common [1/1]
PD#SWPL-216636

Problem:
1. audio sram init sequence

Solution:
1. move the sram init before and after some modules

Verify:
txhd2

Change-Id: I010f084a95c0215434e570ff45d44ffbae6cdc3d
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2025-06-16 08:06:23 -07:00
Yahui Han b8d71a1bb8 dvb: bugfix and improve dummy fe. [1/1]
PD#SWPL-216510

Problem:
1. cannot release resource when standby.
2. wrong fe id.
3. add bazel build

Solution:
1. not release resource in release function.
2. use dvbdev id as frontend device id.

Verify:
AP222

Change-Id: I5a81fd600b69bab52b1b2a3a943989cf8310868c
Signed-off-by: Yahui Han <yahui.han@amlogic.com>
2025-06-16 08:04:54 -07:00
zhangyongdong bd1aad2db6 DDR: add 16GB DDR support [2/2]
PD#SWPL-217438

Problem:
Need to add 16GB DDR support

Solution:
add 16GB DDR support

Verify:
t7c

Change-Id: Ia8ffd50ea5e469de7e9bb33d4393d0d13d43d023
Signed-off-by: zhangyongdong <yongdong.zhang@amlogic.com>
2025-06-16 03:41:36 -07:00
chuangcheng.peng 2a6a284baf demux: don't get info when filter not ready [1/1]
PD#SWPL-216552

Problem:
get info cause kernel crash

Solution:
don't get info when filter not ready

Verify:
verified at project

Change-Id: I48b661be8e6cb1d8b181a6d05da779d4f196ddfe
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-16 03:41:11 -07:00
jiebing chen 7076bc1c8c audio: add the MPEG format detect for pcpd monitor [1/1]
PD#SWPL-212105

Problem:
not support the MPEG format detect

Solution:
add the MPEG format detect for pcpd monitor

Verify:
t6d

Change-Id: I6349dbf1cbce3185ca71a09a221d64f6832fad66
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2025-06-16 01:00:25 -07:00
chen.xu c1c999a867 amlvideo2: fix screen cap 1080P then screen cap 720P fail [1/1]
PD#SWPL-216698

Problem:
screen cap 1080P then screen cap 720P fail

Solution:
only support screen cap 720P max.

Verify:
S6

Change-Id: Id2cfa4891769f46cfefb1e24f4dc3ef56f8d83a8
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-06-15 13:47:37 -07:00
yao zhang1 37583da4a6 dts: Fix timer Interrupt trigger condition for t5w & t5d. [1/1]
PD#SWPL-209811

Problem:
WARNING: Invalid trigger for IRQ27, assuming level low.

Solution:
Fix timer Interrupt trigger condition

Verify:
t5w/t5d

Change-Id: I949ca3fcb4ac734eea65abc94ec7c1af7dc0ebe8
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2025-06-14 19:59:35 -07:00
Hao Shi c563bef823 codec_mm: dump with dma-buf ino [1/1]
PD#SWPL-211952

Problem:
Dump with dma-buf ino.

Solution:
Get ino from dma-buf.

Verify:
sc2

Change-Id: I55a78ac98450c226b346edfd16eabc312ef7a43f
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2025-06-14 13:03:35 -07:00
saisai.chang 63f3abbc6a audio: disabled resample for g12a/g12b [1/1]
PD#SWPL-214528

Problem:
there is no base address for resample

Solution:
disabled resample

Verify:
g12a/g12b

Change-Id: I1d706ae15ebdd7b9d370b3ded66e0e628ec29d8b
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2025-06-14 07:23:37 -07:00
Pengcheng Chen d7ae19d2ef vpp: fix 3d play hange for s4 [1/1]
PD#IPTV-35088
PD#SWPL-217559

Problem:
set vd_mif_linear_reg.vd_if0_stride_1_f1 with mif_linear
not supported

Solution:
set vd_mif_linear_reg.vd_if0_stride_1_f1 with mif_linear
supported

Verify:
s4

Change-Id: Ica67fb641648b5fc700ac92b3e81457a59614528
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2025-06-14 07:19:38 -07:00
chuangcheng.peng 68f156d989 demux: tsind use tsind clk at s6 [1/1]
PD#SWPL-217819

Problem:
tsind can't get data

Solution:
tsind default use tsind clk not tsinb clk

Verify:
verified at s6

Change-Id: I0d61d82f3f02363fac9eda0e49681eb4a03d4254
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-14 03:03:28 -07:00
zijie.hong 611a3a301d vdin: t5m k6.12 sync code [1/1]
PD#SWPL-215877
PD#SWPL-215817
PD#SWPL-216190

Problem:
1) t5m rx sct_alloc panic
2) txhd2 av picture severe serrations
3) txhd2 rx log too much

Solution:
1) codec_mm_scatter subscript from 1 to 16, for UBSAN check
2) resolve vdin vfm t/b reverse
3) sync code from k5.15 to k6.12

Verify:
t5m/txhd2

Change-Id: Ib349500746a6faf7d780444e5e4cda046f39cc2e
Signed-off-by: zijie.hong <zijie.hong@amlogic.com>
2025-06-13 01:50:46 -07:00
qinglin.li 047d8f91af dmc_monitor: default mode exclude NNA [1/1]
PD#SWPL-217581

Problem:
default mode exclude NNA

Solution:
default mode exclude NNA

Verify:
local

Change-Id: I9fc56110e672fbb8916fa12d024f189f3e796926
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-13 01:21:51 -07:00
rong.wang 20b9efeda9 deinterlace: fix mode and type [1/1]
PD#SWPL-216805

Problem:
new mode in 6.12 not match correctly

Solution:
fix mode and type

Verify:
txhd2

Change-Id: I7c43265ac80d6547662d648f1b5414943d3be8de
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2025-06-12 22:56:12 -07:00
ruofei.zhao 922db5d630 hdmitx: ced check is disabled by default [1/1]
PD#SWPL-216434

Problem:
after setting a new resolution, performing ced check may cause some
TVs to not display

Solution:
ced check is disabled by default

Verify:
S905X5M

Test:
DRM-TX-78

Change-Id: I240fac0039c9e75e2f4fbf97022289534add1ffa
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2025-06-12 22:52:03 -07:00
jialong.jiang 98dd0775ad amdv: adjust g_vporch. [1/1]
PD#SWPL-215858

Problem:
abnormal vpu clk causes dolby to
display white point. vpu clk needs
to be adjusted to 667M instead of 1000M.
so there is no need to adjust g_vporch.

Solution:
revert 544085

Verify:
s7d/s6

Change-Id: I5fce774e0098a4c6cf73420f197585f27ef27527
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2025-06-12 22:48:01 -07:00
en.liu b3543a43a7 uvm: get priority from vframe [3/3]
PD#SWPL-208682

Problem:
customize composition strategy through priority

Solution:
get priority from vframe

Verify:
ross

Change-Id: I50ee3fec26ebc5bef8d01b3ca55debc5f5e17dd7
Signed-off-by: En Liu <en.liu@amlogic.com>
2025-06-12 04:40:55 -07:00
Pengcheng Chen 12b2b9125e vpp: vd1 clip reg modify to 0x3fffffff/0x0 under cvbs output [1/1]
PD#SWPL-216908

Problem:
vd1 clip reg modify to 0x3fffffff/0x0 under cvbs output

Solution:
set postblend_testpattern_status = VIDEO_TESTPATTERN_OFF

Verify:
s4

Change-Id: Ie820846298d15ae74b0cd8aaf74073eaaa33163e
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
(cherry picked from commit d1ee14666566962d4f2db916eb5408a5441e13ef)
2025-06-12 01:59:48 -07:00
yujun.zhang 98141964d6 drm: check NULL video plane before dereference [1/1]
PD#SWPL-216675

Problem:
NULL am_video_plane may be dereferenced for property
comparing.

Solution:
check NULL video plane before dereference.

Verify:
T7C

Test:
DRM-OSD-20

Change-Id: Id1f8d961bdb4512609e06107bf402ce06ba9b792
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2025-06-12 01:55:36 -07:00
jiebing chen f068f8e3ac audio: can't mute spk gpio when hdmi switch [1/1]
PD#SWPL-216728

Problem:
The spk can't mute, sound output high

Solution:
add the spk gpio mute

Verify:
sc2

Change-Id: I51469a1e480bfc43926048311f0840b4c5171b5e
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2025-06-12 01:51:39 -07:00
bangzheng.liu 33ba7b423c SoC s6 sc2: do not wake up screen when ffv wake up (k6.12) [4/5]
PD#SWPL-208510

Problem:
Google do not need wake up screen when ffv wake up, then
host driver would not exit early suspend mode. When katniss
do not record again, dsp side should start VWE but dsp would
not enter suspend mode.

Solution:
When katniss do not record again, audio hal would send mbox
to notice dsp, and then start VWE, if arm state is already
early_suspend, then check it dsp wakeup_flag is 1, then set
dsp to suspend state.

Verify:
s6 sc2

Change-Id: I962916e9d53a1ad0f7bb940d865a5ef1f93991f7
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
2025-06-10 20:15:42 -07:00
Chuan Liu 9e97b5c6cb clk: s7d: Fix fclk_div3 output exception [1/1]
PD#SWPL-216909

Problem:
fclk_div3 should output 667M, but s7d revA erroneously outputs 1G.

Solution:
Fixed

Verify:
S905X5M(revA)

Change-Id: I1a971ae2546800ea6458c46d1539fd7b8b6cc715
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2025-06-10 19:48:05 -07:00
chen.xu ea6b7154ee amlvideo2: fix amlvideo2.0 small window ACR dq fail [1/1]
PD#SWPL-216725

Problem:
fix amlvideo2.0 small window ACR dq fail

Solution:
support

Verify:
t5w

Change-Id: I09888656d3a5bbc82a4eaa5c02b2b3722136a4a2
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-06-10 19:47:44 -07:00
qinghui.jiang 2aea65d471 amvecm: sync trunk patch for reg setting [1/1]
PD#SWPL-215830

Problem:
sync trunk patch for reg setting.

Solution:
sync trunk patch for reg setting.

Verify:
sync trunk patch for reg setting.

Change-Id: Icd1585ced1c6c5acc412c77aa00afa2fffe93fc1
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-06-10 19:47:31 -07:00
chuangcheng.peng 8870bc08eb demux: add ioctl setting filter hw mem size [1/1]
PD#SWPL-214489

Problem:
add ioctl setting filter hw mem size

Solution:
add ioctl setting filter hw mem size

Verify:
verified at sc2

Change-Id: I95d5de4f5a0786c2d688f74400e45d883e1cb265
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2025-06-10 19:47:06 -07:00
yujun.zhang b043e186a1 drm: remove global am_drm_cvbs [1/1]
PD#SWPL-68318

Problem:
Global am_drm_cvbs in meson_cvbs.c

Solution:
Get each am_drm_cvbs_s from drm_connector instance

Verify:
SC2

Test:
DRM-CVBS-2

Change-Id: I2830ffcedeb3c707feca9e4cce5004a690b7445a
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2025-06-10 19:46:59 -07:00
Hao Shi fddb5c16f3 keeper: Shrinking the critical section [1/1]
PD#SWPL-214617

Problem:
Sleeping while keeper manager locked.

Solution:
Modify critical sections in codec_mm_keeper_mask_keep_mem.

Verify:
gxlx4

Change-Id: I58a7fbc0ca897b71760320e0fbe8ba94d77242af
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2025-06-10 19:46:37 -07:00
jian zhou 5358215be0 audio: force disable/enable ARC/eARC RX [1/1]
PD#SWPL-192392

Problem:
eARC RX discovery failed and missing disconnect uevent
when force disable/enable ARC/eARC RX.

Solution:
1.reset 5V when enable ARC/eARC RX
2.send disconnect uevent if disable ARC/eARC RX

Verify:
ohm soundbar

Change-Id: I29df65c4676746449ead508b21f514ad9710a474
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-06-10 04:00:38 -07:00
qinglin.li 7bb62f05e4 common_drivers: deps set null when not ddk build [2/2]
PD#SWPL-216327

Problem:
ddk module will build deps when mix build

Solution:
deps set null when not ddk build

Verify:
local

Change-Id: I7a694f1c86690dcd38c9dc7b15ce80a7435930c6
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2025-06-10 03:59:57 -07:00
qing.zhang 55a6f4cd00 Audio: kernel sync to k6.12 dts [2/2]
PD#SWPL-216636

Problem:
1. kernel sync dts

Solution:
1. sync arm32 and arm64
2. make arm32 the same as arm64 for common function

Verify:
txhd2

Change-Id: I834a0786daabd3cd80fd7a8c7f202fe71a26cc02
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2025-06-10 03:59:17 -07:00
Yongjie Zhu df2add5dae uvm: update debug info [1/1]
PD#SWPL-216169

Problem:
uvm debug info print too much

Solution:
change the debug info level
sync CL:https://scgit.amlogic.com/#/c/510359/

Verify:
T7c+android16

Change-Id: Ia8fee4c07cb6d89dee66ad6db089dfc8eec41a77
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2025-06-10 03:59:09 -07:00
qing.zhang c12d8a653b Audio: kernel sync to k6.12 common [1/2]
PD#SWPL-216636

Problem:
1. kernel sync

Solution:
SWPL-208759 G12A/B pinctrl
SWPL-162865 tl1 power dapm
SWPL-207787 spdiflb clk error
SWPL-186208 audio module cut
SWPL-208302 mixer function for t6w
SWPL-146159 hibernate feature
SWPL-206535 bypass resample
SWPL-208759 kernel build in support with k5.15
SWPL-163105 earc rx for s7d
SWPL-202006 av mute for headphone
SWPL-207586 earc tx for t6w

Verify:
txhd2

Change-Id: I07fcb7c55dee73c9da1e50ddd9001c80fea39f25
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2025-06-10 03:58:34 -07:00
Jian Cao ecbdb6bc60 vpp: lowlatency: add rdmd lowlatency line check [1/1]
PD#SWPL-204261

Problem:
display anomaly caused by frame over-field

Solution:
add rdmd lowlatency line check

Verify:
t5m

Change-Id: I14accc686b1c74160a4945d6fb5b1e1c331036f1
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-06-09 09:08:31 -07:00
chenyang.liu f92ddcf1c2 lcd: separate pll and clk config [2/2]
PD#SWPL-215298

Problem:
some variables such as vclk_sel and xd should only have one copy

Solution:
1.separate pll and clk config
2.separate pll and clk data
3.only have one clk config for one screen
4.could have two pll config for one screen

Verify:
t6w

Change-Id: I32f9944e99dc41b2feba66896b578a986ba87475
Signed-off-by: chenyang.liu <chenyang.liu@amlogic.com>
2025-06-09 06:57:24 -07:00
Junyi Zhao edb035653b hifi pll: fix txhd2 hifi pll [1/1]
PD#SWPL-215942

Problem:
hifi pll can't be locked

Solution:
fix it

Verify:
txhd2

Change-Id: Ie53e26e27621c504d55431939f1cd4aa9685dac4
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2025-06-09 06:56:44 -07:00
congyang.huang 6a7e56b6c6 drm: dummy connector implement [1/1]
PD#SWPL-212138

Problem:
Optimize dummy connector

Solution:
integrate dummy_l and dummy_panel into one connector
move modeseting from crtc_enable to encoder_enable

Verify:
s7d

Test:
DRM-OSD-26

Change-Id: I0f21c8a3af5128287e99be6099e060d87f98cf36
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2025-06-09 06:56:29 -07:00
Jian Cao cd2cbed00b vpp: add nv16 and nv61 support [1/1]
PD#SWPL-204831

Problem:
need nv16 and nv61 format

Solution:
add this support

Verify:
t6d

Change-Id: I2994091865dac00e62b8cde8e629746005e93478
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-06-08 23:11:22 -07:00
Jian Cao edaef7cee7 vpu_security: add power management callbacks [1/1]
PD#SWPL-200812

Problem:
resume from suspend, play media first time, TV show garbage

Solution:
need to implement power management callbacks
during system suspend, resume, hibernate, and restore cycles.

Verify:
t6d

Change-Id: I1f07afa5c2387434e1709f9ac2575cfe86c57f9a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2025-06-08 23:11:15 -07:00