Commit Graph

7597 Commits

Author SHA1 Message Date
yabo.wang 8dc2db2ff0 bt: disable bt irq detection wakeup in kernel [1/1]
PD#SWPL-179965

Problem:
After the platform standby wakes up, the BT remote control does not work.

Solution:
disable bt irq flag in kernel.

Verify:
S6

Change-Id: I4281a36736bb394219e192b1573d0a7f84207a70
Signed-off-by: yabo.wang <yabo.wang@amlogic.com>
2024-10-09 07:01:25 -07:00
haitao.liu f85c150f5b vdin: Disable afbce in v4l2 mode [1/1]
PD#SWPL-186192
PD#SH-21387

Problem:
kernel panic when rx input is 4k in v4l2 mode

Solution:
disable afbce in v4l2 mode

Verify:
t7c

Change-Id: Ief0449b1087e5709d7f88e89004a69920e7c63d9
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-10-09 07:01:14 -07:00
haitao.liu 4afe4e39f0 vdin: Resolve the green screen flashing issue [1/1]
PD#SWPL-182776

Problem:
a green screen flashing when exiting  hdmi channel
from game mode to non-game mode

Solution:
delay 2 vsync time before exiting channel

Verify:
t5d

Change-Id: Iae7f8c922b0dc23dfa42bcdf76a771fbca89160e
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-10-09 07:01:07 -07:00
Jiacai.Liu 707daafd18 dongle: add s4d_ap223 linux dts file [1/1]
PD#SWPL-187514

Problem:
add s4d_ap223 linux dts file

Solution:
add s4d_ap223 linux dts file

Verify:
local

Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
Change-Id: Iffdeaf8bc08ced439c745ea3c6c30e0957def67b
2024-10-09 07:00:57 -07:00
Yue Wang cb086dc5aa usb: modify the irq interval of the crg udc [1/1]
PD#SWPL-187706

Problem:
modify the irq interval of the crg udc

Solution:
crg udc irq interval from 1ms to 125us

Verify:
a5

Change-Id: I31b68a922cf06785138e60e90e32c8cb484be34b
Signed-off-by: Yue Wang <yue.wang@amlogic.com>
2024-10-09 03:51:54 -07:00
shufei.zhao e22121f3dc unifykey: add auto_attach [1/1]
PD#SWPL-182783

Problem:
spinand don't have "auto_attach"

Solution:
add auto attach

Verify:
a1

Change-Id: I7e734e42e29e95baa1db088e87559db4b068d039
Signed-off-by: shufei.zhao <shufei.zhao@amlogic.com>
2024-10-09 03:51:43 -07:00
Tao Zeng bfed152a8e efuse: add mrk checksum commands in kernel [1/1]
PD#OTT-66795

Problem:
No efuse mrk commands in kernel

Solution:
add it

Verify:
s7d

Change-Id: I0393e26ce0cea637b40ec37d00825fd8d6f68798
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-10-09 03:50:49 -07:00
xiang.wu1 34e6388e01 hdmitx : Optimize node output size [2/2]
PD#SWPL-185799

Problem:
When the character length of the content exceeds PAGE_SIZE,
memory leaks may occur.

Solution:
Limit and check output size

Verify:
s7d/sc2

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

Change-Id: I538183ca41520bf5119062508f7d47b4d33b0eb6
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-10-09 03:50:24 -07:00
jialong.jiang 3ea5648c9d amdv: ko crash when play error video [1/1]
PD#SWPL-187987

Problem:
metadata error and dolby source code stuck in
metadata_parser_process

Solution:
drvier add error check, treat as sdr when error
count > 10.

Verify:
t5m

Change-Id: I14b749870fac9134ae3027fba1636a8741e93e2a
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2024-10-09 03:08:55 -07:00
wenlong.zhang 41f5522f9f drm: DRM support new AFR [1/1]
PD#SWPL-178840

Problem:
hwc post framebuffer with 60hz, drm need consumer with 50hz,
it means some framebuffer will be dropped.

Solution:
do not waiting vblank for commit workqueue.

Verify:
sc2

Test:
DRM-OSD-81

Change-Id: I75217b137f4de4bf9836477f5e106437acb74c6f
Signed-off-by: wenlong.zhang <wenlong.zhang@amlogic.com>
2024-10-09 03:08:29 -07:00
kun.liu 54381e9fb1 codec mm: CB2 Debug method for fixing reserved memory [1/1]
PD#SWPL-187179

Problem:
The debugging mechanism of reserved memory cannot be used properly

Solution:
Delete invalid code with reserved memory settings

Verify:
sc2

Change-Id: I63d899d505f95f22f1af2ccfdaed6a0bb63c1378
Signed-off-by: kun.liu <kun.liu@amlogic.com>
2024-10-08 19:52:44 -07:00
donghui.wang b5531bdf87 ldim: optimize spi interface [1/1]
PD#SWPL-183850

Problem:
1,low probability crash when dirspi_dma_trig called in isr
2,async need use coherent buf
3,low probability send unexpected data when start dma trig

Solution:
1,spicc add controller capability
2,async use coherent buf
3,rm dq2/dq3 for t3x ref board
4,optimize dma trig state management
5,alloc descriptor in controller probe but not in dirspi_dma_trig
6,fix clk div 0 error caused by CFG_BUS clearing by dirspi_dma_trig
7, optimize controller isr
8, add spin lock for smp

Verify:
t3x/t5m

Change-Id: Ic1d5c338ebc65dfa8b33add14cdbf0aff1cc0b46
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-10-08 19:52:35 -07:00
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