Commit Graph

8291 Commits

Author SHA1 Message Date
hai.cao dba1cdcbe8 vpu: add vpu clk control in early suspend [1/1]
PD#SWPL-204510

Problem:
early suspend need reduce vpu clk

Solution:
early suspend reduce vpu clk

Verify:
t6d

Change-Id: I2c4dedf9ebbeee02643ce94c2469e3cab3b4519f
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-03-11 21:04:20 -08:00
nengwen.chen 7a45af816b dtv_demod: fix dvbt2 CICAM by ts clock 5.43 to 6.75MHz (V3.6.020) [1/1]
PD#TV-149772
PD#SWPL-204573

Problem:
AV mosaic when CI card plugin.
France SmardTV CANAL+.

Solution:
fix dvbt2 CICAM by ts clock 5.43 to 6.75MHz.
AMLDTVDEMOD_VER "V3.6.020".

Verify:
T5W/T6D.

Change-Id: I64278343f218f6b40edad0e7e5ecf89b8da72870
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2025-03-10 15:18:17 +08:00
hui.an e5a8401087 dtv_demod: fix dvbs blind scan lose TP for rda5815m (V3.6.019) [1/1]
PD#SWPL-203280
PD#TV-147383

Problem:
blind scan can not find channels for rda5815.

Solution:
agc speed:
bit0,bit1,bit2 of reg 0x912 is changed to 1.
AMLDTVDEMOD_VER "V3.6.019"

Verify:
T5D.

Change-Id: I415ef48fd9cd29a96d2da6456fb31bf459f8140c
Signed-off-by: hui.an <hui.an@amlogic.com>
2025-03-10 15:18:07 +08:00
nengwen.chen a3af7984cb dtv_demod: get dvbs/s2 if config from get_if_frequency (V3.6.018) [2/2]
PD#SWPL-202627

Problem:
get dvbs/s2 if config from get_if_frequency.

Solution:
get dvbs/s2 if config from get_if_frequency.
AMLDTVDEMOD_VER "V3.6.018"

Verify:
T6D.

Change-Id: I5ceec4b1313a3de41e3e20ab9e1c60ef99b5348b
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2025-03-10 15:17:58 +08:00
nengwen.chen 619144dae5 dtv_demod: fix dvbs auto sr config(cause unlock) (V3.6.017) [1/1]
PD#SWPL-201734
PD#TV-149375

Problem:
demod can not lock when signal lose and then recovered.

Solution:
fix dvbs auto sr config(disable auto sr 0x922 = 0xc8 to 0xcc).
AMLDTVDEMOD_VER "V3.6.017".

Verify:
T5D/T6D.

Change-Id: Ia5de4b39bda11f39d7afa1928d6e2646cac61019
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2025-03-10 15:17:28 +08:00
qinghui.jiang 5e93b93e46 amvecm: add ioctl for params [1/1]
PD#SWPL-197567

Problem:
Add IOC interface for parameter access.

Solution:
Add IOC interface for parameter access.

Verify:
T950D5

Change-Id: I8ff2f6b409c65703a4aec765555853fea088ff2a
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-03-06 00:24:21 -08:00
can.zhang 64ae87eeaa amdv: add IOC Interface to replace direct module parameter access [1/1]
PD#SWPL-197568

Problem:
need add IOC Interface

Solution:
add code

Verify:
sc2

Change-Id: Iff33dee840ba66e259170b0947b00e355d1b18fe
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-03-06 00:24:12 -08:00
mingyang.he 8c2a5de15e drm: set connector force by ioctl instead of write node [1/1]
PD#SWPL-197569

Problem:
write/read nodes in libdrm is no longer allowed

Solution:
use ioctl instead of the connector's status node function

Verify:
sc2

Test:
DRM-OSD-44

Change-Id: I6a2433854f69e5be993be8d7455532fe5c178b45
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-03-06 00:24:02 -08:00
hai.cao 377cbf1ec6 vpp: add ioctl for some module parameters [1/1]
PD#SWPL-198205

Problem:
add ioctl for some module parameters

Solution:
add ioctl for some module parameters

Verify:
all platforms

Change-Id: I0b8203f3ff32f05efa57e59ce37ceb261c6f9f8a
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-03-06 00:23:52 -08:00
min.zhu 2bbdb1ba73 hwc: fix compile error when enable VOUT2 or VOUT3 [6/6]
PD#SWPL-189018

Problem:
enable vout server and compile error

Solution:
enable vout server for dualdisplay

Verify:
raman

