Commit Graph

3289 Commits

Author SHA1 Message Date
yiting.deng 5774983db9 clk: s7 hifi0/hifi1 clk configuration [1/1]
PD#SWPL-137113

Problem:
hifi/hifi1 clk need support 491520000, 491520000,
1806336000

Solution:
add hifi/hifi1 clk para to support 491520000, 491520000,
1806336000

Verify:
ptm

Change-Id: I1bd297c8661d5e02a8bbb6e857b133dc2eb99561
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
junyi.zhao 83d1999010 pwm: add pwm driver for s7 [1/1]
PD#SWPL-135758

Problem:
there is no s7 pwm driver

Solution:
add s7 pwm driver

Verify:
s7 pxp

Change-Id: I794ec36605b1241e4a3fabddd4012877c73a490c
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2024-01-22 12:48:43 +08:00
mingyang.he 5964444dbf drm: ptm s7 drm bringup [1/1]
PD#SWPL-135805

Problem:
need drm support for s7 bringup

Solution:
add drm support for s7 bringup

Verify:
ptm

Test:
DRM-OSD-96

Change-Id: I28960a8ccb75240b8abbae2ee343f412260e9de8
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-22 12:48:43 +08:00
qinglin.li cebb95ab7e s7: s7 dmc pxp bring up [1/1]
PD#SWPL-135753

Problem:
s7 dmc pxp bring up

Solution:
s7 dmc pxp bring up

Verify:
local

Change-Id: Iebb8d1efd981478356720222ba55dd0daf346f23
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng 1a55a1607d clk: specifies s7 clock name and CLKID [1/1]
PD#SWPL-137984

Problem:
need specifies s7 clock name and CLKID

Solution:
fix it

Verify:
ptm

Change-Id: Ia9e3d126d275252ece4c76b6b98450d9c2707406
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
qinghui.jiang 88951c5fa9 amvecm: s7 pxp bringup [1/1]
PD#SWPL-135077

Problem:
s7 pxp bringup

Solution:
s7 pxp bringup

Verify:
s7

Change-Id: If46d675fa1d58a174a03263d501eaac7f78dd0bd
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-01-22 12:48:43 +08:00
yuhua.lin 315c2fa2bf ge2d: add ge2d support for s7 [1/1]
PD#SWPL-135795

Problem:
s7 ge2d bringup

Solution:
complete it

Verify:
ptm

Change-Id: I0dde3ae2d12aad5a5359d797832bd90068ef8d91
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-01-22 12:48:43 +08:00
pengzhao.liu 0a4fac154e video: add video support for s7 [1/1]
PD#SWPL-135794

Problem:
s7 video bringup

Solution:
complete it

Verify:
ptm

Change-Id: Ie00823bdc5cb95807c3ed1e54bfa2fa37be6a91c
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2024-01-22 12:48:43 +08:00
yuhua.lin 1a599c6555 osd: add osd support for s7 [1/1]
PD#SWPL-135793

Problem:
s7 osd bringup

Solution:
complete it

Verify:
ptm

Change-Id: I219d85129ece3a531b9f9a9fa7c540ee4890e6b3
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng bc85c61d23 clk: add s7 gp1_pll 852M [1/1]
PD#SWPL-137032

Problem:
gp1_pll donot set 852M, result mali clk set failed, then it lock
hifi_pll

Solution:
add 852M para, delete unnecessary clock parameters in gp1_pll,
delete hifi_pll configuration in mali

Verify:
ptm

Change-Id: I7f8e87c69ce639c487ea07d1acfcd566198f3f3a
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng caf17e2c80 clk: fix s7 clk configuration [1/1]
PD#SWPL-136729

Problem:
1.need add clk flag
2.fix hifi1_pll init_regs, hifi_pl, gp0_pll calculation is
inaccurate due to the div2p5_en bit

Solution:
1. add flag
2. set dic2p5_en bit to 0, recalculate pll parameters

Verify:
ptm

Change-Id: Ia147308815d5a3cf568f11c4b15a047d3f7b20d6
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
yuhua.lin 849a6d6704 s7: add support for codec_io/canvas/rdma [1/1]
PD#SWPL-135792

Problem:
s7 codec_io/canvas/rdma bringup

Solution:
complete it

Verify:
ptm

Change-Id: Iea6cf27abb32e332ca76856d3ccb6dc9c219eac5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-01-22 12:48:43 +08:00
yuhua.lin 8e52cde7d6 vpu: add support for s7 [1/1]
PD#SWPL-135799

Problem:
s7 vpu_top bringup

Solution:
complete it

Verify:
ptm

Change-Id: I90f1b59d2654d5937ded6497876f0276e6ac270e
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng 586d413b41 clk: vdec set 800M frequency [1/1]
PD#SWPL-135101

