Commit Graph

7585 Commits

Author SHA1 Message Date
yaoyu.xu 41b6682a86 hdmirx: frl training flow [1/1]
PD#SWPL-187407

Problem:
some tx send timing too slow after training pass.

Solution:
use irq to set fpll cfg instead of re train.

Verify:
t3x

Change-Id: I9712ac3288d69ab9a6db9fcdac61a5fded4e1c66
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-10-08 05:10:12 -07:00
Yongjie Zhu 21c9135238 uvm: fix uvm KASAN: use-after-free [1/1]
PD#SWPL-186497

Problem:
BUG: KASAN: use-after-free in uvm_put_hook_mod
after uvm_hook_mod_release,
uvm still use uhmod->ref and uhmod->type

Solution:
move uvm_hook_mod_release to the end

Verify:
t7c+androidU

Change-Id: Iffe247b5f843893fdd88dfb58f450d24a40c9d68
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-10-08 05:10:04 -07:00
hai.cao 39e2d938c4 vpu: init arb and urgent [1/1]
PD#SWPL-176905

Problem:
set arb and urgent default val

Solution:
add arb and urgent default val

Verify:
t5m

Change-Id: I00384d3c01f65198e14cac4122eef81625e710c8
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-10-08 04:21:22 -07:00
zhicheng.huang b8dbfe754f dtv_demod: fix dvbs blind scan progress issue(V3.6.5) [1/1]
PD#SWPL-184675
PD#SWPL-183106

Problem:
Perform blind scan and select stop immediately need
about 40s finish scan

Solution:
1.fix dvbs blind scan progress issue
2.AMLDTVDEMOD_VER V3.6.5

Verify:
t5m

Change-Id: I89b2e2885e6ab1c478f7685024ed7a4fb4a9714e
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2024-10-08 04:20:51 -07:00
tuan zhang 11088458d6 defconfig: Rename gcc64_deconfig [1/1]
PD#SWPL-187694

Problem:
Wrong name of gcc64_deconfig

Solution:
Rename from amlogic_gcc64_deconfig to amlogic_gcc64_defconfig

Verify:
compile pass with mk_gx64.sh

Change-Id: Iaaf8cac59ae9e3bf275a41506956e1661f480335
Signed-off-by: tuan zhang <tuan.zhang@amlogic.com>
2024-10-08 04:20:40 -07:00
shipeng sun fa95e62129 dmabuf_manage : Free Secmem V2 Handle for USER_TA Implement [1/1]
PD#SWPL-187548

Problem:
Free Secmem V2 Handle for USER_TA Implement

Solution:
Free Secmem V2 Handle for USER_TA Implement prevent no handle
available

Verify:
T6D

Change-Id: Id3e72baf05c8f87c92c0a540a9a39b1a5c64a64d
Signed-off-by: shipeng sun <shipeng.sun@amlogic.com>
2024-10-08 04:20:09 -07:00
yao liu 0307640d06 amdv: flash when disable and enable video when hdmi in [1/1]
PD#SWPL-187582

Problem:
flash when disable and enable video when hdmi in

Solution:
keep runmode until video on

Verify:
t3x

Change-Id: Iec8fca87d41c066d894c477fe059cfa11ee69073
Signed-off-by: yao liu <yao.liu@amlogic.com>
2024-10-08 04:19:26 -07:00
zhou.han 0598302c8b hdmitx: add sink_type property [1/1]
PD#SWPL-99030

Problem:
Try to limit the external module directly r/w  the driver node.

Solution:
Add sink_type property

Verify:
ohm

Test:
DRM-TX-20

Change-Id: I4dc184a35bdf75d14bd374daba527e5096f2524f
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2024-10-08 04:18:46 -07:00
Hao Shi 58fc84e99e codec_mm: support reserved bak pool [2/2]
PD#SWPL-177308

Problem:
H.266 support 34bit

Solution:
add a reserved pool to alloc mv buffer

Verify:
s6_s905x5_bl201

Change-Id: Iff86b122bed9eef0c7dd8858aef7a452f02bd015
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2024-10-08 04:18:27 -07:00
hongbin wang 6dbe37766b tee: change shm register flag when restore [1/1]
PD#SWPL-185800