Change-Id: Id5df8219ef4951731010aae97068dcdc8abc20bb
Signed-off-by: min.zhu <min.zhu@amlogic.com>
(cherry picked from commit a4b7918650ffa9c69fb5fd22a055dc15833bdf4e)
2025-03-05 16:44:29 -08:00
yujun.zhang 8369138ab4 drm: add property for max out size for each crtc [1/1]
PD#SWPL-190777

Problem:
Viu2 can only output 1080p because its scaler can
support max 1080p output.

Solution:
config crtc_max_out_size prop for each crtc

Verify:
S6

Test:
DRM-OSD-9

Change-Id: I9eb2cfc4b26e91cae9a6a5f578d5c97b24c3fde7
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2025-03-05 16:44:10 -08:00
yujun.zhang 85db41fd29 drm: split drm dtsi for s905x5 and s905d5 [1/1]
PD#SWPL-200749

Problem:
x5 only has one display

Solution:
split drm dtsi for s905x5 and s905d5

Verify:
s6

Test:
DRM-OSD-15

Change-Id: I174f48acd90b6df6d7c80289374c1bc13ac60cc3
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2025-03-05 16:43:54 -08:00
Chuan Liu 83bf3326cf drm: s6: Set the default frequency of vpu_clkc to 250M [2/2]
PD#SWPL-190802

Problem:
Due to the inconsistency between the rate of vpu_clkc configured in the
kernel and uboot, when setting the rate of cpu_clkc in the kernel, there
is a clock source switch, resulting in intermittent glitches in the
output clock of vpu_clkc, ultimately causing screen flickering.

Solution:
vpu_clkc is set to 250M in both uboot and kernel.

Verify:
S6

Test:
DRM-OSD-9

Change-Id: I7cbbe10c987326b48c6f7a8158d8fce50b75ee03
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
(cherry picked from commit c3dcf04f0f134f0aad0471854fa943b4ca40fbcf)
2025-03-05 16:43:24 -08:00
chen.xu 4be0edf085 amlvideo2: support CMA mem [1/1]
PD#SWPL-195269

Problem:
When using CMA mem, due to a logical exception, it resulted in
going to the logic of codec mm memory allocation.

Solution:
1.modify support CMA mem.

Verify:
S6

Change-Id: I341a2de2317746e33fc950c1b05cd670b6329d51
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-03-05 16:42:50 -08:00
haitao.liu 93f3e6f013 vdin: vdin1 vb2 allocates memory from vdin1_cma [2/2]
PD#SWPL-194830

Problem:
The CMA for codec_mm only has 160MB. When using /dev/video71,
the vb2 allocates memory from codec_mm, which can cause other
modules to fail in applying for contiguous memory.

Solution:
vdin1 vb2 allocates memory from vdin1_cma

Verify:
t982

Change-Id: I75f06bdc9284fc99634bbcb584b7cf7fab6917b8
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
(cherry picked from commit 46e1d2b77ee04beabcd12d03d1f45fafe30df666)
2025-03-05 16:42:36 -08:00
xiangyang.yan 61ce2523fe eth: optimize suspend/resume when no phydev or no cable [1/1]
PD#SWPL-203788

Problem:
reduce power when no phydev or no cable

Solution:
optimize suspend/resume when no phydev or no cable

Verify:
HW

Change-Id: Ie1cf8fbdc6e57fad447a99f2e910aca960253769
Signed-off-by: xiangyang.yan <xiangyang.yan@amlogic.com>
2025-03-05 15:21:28 +08:00
Wayne Zhang 1364186741 SPI: add flash ID [1/3]
PD#SWPL-202773

Problem:
need nor flash support.

Solution:
add id support.

Verify:
T5W

Signed-off-by: Wenbing Yu <wenbing.yu@amlogic.com>
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
Change-Id: I0c2c11139a32aa03d46ff3ca70c7c2e0368667f2
Signed-off-by: Wayne Zhang <wayne.zhang@amlogic.com>
2025-02-26 06:15:49 -08:00
qinghui.jiang 19a7bc7284 amvecm: modify cm init reg method [1/1]
PD#SWPL-198874
PD#SWPL-201243

Problem:
need to write init regs directly.

Solution:
modify code flow for cm init.

Verify:
t7c

Change-Id: I197c8b0af2c4268c9bef11aab4beb39befec29c8
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2025-02-25 20:35:32 -08:00
zhan.wang 028ca86a00 amvecm: pi & safa reg control [1/1]
PD#SWPL-201224

Problem:
Both pq and vpp control pi_en