Problem:
vdec set 800M frequency fail

Solution:
fix fclk_div2p5 configuration

Verify:
pxp

Change-Id: Iabb813b09b5059b06923781fcb49ab7074c035bb
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
yiting.deng 24fbbcfdb8 clk: s7 kernel pxp clk bringup [1/2]
PD#SWPL-132405

Problem:
s7 kernel pxp clk bringup

Solution:
s7 kernel pxp clk bringup

Verify:
pxp

Change-Id: I9905c650ffc6e39d22c441d5fef4f89a78f10e3a
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-01-22 12:48:43 +08:00
hongyu.chen1 82db98ad69 S7: add power domain. [3/3]
PD#SWPL-131629

Problem:
s7 need power domain.

Solution:
add power domain in kernel.

Verify:
pxp

Change-Id: I4ce47b7de5d734084356a08fc1fdbebe665253ac
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2024-01-22 12:48:43 +08:00
Huqiang Qin c7bd1b3240 pinctrl: support gpio/pinmux for s7 [1/1]
PD#SWPL-131121

Problem:
S7 PxP Bringup.

Solution:
S7 PxP Bringup.

Verify:
PxP

Change-Id: I6cfd05e9af683eb5e3a488388ac76852ca740d43
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-22 12:48:43 +08:00
nengwen.chen 8bcaaa6599 atv_demod: fix scan audio detect and frequency sync (V3.06) [1/1]
PD#SWPL-154153

Problem:
fix scan audio detect and frequency sync.

Solution:
fix scan audio detect and frequency sync.
AMLATVDEMOD_VER "V3.06".

Verify:
T5M/TXHD2.

Change-Id: Id3525e8b4ba673e036a3f6d64ab1afd26a0f2f4d
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-01-19 18:09:06 -07:00
Wanwei Jiang 9593e19a01 audio: fixed kernel panic [1/1]
PD#SWPL-154489

Problem:
kernel panic

Solution:
modify the type of the kunmap function parameter to struct *page

Verify:
soddy

Change-Id: If7e6aebfc5f423061af4af65a3b25ca802dcc4ea
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-19 02:45:35 -07:00
qinghui.jiang edc2fe5aeb amvecm: lc flash for special pattern [1/1]
PD#SWPL-153056

Problem:
range detect threshold not fit.

Solution:
modify threshold as test pattern.

Verify:
t5m

Change-Id: I37c6a1ac9138c0b5e440ef207cb7f65957da00b8
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-01-19 00:47:12 -07:00
yao liu e801912bf3 amdv: fix crash issue when setting cfg/bin [1/1]
PD#SWPL-154171

Problem:
crash when setting cfg/bin

Solution:
add null point check after malloc

Verify:
t5m

Change-Id: I119dfc1635091a0b04ae20203e566ed467c40b9d
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-01-19 00:47:07 -07:00
Cheng Wang 47047498bb frc: fix frc rdma crash [1/1]
PD#SWPL-154663

Problem:
fix frc rdma crash

Solution:
fix frc rdma crash

Verify:
T5M

Change-Id: I4b777f8c56be193f5b2488798eb8b6834a881fdb
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-01-18 22:51:40 -07:00
yufei.huan 7ce3c6c793 deinterlace: fix arb error issue(t5m) [1/1]
PD#SWPL-153186

Problem:
When switch from pre-link and process interlace video,
it will occur the arb error

Solution:
1. add inp/mem/nr wr mif reset
2. enable wr mif axi protection
3. change burst len to 0 for mc/cont/mtn wr mif

Verify:
Verified on t5m

Change-Id: Ia04fa1ff6b96db60ffc4b9d9734c7ea1345b85a8
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2024-01-18 22:51:30 -07:00
Jian Cao 4de2da8c05 rdma: add pre-vsync rdma_done detection [1/1]
PD#SWPL-151485

Problem:
serial port information causes rdma to always be delayed

Solution:
to avoid rdma logic errors
add pre-vsync rdma_done check

Verify:
T3X

Change-Id: Id93e303f67caed6028d10e88649592aa3edcc5b1
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-01-18 22:51:23 -07:00
chen.xu b6d122bc1d aipq: t5m only aipq or pq do hist [1/1]
PD#SWPL-151874

Problem:
need do aipq for T5M.

Solution:
modify code to support.

Verify:
T5M

Change-Id: Ief28052e1df8f67fff4e291319511d48ca6e2075
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-01-18 20:55:28 -07:00
Huijuan Xiao ae68446cb9 aipq: t5m support aipq sche 5 [1/1]
PD#SWPL-152143

Problem:
t5m support aipq.

Solution:
add t5m aipq.

Verify:
t5m