Problem:
Youtube can not play when restore in STD function.
the TEE print :
std_entry_with_parg:235 Bad arg address 0x1200c180

Find the dynamic shm flag should not have
OPTEE_SHM_ARG_ALLOC_PRIV flag.  it should same to
optee_probe function , just need OPTEE_SHM_ARG_SHARED

Solution:
remove OPTEE_SHM_ARG_ALLOC_PRIV when re-register

Verify:
S7 + Yocto

Change-Id: Ibe9708cb4db0e0b98f1a144d204f66e93bb56d22
Signed-off-by: hongbin wang <hongbin.wang@amlogic.com>
2024-10-08 04:16:02 -07:00
jing.li1 e103e4de18 ci: use regulator to control ci power [1/1]
PD#SWPL-182220

Problem:
t6d ci needs to use regulator to control power

Solution:
add regulator for ci

Verify:
t6d

Change-Id: I2f7bd6d9cb013794236787388805d0b3b574736b
Signed-off-by: jing.li1 <jing.li1@amlogic.com>
2024-10-08 04:10:17 -07:00
bowen cheng 3c42271aca cec: cec support std hibernate [1/1]
PD#SWPL-185412
PD#SWPL-185406

Problem:
cec support std hibernate

Solution:
cec support std hibernate

Verify:
t3x s7

Change-Id: I6891bac70ba124ef99f38f3b8efda7e002752f3c
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2024-09-30 21:05:30 -07:00
yaoyu.xu 59591adca9 hdmirx: update fsm state when update edid [1/1]
PD#SWPL-187305

Problem:
not current port set hpd low and not set high.

Solution:
update fsm state.

Verify:
t3x

Change-Id: I5bdc3614b7c8bada14d72c55e0832ee6d136bcd7
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-09-30 21:05:04 -07:00
yihui wu c4e3aa2a1a provision: fix cannot burn key with usb tool [1/1]
PD#SWPL-186436

Problem:
burn provision key with usb burn tool failed

Solution:
add dts node /provisionkey

Verify:
br301

Change-Id: I3bd862373db4099d4e5a157c72b7e99201de5410
Signed-off-by: yihui wu <yihui.wu@amlogic.com>
2024-09-30 21:04:36 -07:00
zongdong.jiao 3b15536291 hdmitx: add short name for extra 720p modes [1/1]
PD#SWPL-186333

Problem:
Lack short name for 1280x720p24hz, .., etc

Solution:
Add short name for extra 720p24/25/30/48 modes

Verify:
s6/raman

Test:
DRM-TX-75

Change-Id: I13353e1de03f98ed3e3f2506b14f7c132c4eecc5
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-09-30 21:04:20 -07:00
Zelong Dong 4b0148e72c ir: support multi wakeup key event [3/3]
PD#SWPL-182441

Problem:
only support power key and one custom key

Solution:
support multi wakeup key event, kernel ir drivers
gets framecode from bl30 by mbox

Verify:
t6d

Change-Id: I0f118bbbec12a9e86d3cc8e37128fb906bc22f12
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-09-30 21:04:08 -07:00
Zelong Dong b79dc57e92 ir: support mbox for some func [2/3]
PD#SWPL-182441

Problem:
need to support mbox for some func

Solution:
1. get wakeup framecode
2. enable/disable debug log
3. set wakeup key table
4. enable/disable bl30 ir
5. get the last powerkey

Verify:
t6d_br301

Change-Id: I40e3d6eb08903533f975eba87e18a24148055b70
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-09-30 21:03:57 -07:00
huijie.huang 7513dda04c lcd: t6d support phy efuse calibration [2/2]
PD#SWPL-180254

Problem:
lcd phy efuse calibration

Solution:
t6d phy support odt/bias calibration

Verify:
T6D BR301

Change-Id: Idf622ef207b67b7351391f735faa378c33f8c1a2
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-09-30 21:03:49 -07:00
Zelong Dong bc6e434c55 mailbox: support device id & command for IR [1/3]
PD#SWPL-182441

Problem:
support device id & command for IR

Solution:
support device id & command for IR

Verify:
t6d

Change-Id: I42f6a0117cf8ce3891c9a97885ad3216d54a0f29
Signed-off-by: Zelong Dong <zelong.dong@amlogic.com>
2024-09-30 21:03:16 -07:00
rong.wang 1705fbd571 deinterlace: delete compWidth rewrite [1/1]
PD#SWPL-186549

