Commit Graph

8304 Commits

Author SHA1 Message Date
hai.cao 3bb3c85c19 video: non_linear can not be work when 1:1 [1/1]
PD#SWPL-204643

Problem:
1:1 non_linear can not work

Solution:
enable post scale en

Verify:
t6d

Change-Id: Ic4760eeda316a56e73a675c43fbbfba9eb5356ab
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-03-17 21:39:03 -08:00
can.zhang f7a2384b2d amdv: fix cur_valid_video_num value [1/1]
PD#SWPL-202297

Problem:
Not refersh value

Solution:
Add code

Verify:
Verified on s7d

Change-Id: I68e2a9515ad80d382ad3551ba151dc89d7f1a1f2
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2025-03-17 18:39:37 -08:00
chen.xu 08199e807c amlvideo2: S6 8G ddr screencap fail [1/1]
PD#SWPL-195269

Problem:
1.mmap not support over 4G case.

Solution:
1.use CMA mem.

Verify:
S6

Change-Id: Ic4cf7f8d50f8c2e7def222434b038af6e0f0adfd
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-03-17 17:44:23 -08:00
Jiacai.Liu 295d857186 linux: fix audio spdif suspend crash [1/1]
PD#SWPL-205397

Problem:
sc2/s7 suspend audio crash

Solution:
add continuous-clock in spdif-a

Verify:
local sc2/s7

Change-Id: Ie246f3c88dd8f1671d5c8d4ae9cfeedf12d14c14
Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
2025-03-17 03:25:35 -08:00
linfang.zhao 5fcaea5702 drm: fix the crash or no signal issue when exit netflix video play [1/1]
PD#SWPL-201633

Problem:
mode_changed flag of the new state is set according to brr_update flag
of the old state

Solution:
mode_changed flag of the new state is set according to brr_update flag
of the new state

Verify:
S7D

Test:
DRM-OSD-69

Change-Id: I95b5b0b78f5aa21a4eab2992911ca855f3ac11f3
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2025-03-17 11:08:56 +00:00
hai.cao 231e3582ab vpp: rdma table overflow [1/1]
PD#SWPL-203893

Problem:
rdma table overflow cause black screen

Solution:
post scale coef setting in video init

Verify:
t6d

Change-Id: I905b84b61709f2a13d0f710493a95813cc410817
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-03-17 11:10:30 +08:00
hai.cao 80b64c87f1 vpp: change local variablr large array to global variable [1/1]
PD#SWPL-203132

Problem:
change local variablr large array to global variable

Solution:
change local variablr large array to global variable

Verify:
s7d

Change-Id: I0e0e3d25496b7796c7368e20a4254d5746980a2b
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2025-03-17 11:10:05 +08:00
hai.cao bc63b2eac8 vpu: vpu early suspend reduce clk resume can not recover [1/1]
PD#SWPL-205898

Problem:
vpu early suspend reduce clk resume can not recover

Solution:
clk level be change when reduce twice clk

Verify:
t6d

Change-Id: Ie6976712d610048ac8d6b6743caa05a12620b8a7
Signed-off-by: hai.cao <hai.cao@amlogic.com>
(cherry picked from commit e9266406b66ced151a9a0f8a0d09d573f12ff74b)
2025-03-16 18:54:03 -08:00
mingyang.he a8657529c1 drm: combine libdrm meson_drm.h and kernel meson_drm.h [1/1]
PD#SWPL-199967

Problem:
include kernel meson_drm.h in libdrm

Solution:
combine libdrm meson_drm.h and kernel meson_drm.h

Verify:
sc2

Test:
DRM-OSD-44

Change-Id: Iec6b2ea1926a0696bd4f2b43f3237a23cdcfd21e
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
(cherry picked from commit c60eea1f4179796ba89519a1daf45e189589b7d7)
2025-03-14 00:26:54 -08:00
saisai.chang e5df389b1c audio: pdm mic has no sound [1/1]
PD#SWPL-198849

Problem:
PDM pin configuration conflicts with sdcard

Solution:
Refer to openLinux to reconfigure PDM pin

Verify:
g12b

Change-Id: Id17b4546953bf798d3027a3332c432f33e016423
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
(cherry picked from commit d15d2f87761a63d1975ccf7c184cd16768025e83)
2025-03-13 19:02:38 -08:00
bowen cheng 24619700dc hdmirx: t3 support std hibernate [1/1]
PD#SWPL-197114

Problem:
t3 support std hibernate

Solution:
t3 support std hibernate

Verify:
t3

Change-Id: Id7220766c94e6f3dfa302595c6d49c33ef7e90d9
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
(cherry picked from commit 3cea28471b1d5d80424ae39f5ae966520278d126)
2025-03-13 19:02:10 -08:00
chen.xu 62d7ae6b5e amlvideo2: screencap support random buffer num [1/1]
PD#SWPL-201711

Problem:
screencap need support random buffer num.

Solution:
support.

Verify:
T982

Change-Id: Icfe2d5d0e65837c164a113aefb3e0b249c5279e5
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2025-03-13 01:03:04 -08:00
Gaowei Zhao 6bb64b75b3 vdin: one buffer for vdin1 screenshot [1/1]
PD#SWPL-192542

Problem:
no enough DDR for 4 buffer.

Solution:
use only one buffer to  screenshot

Verify:
s7

Change-Id: If7ec8559796b8bbc24548368edfe41ef48f405c9
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2025-03-13 00:06:52 -08:00
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