Change-Id: I6b98663ba20fcee67d4a747bc4239792e8a35c00
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-01-18 20:55:23 -07:00
bowen cheng cc93b1cf74 cec: fix cec bootup crash [1/1]
PD#SWPL-154577

Problem:
use spd list before list init

Solution:
check port_seq before use spd list

Verify:
T5D

Change-Id: Icc9a9e19aa3eb0b4eaf337bd33dd1517f31e6f17
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2024-01-18 20:55:07 -07:00
qinglin.li 7f7de17272 scripts: support build kasan with parameter for androidt [2/2]
PD#TV-107858

Problem:
support build kasan with parameter for androidt

Solution:
support build kasan with parameter for androidt

Verify:
local

Change-Id: I0538542862e5e708aea92257d90b49ab47ced9be
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-01-18 04:26:22 -07:00
haitao.liu 9b2057633d vdin: return ENODEV if no signal in v4l2 mode [1/1]
PD#SWPL-149832

Problem:
Unplugging hdmirx when camera apk previewing will cause video abnormal,
because camera hal closed the v4l2 device.

Solution:
return ENODEV if no signal in v4l2 mode,camera close v4l2 only receive
ENODEV.

Verify:
t7c

Change-Id: Iabdbef3c5b27a7e701f2803997ecfff7549ffea7
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-01-18 04:26:14 -07:00
jintao xu 4e28f16850 amvideo: hdmi no keep [1/1]
PD#SWPL-117570

Problem:
hdmi change fmt will black 2 times

Solution:
hdmi not keep

Verify:
T5w

Change-Id: Ifb1dda07335edf171707a03151d8d7f7623382f3
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2024-01-18 04:26:09 -07:00
jinbing.zhu f7b60ad309 amvecm: 5.15 modify osd setting flow to match in/out csc type [1/1]
PD#SWPL-149781

Problem:
modify osd setting flow

Solution:
modify osd setting flow

Verify:
t962d4

Change-Id: I3dd30d02767a85114682d130d2a5ce8ca22d78f6
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-01-18 04:26:04 -07:00
Pengcheng Chen 4db35d7f1e vpp: pip_screen_mode not update immediately for dual screen [1/1]
PD#SWPL-151405

Problem:
pip_screen_mode not update immediately for dual screen

Solution:
update pip_screen_mode immediately for dual screen

Verify:
t7

Change-Id: I7a030dfb685160aef2df7d88f0e7a8b1da536ef3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-01-18 02:51:16 -07:00
congyang.huang 8884d8e62a drm: not write dv bypass bits in drm [1/1]
PD#SWPL-147709

Problem:
burn dovi.ko, the color display abnormally

Solution:
uboot and dv write dv bits, so drm should not init it

Verify:
t7c

Test:
DRM-OSD-145

Change-Id: I79355c657ba672cafd8fa57c97160e65e053b30a
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-18 02:51:12 -07:00
Cheng Wang c1c2caea98 frc: frc rdma process optimisation [1/1]
PD#SWPL-148241

Problem:
frc rdma version optimisation

Solution:
frc rdma version optimisation

Verify:
T3X

Change-Id: I11fc1c65bb5fa1d440617f6deab1fa00e9f93014
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-01-17 22:35:42 -07:00
qiyao.zhou f8d994906f vpp: multi-play abnormal in 576I output. [1/1]
PD#SWPL-154357

Problem:
bit_offest is error for 576I output in S5.

Solution:
Modify bit_offest value.

Verify:
s5

Change-Id: I760616f1b94a792823e49c048d6ff97d259d983f
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-01-17 04:57:23 -07:00
chen.xu cbd74f02c5 amlvideo2: fix modify system time screen recording fail [1/1]
PD#SWPL-152578

Problem:
while modify system time, screen recording fail.

Solution:
Using functions that are independent of system time.

Verify:
T7C

Change-Id: If58288638cfefec6559c5290b8c911b2e1593d45
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-01-17 04:57:16 -07:00
congyang.huang b4663eb478 drm_hdmitx: The refresh rate of 576i and 480i are incorrect [1/1]
PD#SWPL-138840

Problem:
Incorrect refresh rates for 576i and 480i

Solution:
Divide the clock of mode by 2

Verify:
BG201

Test:
DRM-OSD-119

Change-Id: I8ab37a30753db9e428ecbd58a26ea1e37e6cfd44
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-01-17 04:57:11 -07:00
Pengcheng Chen 0684a02702 vpp: w_in size need aligned for amdv [1/1]
PD#SWPL-153961

Problem:
w_in size need aligned for amdv

Solution:
w_in size need 4 aligned for amdv 2 slice
w_in size need 2 aligned for amdv 1 slice

Verify:
t3x

Change-Id: Ia79f892db4807b0da61f7e246d0a21717d4f42d3
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-01-17 03:07:55 -07:00
haitao.liu 455405c98e vpp: set urgent and qos default value [1/1]
PD#SWPL-148473