Solution:
pq don't control pi_en reg

Verify:
verify on s7d

Change-Id: Ib33e435742c8bf909accf94e7728a7ef6294d891
Signed-off-by: zhan.wang <zhan.wang@amlogic.com>
2025-02-25 02:39:24 -08:00
zhou.han c6e1625b0c hdmitx: Optimize the hdr_priority process on the Linux [1/1]
PD#SWPL-197215

Problem:
On Linux, after switching the UI to SDR and rebooting,
the output remains HLG. The reason is that the hdr_priority
did not clear the HLG status in hdr_info, causing the system
to still assume HLG is supported after reboot.

Solution:
When the hdr_priority value is 2, it is necessary to clear
the HDR10 and HLG status.

Verify:
yocto

Test:
DRM-TX-34

Change-Id: I2f4e09bfc0b5452f4b2ee90beec6835ee3d2b539
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2025-02-20 19:31:59 -08:00
hai.cao 62e807d802 rdma: buf overflow cause crash [1/1]
PD#SWPL-201720

Problem:
buf overflow cause crash

Solution:
set index to 0 when buf overflow

Verify:
s7

Change-Id: I690b199bc8631afd5ae53a1a772af3a8f7bcbbe3
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-02-20 18:35:57 -08:00
xiaoya.lin 16dce722ab dts: Remove reserved-memory of encmem&vc9000e [1/1]
PD#SWPL-195391

Problem:
Optimize memory

Solution:
dts: Remove reserved-memory of encmem&vc9000e

Verify:
S5&S6

Signed-off-by: xiaoya.lin <xiaoya.lin@amlogic.com>
Change-Id: Ia62910e36c08dea7e4e345392e6a0af7a0e2c792
(cherry picked from commit f464efb58c5a0df2fe1160b0805687d6888cd130)
2025-02-20 03:37:04 -08:00
Evoke Zhang 56ba3489d9 lcd: tcon: optimize bin_path debug print [1/1]
PD#SWPL-202115

Problem:
lcd tcon bin_path debug print can be optimized

Solution:
optimize lcd tcon bin_path debug print

Verify:
ay301

Change-Id: Id8165d9d3284d6cd7a645e7f154530fa0422cfa6
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2025-02-20 17:17:58 +08:00
dian.shao a252d3a641 usb: t6d resume err [1/1]
PD#SWPL-199440

Problem:
{Yocto-sdk}[T6d][stability-test]
t6d autosuspend test 1.5 h
amlogic-usb crash

Solution:
Refine crg udc remove.

Verify:
br301.

Change-Id: I1d62ed542e72cc5294736c5933669e35e218119e
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-02-20 17:17:47 +08:00
jinbing.zhu 24bc2ad841 amvecm: hdr rdma table size set small [1/1]
PD#SWPL-199722

Problem:
hdr rdma table size set small

Solution:
table size set big

Verify:
s7d

Change-Id: I57a8599e0a05c5fc8334135176e80b706cd910cd
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-02-20 17:17:36 +08:00
Zelong Dong f82bcc98aa ir: update IOCTL cmds [1/1]
PD#SWPL-195993

Problem:
move ir header file to include/uapi/ & update IOCTL cmds

Solution:
move ir header file to include/uapi/ & update IOCTL cmds

Verify:
sc2

Change-Id: Ib98ccb26746a67d6bc040666101193bd104eee6a
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2025-02-20 17:17:24 +08:00
qiankun.wang 3f4d70e0ad IOTM: timer will only be created once [1/1]
PD#SWPL-198946

Problem:
After resume, the timer is created multiple times
due to the reinitialization of the IOTM.

Solution:
The timer will only be created once.

Verify:
t6d

Change-Id: Ie4c6b20f4c06ee72e558c77d1df115897a255811
Signed-off-by: qiankun.wang <qiankun.wang@amlogic.com>
2025-02-20 17:17:12 +08:00
Haotian Guo cc9c1eed05 tvafe: fix vbi memory leak when suspend [1/1]
PD#SWPL-198649

Problem:
When Yocto suspended, didn't close tvafe

Solution:
release memory when suspend

Verify:
t5w

Change-Id: I0ec0e7979d5ec8cab4a81fd39fe613e9b9968d13
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2025-02-20 17:17:01 +08:00
mingyang.he d2c54aba1c drm: drm fill the video_frame instead of video composer [1/1]
PD#SWPL-197006

Problem:
No Dolby information is transmitted when the video
is played in portrait

Solution:
drm fill the video_frame

Verify:
s7d