Problem:
special resolution cause reboot

Solution:
delete compWidth rewrite

Verify:
t5w

Change-Id: I7dc2d090a8cf8e9a10e824b805a4b480d903d4fb
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-09-30 02:52:59 -07:00
hai.cao 286a9e533a video: dejaggy enable screen be split when 1:1 [1/1]
PD#SWPL-187204

Problem:
1:1 dejaggy enable screen be split

Solution:
set postsc_size_mux

Verify:
t6d

Change-Id: I7e503fe0617a4e99a8f6970334f65d339a7c50c3
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-09-30 01:52:54 -07:00
Pengcheng Chen a36e2fcbb8 vpp: add vpp slice switch policy in 4k1k240hz [1/1]
PD#SWPL-187128

Problem:
vd1 always 2 slice in 4k1k240hz

Solution:
add vpp slice switch policy in 4k1k240hz

Verify:
t3x

Change-Id: Ia14af7941cfbcf4642637f3b7889cba290c4718d
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-09-29 23:55:32 -07:00
Doosan Baek 29fe9c3b05 kl/kt: add mid extra function [1/1]
PD#SWPL-187016

Problem:
need mid_extra
need tdes kt capability
need m2m_any kl capability

Solution:
add mid extra mode
add tdes kt capability
add m2m_any kl capability

Verify:
s6

Change-Id: I1f49890b61bf70110596c036c970d895388317c1
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2024-09-29 23:54:54 -07:00
zhicheng.huang e0de6bfdbc dvb_extern: add switch for early suspend(V1.23) [1/1]
PD#SWPL-179721

Problem:
In standby mode, scheduled recording does not work;

Solution:
1.add switch for early suspend;
2.VER V1.23

Verify:
s7, t5m

Change-Id: Ice905da344df43b67dd8a178ffe5efbd95051154
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2024-09-29 23:54:30 -07:00
tuan zhang be36d4dcee auto-patch: fixed two bugs in binder [1/1]
PD#SWPL-175822

Problem:
BUG: sleeping function called from invalid context
at include/linux/highmem-internal.h:155

Solution:
1.use memset_page() in binder_alloc_clear_buf()
2.use kmap_local_page() in binder_alloc_copy_user_to_buffer()

Verify:
t5d_am301

Change-Id: I1e242bc4ba5e466ed186d32c18e8f8bfdf77ac15
Signed-off-by: tuan zhang <tuan.zhang@amlogic.com>
2024-09-29 23:54:19 -07:00
xiang.wu1 763e445cc4 hdmitx21: adjust gp2pll lock threshold [1/2]
PD#SWPL-186064

Problem:
When dsc is output, gp2pll may appear unlocked with
probability.

Solution:
adjust gp2pll lock threshold
PLL need update reg pll_ctrl3<25:24> from 00 to 11

Verify:
s5

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: I121a155faca10e03e6b48e70bf6cc4cba8c3dd84
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-09-29 23:54:14 -07:00
jinbing.zhu 18588f8e2b amvecm: s6 aipq add offset reg bit. [1/1]
PD#SWPL-185233

Problem:
s6 aipq add offset reg bit

Solution:
s6 aipq add offset reg bit

Verify:
s6

Change-Id: Ib7f6e72b2d151c3afd5e38d42b59ec5bcc8bd401
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-09-29 19:02:18 -07:00
yaoyu.xu bd03c0410e hdmirx: reduce rx print [1/1]
PD#SWPL-185136

Problem:
rx log need clear

Solution:
reduce rx print

Verify:
t6d

Change-Id: I7a3a0cadc03dc4c586d8983a83fd636e784ae76f
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-09-29 19:02:01 -07:00
shaohui sheng e0cf928489 audio: Set ALC parameters [1/1]
PD#SWPL-185990

Problem:
The signal-to-noise ratio of the speaker output is small.

Solution:
Set the ALC parameter to automatically adjust the gain of
the audio signal, ensuring that the amplitude of the output
signal remains within the preset range, while improving the
signal-to-noise ratio.

Verify:
test on T6D