Problem:
video may abnormal when popup osd or hide osd

Solution:
optimize urgent and qos setting of vpu

Verify:
T3X

Change-Id: If69edebda821a45e59ad56ca8211eaf450c7ad2f
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-01-17 03:07:47 -07:00
Wanwei Jiang dd5ce4f5a7 chipid: read chipid fail [1/1]
PD#SWPL-152551

Problem:
read chipid fail

Solution:
the chipid can be read by reading registers, but the register address is
set in DTS, which is prone to setting errors. It can be read through a
unified command, so there will be no previous problems.

Verify:
s905x2

Change-Id: I2019a7b8201dedec1f71a1edf09f9b51b730f5c2
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2024-01-17 03:07:30 -07:00
zijie.lin 2141a1ecb0 lcd: lcd_delay_ms replace msleep [1/1]
PD#SWPL-152208

Problem:
less than 20ms do not use msleep

Solution:
less than 20ms will use usleep_range

Verify:
none

Change-Id: I73ac90a6c04adaf5f961a59d74f82640fce9a7bf
Signed-off-by: zijie.lin <zijie.lin@amlogic.com>
2024-01-17 03:07:22 -07:00
Haotian Guo ace552a3ab hdmirx: add vrr_range_dynamic_update_en in dts [1/1]
PD#SWPL-147043

Problem:
freesync test fail

Solution:
When UI closes freesync, vrr needs to be closed

Verify:
t3x

Change-Id: I61b52929834aaec61b463881194d7c0a2fd1d9d1
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-01-16 19:36:07 -07:00
zhenteng.tian 6243a5dcdf vq: ensure vq_dev is set and use in the same function. [1/1]
PD#SWPL-153788

Problem:
kernel panic due to vq unreg but vpp still use pointer vq_dev.

Solution:
1. ensure vq_dev is set and use in the same function.
2. use atomic operations to ensure read and write security.

Verify:
T3

Change-Id: I10b5ed305e9cfe5fd3c76758ca1cc93adba14f3b
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-01-16 06:12:00 -07:00
yaoyu.xu beda704892 hdmirx: fix pip window flash when switch timing [1/1]
PD#SWPL-148178

Problem:
pip window flash when switch timing.

Solution:
set main and sub vid dependently.

Verify:
t3x

Change-Id: I447c085df9312339f296f0315a3c33910f7b7f46
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-16 06:11:46 -07:00
Cheng Wang 3dfc4f7c39 frc: enable frc clk when sys resume [1/1]
PD#SWPL-146738

Problem:
reopen frc fail when sys resume

Solution:
enable frc clk when sys resume

Verify:
T3

Change-Id: I9845b8459ce63956aa753d70bd9d8a791f147e2c
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-01-15 08:41:11 -07:00
Xiangyu Cai 72bcf12be9 vrr: restart problem [1/1]
PD#SWPL-153871

Problem:
not support vrr caused vrr drv null

Solution:
not support vrr return

Verify:
t5d

Change-Id: I411e23f8f1a626061762defeb03cc252ebc29209
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-01-15 06:40:07 -07:00
yicheng shen 29fb70a1d3 hdmirx: optimize eq setting for 75m~115m frequency [1/1]
PD#SWPL-151961

Problem:
some specific device does no work well on the frequency 75m~115m

Solution:
optimize phy setting

Verify:
T5M/t3x/txhd2

Change-Id: I1742697de1137fdd1b0aa731889c1eac567d7ddb
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-01-15 06:39:53 -07:00
Haotian Guo ee8c1bc0e6 hdmirx: add 480/567 format [1/1]
PD#SWPL-151288

Problem:
Driver does not support formats for 480 and 576

Solution:
Drive the addition of 480 and 576 formats

Verify:
t7c

Change-Id: I2fa54e65061752e641e03e0ea713a8f5ffd0fb14
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2024-01-15 06:39:38 -07:00
mingyang.he a6ca4ac450 drm: use vmalloc instead of kmalloc [1/1]
PD#SWPL-62336

Problem:
the struct for drm mush larger than normal so need appropriate
method of alloc memory

Solution:
use vmalloc instead of kmalloc

Verify:
ohm

Test:
DRM-OSD-143

Change-Id: If680bd0ed8b81e730dfc77ebe3531db0474b52d3
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-15 04:34:09 -07:00
mingyang.he 01d8a262de drm: 5.15 typo check [1/1]
PD#SWPL-103513

Problem:
typo check fail

Solution:
modify typo

Verify:
ohm

Test:
DRM-OSD-36

Change-Id: Ib1c878bbda4f6224f6f35aca9a43ae48f52443e5
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-01-15 04:34:01 -07:00