Test:
DRM-OSD-20

Change-Id: I564e9c8e5c2e478d8be4e895076fb9111720aa0f
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-02-20 17:16:49 +08:00
yajing.li af6615f3c2 uvm: add interface for info sync [1/1]
PD#SWPL-197008

Problem:
metadata miss after do rotation with ge2d

Solution:
add interface for info sync

Verify:
Yocto 5.15

Change-Id: I935e4930fea97455d77210e886be93d88e01ffbf
Signed-off-by: yajing.li <yajing.li@amlogic.com>
2025-02-20 17:16:38 +08:00
jinbing.zhu b2bdefe118 amvecm: rdma read/write optimize [1/1]
PD#SWPL-176960

Problem:
rdma read/write optimize

Solution:
rdma read/write optimize

Verify:
t5m

Change-Id: I0358815d33cd22eb06f4ea77ee27c47f61a146d4
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2025-02-20 17:16:23 +08:00
hai.cao 26e360f1e8 rdma: for rdma optimize miss spell [1/1]
PD#SWPL-198876

Problem:
define error spell

Solution:
fix it

Verify:
all chip

Change-Id: If12346cc5693557cff3db09352621bb39c606f5a
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-02-20 17:16:13 +08:00
haitao.liu d5b87fdf9a vdin: Set the maximun number of buffers for vdin to 16 [1/1]
PD#SWPL-195738

Problem:
Need more video latency for avsync in MS12.However,the maximun
buffers supported by VDIN is limited by the code.

Solution:
Modify the VDIN code to support 16 buffers

Verify:
t6d

Change-Id: I99dfd118d7ba7e1206a7d1f04ebbab0b0f7e938b
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2025-02-20 17:16:03 +08:00
yayun.shi 7f5e67dd93 audio: AVsync test under HDMI source of ARC is failed [1/1]
PD#SWPL-195738

Problem:
The audio is more than 25ms later than the video.
Video buffer is small.

Solution:
Increase vdin buffer size.

Verify:
yocto-t6d

Change-Id: I17b201eafc1541ad1694380d3a10de2abe8496c1
Signed-off-by: yayun.shi <yayun.shi@amlogic.com>
2025-02-20 17:15:50 +08:00
mingyang.he b57a9d0448 drm: optimize am_meson_logo_init for hibernation [1/1]
PD#SWPL-194158

Problem:
logo data displayed during the kernel phase after
wakeup of hibernation has been tainted

Solution:
use cma_alloc to migrate the tainted data and
reallocate the logo memory and set it to 0

Verify:
s7

Test:
DRM-OSD-2

Change-Id: Id8aa36b7b69a92321d793d7a8e775da2d9416cdb
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2025-02-20 17:14:43 +08:00
yicheng shen dab54ae636 hdmirx: optimize timer execution logic [1/1]
PD#SWPL-197246

Problem:
hdmirx timer executed twice causing panic

Solution:
optimize timer execution logic

Verify:
T5W

Change-Id: Ida3f688e8c6a533b35ac29a8b38181cffeca1e3f
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2025-02-20 17:14:28 +08:00
qiyao.zhou dc9675914a vc: add use_low_latency_en for video [1/1]
PD#SWPL-198635

Problem:
Need config low_latency mode by interface.

Solution:
Add config flow in videodisplay.

Verify:
txhd2

Change-Id: Idac30e2fb9f5eebc4b2823d7769c08d0106aa747
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2025-02-20 17:14:17 +08:00
zhenyu.gao a89518c964 yocto: CF1 Optimize memory configuration of bp201-lm [1/1]
PD#SWPL-187526

Problem:
bp201-lm needs to reduce memory usage

Solution:
Reduce the size of each CMA partition

Verify:
bp201-lm

Signed-off-by: zhenyu.gao <zhenyu.gao@amlogic.com>
Change-Id: Ib431ca90e8a370aad70284ed67696595050dbfb0
2025-02-20 17:13:27 +08:00
zijie.lin 8191763386 bl: pwm ctrl before bl on [1/1]
PD#SWPL-169836

Problem:
pwm_vs after bl_on because pwm_vs maybe will
slow one frame after set bl_pwm_ctrl

Solution:
set bl_pwm_ctrl before bl_on_delay

Verify:
t5m

Change-Id: I749c30605f9e1cb787fc14d09ced380107aabc0a
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2025-01-01 23:23:10 -08:00
luke.liu 824a177cf6 s7: std set arm32 secmon nosave [1/1]
PD#SWPL-197455

Problem:
s7 seurmem nosave