Change-Id: I8af12029b4ab46992367225dc740b22e085cd76a
Signed-off-by: shaohui sheng <shaohui.sheng@amlogic.com>
2024-09-29 19:01:49 -07:00
Xiangyu Cai 77d26a5e1a vrr: update delay line when video axis [1/1]
PD#SWPL-182514

Problem:
update delay line when video axis

Solution:
update delay line when video axis

Verify:
t3x

Change-Id: I098e70eeae1bcb1d0152d0737df8ea4ff575113a
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-09-29 19:01:23 -07:00
gerrit autosubmit 61450d8e65 Merge "Audio: add the headphone mute control [1/2]" into amlogic-5.15-dev 2024-09-29 17:42:20 -07:00
jiebing chen 3a14b712da Audio: add the headphone mute control [1/2]
PD#SWPL-187028

Problem:
need mute headphone when use the Speaker

Solution:
switch to Speaker, headphone mute

Verify:
use T6D

Change-Id: I1204363e10368b945582c7274914a56ddded11a2
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-09-29 17:42:17 -07:00
tuan zhang b912ceefe5 hid: Add rumble support to latest xbox controllers [1/1]
PD#SWPL-185765

Problem:
The Gamepad vibration can't work.

Solution:
Add rumble support.

Verify:
SC2

Change-Id: Ia087d17dc1819fc318ada229b132bab8db637cff
Signed-off-by: tuan zhang <tuan.zhang@amlogic.com>
2024-09-29 05:12:13 -07:00
chen.xu 72723c4236 amlvideo2: support screen record before play video [1/1]
PD#SWPL-181111

Problem:
support screen record before play video.

Solution:
1.Before playing the video, AMLVIDEO2 creates black frames
and sends them to the upper layer.
2.After detecting video playback, start vdin to follow the
normal frame sending process.

Verify:
T982

Change-Id: I9ef6dccc2f07a737af97325f726c1e3e9fb3da27
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-09-29 05:11:40 -07:00
Yicheng Shen b25aa1f1a1 Revert "hdmirx: optimize phy bandwidth calculation method [1/1]"
This reverts commit 795f856346.

Problem:
previous cl may cause side effect:for the bandwidth over 1.5G,
the phy bandwidth is wrong,causing hdmirx not stable all the
time.

Solution:
revert the CL

Verify:
T5M

Change-Id: I400a85edb020d1d1a131117e950d82c5d647e4f2
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-09-29 05:07:41 -07:00
Pengcheng Chen 29d222ca34 vpp: fix vpp1 axis not update [1/1]
PD#SWPL-185215

Problem:
vpp1 axis not update

Solution:
get correct vinfo in _set_video_window

Verify:
t7c

Change-Id: I51d6beacf41534a0174526c18c35e80c18305341
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-09-29 05:07:27 -07:00
jian zhou dc3e08150b audio: set cds and sad by project [1/2]
PD#SWPL-187050

Problem:
1.Android U soundbar doesn't support dts so far, eARC RX CDS
should keep same with ARC SAD xml file which only support Dolby.
2.change mat and ddp Short Audio Descriptors by project.

Solution:
1.remove eARC RX dts Short Audio Descriptors in CDS content.
2.set ddp as 57 04 01.
3.set mat as 67 04 03.

Verify:
sc2

Change-Id: Ie4c776bfff2bc6dda5e63eceafe2bcc07e64138a
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-09-29 05:07:03 -07:00
lizhi.hu 0c8184bce5 lcd: fix lcd phy lock when multidisplay [1/1]
PD#SWPL-187055

Problem:
lcd phy lane_lock_total was cleared when second lcd probe

Solution:
bypass lcd lane_lock_total reset

Verify:
t3x_multidisplay

Change-Id: I7b79b6a99b18537445f022caee5a88871857809c
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-09-29 05:06:56 -07:00
huijie.huang a6c606d945 lcd: t6d support phy tuning [2/2]
PD#SWPL-184861

Problem:
t6d need to support phy tuning

Solution:
t6d support phy tuning driver

Verify:
T6D BR301

Change-Id: I27f090450aaa6dd1e5d1c1bc7b77bde44a67ae9a
Signed-off-by: huijie.huang <huijie.huang@amlogic.com>
2024-09-29 05:06:29 -07:00
Jianxiong Pan bf648bc096 aml_media: differentiate config according to tv and ott. [1/1]
PD#SWPL-184652