Solution:
use register api set

Verify:
s7

Change-Id: Iace91cce1b45aaa446b0d8a2012ce6d11e0cd936
Signed-off-by: luke.liu <luke.liu@amlogic.com>
2025-01-01 23:15:41 -08:00
jian zhou 72bbe1cebf audio: fix earc rx crash warning [1/1]
PD#SWPL-198561
PD#OTT-71761

Problem:
Call trace:
dump_backtrace+0x0/0x1e4
show_stack+0x24/0x34
dump_stack+0xbc/0x108
___might_sleep+0x100/0x110
__might_sleep+0x54/0x98
mutex_lock+0x2c/0x68
snd_pcm_stop_xrun+0x2c/0xb0
earcrx_timer_func+0x94/0xac [snd_soc]
call_timer_fn+0xc0/0x1ac
expire_timers+0x74/0x164
root cause: in spin lock irqsave section code, there is mutex called.

Solution:
1.keep nonatomic as true.
2.trigger xrun in work task, not in timer function.

Verify:
sc2

Change-Id: Idde8f3bce545c55f6a9bf20a6a5903feac290f9e
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2025-01-01 23:00:34 -08:00
zhou.han 16f6ad368d hdmitx: Optimize the hdmitx clk source switching process [2/2]
PD#SWPL-174933

Problem:
hdmitx encp/pixel clk is directly configured by the pll analog path.

Solution:
Add flag: clk_analog_path, which is 1 by default.
1:Analog frequency division
0:Digital frequency division

Verify:
s7d/s7

Test:
DRM-TX-78

Change-Id: I22e58995b7e073e7458531827ea9bb360402e058
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2025-01-01 22:57:36 -08:00
zhenteng.tian a94b94e442 dp: check if buf_mgr is changed when set frame. [1/3]
PD#SWPL-195524

Problem:
dp does not drop the last interlace frame

Solution:
check if buf_mgr is changed when set frame

Verify:
SC2/T6d

Change-Id: I7f87183af13654704ab66aac7111ad2a7382d698
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2025-01-01 22:56:50 -08:00
gerrit autosubmit af787d00b2 Merge "AFD: add print info for UD param [3/3]" into amlogic-5.15-dev 2025-01-01 22:56:30 -08:00
qiyao.zhou 94f09a83ab AFD: add print info for UD param [3/3]
PD#SWPL-195524

Problem:
add print info for UD param.

Solution:
add print info for UD param.

Verify:
SC2/T6d

Change-Id: I45f191a7713cd12c4fd5430a0e600a4073893aca
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2025-01-01 22:56:08 -08:00
dian.shao d0a50675e4 usb: crg udc vmap leaks [1/1]
PD#SWPL-185878

Problem:
vmap allocation fail.

Solution:
Don't use devm_ioremap.
Release in remove.

Verify:
t950s

Change-Id: Ie3bd5a842b00f238f0f045f0441349e8556c1155
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2025-01-01 17:50:55 -08:00
Haotian Guo 01d1028b3f tvafe: add txhd2 config [1/1]
PD#SWPL-197636

Problem:
lack txhd2 config

Solution:
add txhd2 config

Verify:
txhd2

Change-Id: Ifb49bf08ec771649af27466eb8f39bbfd969d70f
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2025-01-01 17:45:35 -08:00
chao.zhang 745160f613 pwm table: fix cpu pwm table by clk to 24mhz [1/1]
PD#SWPL-195671

Problem:
pwm clk switch to 24mhz cpu pwm tbale need update

Solution:
fix regulator table

Verify:
t6d

Change-Id: Id47b9089e38f87c63949c823887990b4b99cd316
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2025-01-01 17:43:43 -08:00
chao.zhang 88d8e527ec pwm table: fix cpu pwm table by clk to 24mhz [1/1]
PD#SWPL-195662

Problem:
pwm clk switch to 24mhz cpu pwm tbale need update

Solution:
fix kernel cpu regulator
refer 500710;

Verify:
s7d

Change-Id: Iaa455050e209476d0a1bfdae28277fcd2d47b0ab
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2025-01-01 17:37:07 -08:00
chao.zhang f251ff368b pwm table: fix cpu pwm table by clk to 24mhz [1/1]
PD#SWPL-194956

Problem:
pwm clk switch to 24mhz cpu pwm tbale need update

Solution:
fix kernel cpu pwm table

Verify:
s7

Change-Id: I88de9b3ec8d3bd45482331c13edaf0f7e62d5027
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2025-01-01 17:31:32 -08:00