Problem:
aml_media ko too large, need to reduce the size.

Solution:
differentiate config according to TV and OTT project.

Verify:
local.

Change-Id: I2d45ed0a8021808926954590e0efeeb092089ae4
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-29 05:06:22 -07:00
jinbing.zhu c9305637f1 amvecm: overscan reset flow [1/1]
PD#SWPL-183828

Problem:
overscan reset flow not fit.

Solution:
modify reset flow.

Verify:
t6d

Change-Id: I73daeddcebd49faa10f67855fa9605a0fa3f4abd
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-09-29 05:05:56 -07:00
chen.xu 1254f22de4 amlvideo2: fix low probability of stopping vdin twice [1/1]
PD#SWPL-187287

Problem:
When switching modes and taking screenshots simultaneously, there
is a low probability of stopping vdin twice

Solution:
add mutex lock to protect

Verify:
T982

Change-Id: I29fb07912cf6b3342c3cde4a87148a4f8970597a
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2024-09-29 04:35:46 -07:00
zhenteng.tian abc6c4db7e video_composer: pulldown for new afr mode. [1/1]
PD#SWPL-171635

Problem:
enable pulldown for new afr mode

Solution:
enable pulldown for new afr mode

Verify:
T5M

Change-Id: I45d10467a16ab1d4340f3a5a251099df95d9292f
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-09-29 04:35:24 -07:00
Pengcheng Chen 994844bc10 vpp: fix vd1 secure display abnormal when hot plug-in hdmi tx [1/1]
PD#SWPL-185314

Problem:
vd1 secure display abnormal when hot plug-in hdmi tx

Solution:
1. move vdx_dsc_ctrl to video probe
2. expand disable_update to array

Verify:
t3x

Test:
DRM-OSD-1, DRM-OSD-2

Change-Id: Ia0e13ffb396cb5db7a996186be30436c456b358b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-09-29 04:34:28 -07:00
Junyi Zhao 7df5117cd0 hibernate: i2c: support i2c [1/1]
PD#SWPL-185385

Problem:
Need support.

Solution:
Support it

Verify:
s7 bh201

Change-Id: I2c57c06b5fc320ed762b32febcc7a0e18feb652c
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-09-29 04:34:06 -07:00
qianqian.cai 72e671517b deinterlace: interlace afbcd vdin [1/1]
PD#SWPL-179451

Problem:
interlace afbcd vdin

Solution:
interlace afbcd vdin

Verify:
t3x

Change-Id: Ifc89deadb7e9febc7ea34b6a1daede8930d11994
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-09-29 04:33:01 -07:00
qiyao.zhou c35ba0c987 uvm: support aisr based on DI backend [1/2]
PD#SWPL-166694

Problem:
support aisr based on DI backend for t3.

Solution:
support aisr based on DI backend for t3.

Verify:
t3

Change-Id: Idb5e0ab48b0976399e03c183f8ae54d0c136e864
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-09-29 04:31:23 -07:00
qiyao.zhou 6c83a72d14 t3: enable di in display side for t3 [1/2]
PD#SWPL-166694

Problem:
Android U support di backend for t3.

Solution:
Android U support di backend for t3.

Verify:
t3

Change-Id: I26097b2b480cac9c773b03d5b4cf5c7d3df2d50d
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-09-29 04:31:16 -07:00
Jianxiong Pan 70194fe6ec mm: autopatch: remove filecache reclaim optimization by default. [1/1]
PD#SWPL-187459

Problem:
vendor filecache reclaim policy affect performance.

Solution:
remove vendor filecache reclaim policy defaultly.

Verify:
local.

Change-Id: Ia4fba32a3b6d46bebe94be0062f59e458c283f82
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-09-29 04:18:11 -07:00
mingyang.he 2fb68a5fa0 drm: reset fbdev single buffer size [1/1]
PD#SWPL-185552

Problem:
two buffers cannot be requested after the current fbdev memory is freed

Solution:
fbdev memory align for 64KB/1M

Verify:
s7

Test:
DRM-OSD-39

Change-Id: Ib4dccef1fe6888b8788471e4bf8a9a593a863ddd
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2024-09-29 02:07:49 -07:00