Commit Graph

5915 Commits

Author SHA1 Message Date
yu.xie a44557e2df dts: modify android_u S905Y5 codec_mm_cma size to 364MB. [1/1]
PD#SWPL-165368

Problem:
Adjust the size of codec_mm cma to 364M for CTS.

Solution:
Adjust the size of codec_mm cma to 364M for CTS.

Verify:
S905Y5

Change-Id: Ibccabafe9b9f007892ba903db5d960ae5dece210
Signed-off-by: yu.xie <yu.xie@amlogic.com>
2024-04-26 01:58:23 -07:00
Chuan Liu f89a87d466 clk: sm1: Ignore init hifi_pll [1/1]
PD#SWPL-165771

Problem:
hifi_pll has been initially configured in the bootloader and is being
used by audio. If hifi_pll is reconfigured in the kernel, the sound
will be broken.

Solution:
Add flag CLK_MESON_PLL_IGNORE_INIT for hifi_pll

Verify:
sm1_ac215

Change-Id: I2f79fda0c07312ed2bf1bf6203ac16e82f361e14
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-26 01:58:18 -07:00
rong.wang 767bc20c9f deinterlace: di err call trace [1/1]
PD#SWPL-157613

Problem:
DVB-C program switching,dim err call trace

Solution:
when clear buf,set queue index to -1

Verify:
t3x

Change-Id: I55e8ef5e0e689a0503fb805042a0e13bce56761a
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-04-26 01:57:58 -07:00
jian zhou 210d3eae7e audio: add arc in feature [1/1]
PD#SWPL-145976

Problem:
Earc in not support

Solution:
Merge ARC in related function from android S openlinux.

Verify:
sc2

Change-Id: I882854ef02486b263d6cc1ac856e97781b03314a
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-26 00:04:15 -07:00
shu.wang a7907825a3 audio: fixed A1 PDM recording data abnormality problem [1/1]
PD#SWPL-166773

Problem:
When using PDM recording, pdm_sysclk will be enabled repeatedly.

Solution:
Remove duplicate or unnecessary clk enable operations.

Verify:
A113L-AD403

Change-Id: Ie2efbe77d7b9b49cbbef67c130beb2d3dbd6a1a9
Signed-off-by: shu.wang <shu.wang@amlogic.com>
2024-04-26 00:04:09 -07:00
Gaowei Zhao ede1f84c65 hdmirx: fix info error for switching HDR10 to HLG [1/1]
PD#SWPL-162159

Problem:
info shows HDR10 when switch to HLG

Solution:
report HDR change event to tvserver switch to HLG

Verify:
t3x

Change-Id: I19bc55e4dfc29f4622623fcc56b22c3048c7ed78
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-04-26 00:03:56 -07:00
chuangcheng.peng e5649c4c03 demux: close ts clone for ddp avsync [1/1]
PD#SWPL-159757

Problem:
avsync needs to be optimized

Solution:
ts clone close for ddp avsync, then optimize avsync

Verify:
verified at t3x

Change-Id: I6abd390d6016f383558d391659be8d735fef81b6
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-04-25 22:03:43 -07:00
Chuan Liu 78898c9d62 clk: s4/s4d: Ignore init hifi_pll [1/1]
PD#SWPL-165773

Problem:
hifi_pll has been initially configured in the bootloader and is being
used by audio. If hifi_pll is reconfigured in the kernel, the sound
will be broken.

Solution:
Add flag CLK_MESON_PLL_IGNORE_INIT for hifi_pll

Verify:
s4_ap222/s4d_ap2322

Change-Id: Id46b72e534958d97431eea44f0795cca22ab09d2
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-25 22:03:29 -07:00
Chuan Liu ff827069b6 clk: sc2: Ignore init hifi_pll [1/1]
PD#SWPL-165772

Problem:
hifi_pll has been initially configured in the bootloader and is being
used by audio. If hifi_pll is reconfigured in the kernel, the sound
will be broken.

Solution:
Add flag CLK_MESON_PLL_IGNORE_INIT for hifi_pll

Verify:
sc2_ah212

Change-Id: I9989d6c16e590207f6b03658705b088f8a13c8c5
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-25 22:03:25 -07:00
Jian Cao 9fd68773eb ge2d/gdc: fix the problem of variable memory not being released [1/1]
PD#SWPL-163798

Problem:
memory usage keeps increasing

Solution:
modify logic errors and solve the problem of not being released

Verify:
s1a

Change-Id: Ia5d1c863a0941067c861d8cd2c8634d26210583c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-04-25 22:03:03 -07:00
qiyao.zhou c82399acbc vc: kernel panic in Monkey test. [1/1]
PD#SWPL-166613

Problem:
Dewarp exit after vc free buf.

Solution:
Modify dewarp config flow in vc.

Verify:
t7c

Change-Id: Ica5e46ec45a5f80fce35fe5b7f3ae348481abafd
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-04-25 22:02:59 -07:00
yiting.deng f1b950bc93 pll: s7: fix pll and clk [1/1]
PD#SWPL-166049

Problem:
1.v3 ops enable and set_rate is unnecessary to rewrite all pll
reg, only focus on related bit, pll second enable rewrite od bit,
result to it's real rate changed
2.some clk config incorrect

Solution:
1.use v1 ops to compatible, test pll set_rate, enable/disable ok
2.fix unreasonable config

Verify:
s7

Change-Id: Ic2bc808152250d8596e232d3e5318eff7751d4e4
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2024-04-25 22:02:51 -07:00
Lei Yang 72a15ad899 hdmirx: add a minimum detection time protection [1/1]
PD#SWPL-161687

Problem:
some devices show garbage image in the first few frames

Solution:
showing image no earlier than 2.5S after tx sends video

Verify:
t3x_revb

Change-Id: I1142c9f2ef215124b873ed878ae9f4cd5b389ee7
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2024-04-25 22:02:47 -07:00
nengwen.chen 1c0232097a dtv_demod: fix dvbt2 mplp id list and mplp tune (V3.5.037) [2/2]
PD#SWPL-162789
PD#TV-110202

Problem:
fix dvbt2 mplp id list and mplp tune(execpt T5D).

Solution:
fix dvbt2 mplp id list and mplp tune(execpt T5D).
update dvbt2 fw.
fw md5sum: ef561a0a4c855c025facb66578b18501.
AMLDTVDEMOD_T2_FW_VER: v1430.20240326.
AMLDTVDEMOD_VER "V3.5.037".

Verify:
T5W/T5M.

Change-Id: Icecf371cd3f08eed053997156c9e365c10dccccc
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2024-04-25 03:59:55 -07:00
Pengcheng Chen 4d715bef18 vpp: init force_skip_count to 0xff [1/1]
PD#SWPL-166548

Problem:
init force_skip_count to 0xff

Solution:
init force_skip_count to 0xff

Verify:
s7d

Change-Id: I06d2f6483a284cd06652794d3677693128c101ca
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-25 00:03:17 -07:00
Xiangyu Cai 9ab9e37332 vdin: freesync base fps add 144hz [1/1]
PD#SWPL-166412

Problem:
vdin freesync base fps only 60hz and 120hz

Solution:
add 144hz in vdin freesync base fps

Verify:
t3x

Change-Id: Ib87b6a2599a1ca6abcd01f0000b57fd0f15fe629
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-04-25 00:03:13 -07:00
Chuan Liu 0525d8543d clk: s7d: Ignore init hifi_pll [1/1]
PD#SWPL-165736

Problem:
hifi_pll has been initially configured in the bootloader and is being
used by audio. If hifi_pll is reconfigured in the kernel, the sound
will be broken.

Solution:
Add flag CLK_MESON_PLL_IGNORE_INIT for hifi_pll

Verify:
s7d_bm201

Change-Id: I430a03dbb115d4d34b0514fb5dae5f22a105132e
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-04-25 00:02:51 -07:00
yicheng shen 26d022f6d6 hdmirx: fix hbr soundless issue [1/1]
PD#SWPL-161205

Problem:
hbr_spdif_en config error,audio get only 2 channel data(should
be 8 channel)

Solution:
update hbr_spdif_en setting

Verify:
T3X

Change-Id: I584bb0100066f40aaaa04806988e9f8136cc22ed
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-04-25 00:02:41 -07:00
Xiangyu Cai 029fa9d586 vrr: disable vrr not set reg off in t3x [1/1]
PD#SWPL-163644

Problem:
vsync set error in dts

Solution:
fix vsync set in dts

Verify:
t3x

Change-Id: I2cbabc0717bd1389bd8697c968459cd464295769
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-04-25 00:02:23 -07:00
hang cheng 8bb6faf7ab hdmitx: not send uevent after suspend [1/1]
PD#SWPL-158050

Problem:
it will block suspend if send kobject uevent
when suspend

Solution:
not send uevent after suspend

Verify:
ohm

Test:
DRM-TX-105

Change-Id: I66f13e24076290f99defca8badb8d94d8b2e3e2a
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2024-04-25 00:02:10 -07:00
Jianxiong Pan 2836e79ed3 mm: fix kasan slab-out-of-bounds in _parse_integer_limit. [1/1]
PD#SWPL-166814

Problem:
kasan report slab-out-of-bounds in _parse_integer_limit.

Solution:
alloc more memory.

Verify:
local.

Change-Id: Iccf89bab6b219c7a0020ec84b96cf411e7648088
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-24 20:31:58 -07:00
honghai.song 29e0cf0dda s7d: vdin1: change to 720p [1/1]
PD#SWPL-166923

Problem:
vdin1: change to 720p

Solution:
vdin1: change to 720p

Verify:
on S7D

Change-Id: Ia8ab9a90c5188e7d4c21daf63289986c9da0155c
Signed-off-by: honghai.song <honghai.song@amlogic.com>
2024-04-24 02:06:49 -07:00
qing.zhang 861319cbd6 Audio: add earc rx for s7d [1/1]
PD#SWPL-163105

Problem:
new earc Rx design

Solution:
changelist from https://scgit.amlogic.com/#/c/417153
1. new default setting for arc in
2. remove pll refresh when startup
3. when cmdc init, need refresh pll after pll default setting
4. force channel sync for channel mapping
5. add dmac bit29 check for common arc check
6. add iec raw channel status check
7. use chip info(arc_ch_sync/arc_in_new)

Verify:
use s7d

Change-Id: Id681334bfde57bfe71a870a16859e24712e262e3
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-24 02:06:36 -07:00
mingxiu.sun 1829df28bd vdin: fix rdma overflow issue [1/1]
PD#SWPL-162066

Problem:
1 No rdma interrupts comes after rdma reset,
vdin donot configure rdma anymore cause overflow

Solution:
vdin trigger rdma if no rdma interrupts

Verify:
t963d4 kernel5.15

Change-Id: I90dded564ae50754f4396cadaacd7a4b444b3145
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-04-24 02:06:12 -07:00
yicheng shen ab38de3e8d vdin: add hdr10p status checking logic [1/1]
PD#SWPL-162149

Problem:
infor bar did not update when hdr10 -> hdr10+

Solution:
notify tvserver stop/start dec when hdr10->hdr10+

Verify:
T5W

Change-Id: I765103b49f7fb4eeb5b94041e865590d7899abb7
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2024-04-24 02:06:07 -07:00
qing.zhang a81a960d03 Audio: for s7d skt config [1/1]
PD#SWPL-165962

Problem:
card can not register

Solution:
1. modify the pdm config

Verify:
use s7d skt

Change-Id: I39b33b871d60d20636b9415000de8a0a1fe1687c
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-24 00:42:00 -07:00
dian.shao 29af4c6a55 usb: u3pciephy portnum err [1/1]
PD#SWPL-165972

Problem:
The the portnum of u3phy recorded in the host controller
is not zero when the phy is  switched to the pcie.

Solution:
Modify xhci code.

Verify:
sc2_ah212

Change-Id: I0e9e5fce6a51edb835a02f965dd91edabd31ddce
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-04-24 00:41:55 -07:00
Yongjie Zhu 8fcf842279 gpu: add s7d other board secure [1/1]
PD#SWPL-163131

Problem:
s7d g310 secure verification

Solution:
add dmaheap-secure for bm202/bm209

Verify:
s7d

Change-Id: I7805851ef4c1b2ca79f348accf63a6705057550c
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-04-23 08:07:18 -07:00
mingxiu.sun 245cc43205 vdin: wrong csc_matrix setting in isr [1/1]
PD#SWPL-161756

Problem:
Wrong csc matrix setting cause video abnormal

Solution:
update the correct csc matrix setting in isr

Verify:
t962x3 kernel5.15

Change-Id: If9e55630ed951dc71b1cd9e656c3214669434c35
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-04-23 08:06:17 -07:00
Jianxiong Pan 2053631cca mm: aml_smmu: get max_pfn from node instead of find symbol. [1/1]
PD#SWPL-166736

Problem:
aml smmu init failed.

Solution:
get max_pfn from node instead of find symbol.

Verify:
s5.

Change-Id: I1af0dbe7006ee590a82750491d9ab6a82835bf14
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-04-23 05:54:08 -07:00
linfang.zhao 3f48fc6137 drm: move dummy data setting from video update to crtc_flush [1/1]
PD#SWPL-163672

Problem:
set bg color at anytime

Solution:
move dummy data setting from video update to crtc_flush

Verify:
zapper s1a

Test:
DRM-OSD-20

Change-Id: I61baee791fe2024945f8bc3e621ee01ef13e0831
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2024-04-23 05:54:03 -07:00
yaoyu.xu 9891a5c1a7 hdmirx: fix compile err [1/1]
PD#SWPL-166675

Problem:
compile err.

Solution:
add weak function.

Verify:
t3x.

Change-Id: Ic64508648056adb225839f69ac1234c1c8f3c309
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-04-23 05:53:59 -07:00
yuhua.lin 9f06e4ed89 ge2d: modify clk to 500M for s7 [1/1]
PD#OPS-6565

Problem:
modify clk to 500M for s7

Solution:
complete it

Verify:
s7

Change-Id: I64cab621f6a0c08f815a640a7b58b597fad043e8
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-04-23 04:09:10 -07:00
Xindong Xu 2059989be3 s7d: add firmware.dtsi to s7d [4/4]
PD#SWPL-163557

Problem:
need enable avb in s7d

Solution:
add firmware.dtsi to s7d

Verify:
s7d

Change-Id: I2b3445f9e62d5a8eae6fa40cd74f30e3e2ca7ed2
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
2024-04-23 04:09:03 -07:00
qing.zhang 67a1463db4 Audio: for s7d new codec sy6026 [3/3]
PD#SWPL-166106

Problem:
B201 use sy6026 instead of analog speaker

Solution:
kernel part, only ref b201 use the codec
1. integrate sdk
2. fix i2c addr from 0x54 to 0x2a
3. fix function error
4. review setting for PBTL design, reg 0x22 from
0x1 to 0x3
5. use soft unmute/mute
6. remove pdm pin GPIODV_5 for codec

Verify:
use s7d ref board 201

Change-Id: Ied29b57736c0045bd2ff98bab138f4b9fc91afcf
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-04-23 04:08:55 -07:00
hai.cao 4e25a65372 video: control sharpness and pps interpolation by node [1/1]
PD#SWPL-166378

Problem:
sharpness and pps interpolation can not control by node

Solution:
sharpness control enable by sr node
pps interpolation control by new node

Verify:
s7d

Change-Id: Idb1fbde67d91241fcdb53a74fc76e9db1d278868
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-04-23 04:08:51 -07:00
Pengcheng Chen 9de57ad13f vpp: modify force_skip_count to set video v/h skip [1/1]
PD#SWPL-166548

Problem:
modify force_skip_count to set video v/h skip

Solution:
modify force_skip_count to set video v/h skip

Verify:
s7d

Change-Id: Ib594589e27d08ccf563852afa543db8b752012ba
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-04-23 04:08:39 -07:00
he.he f480baa1d6 usb: can't connect PC after suspend and resume repeatedly [1/1]
PD#SWPL-163918

Problem:
can't connect PC after suspend and resume repeatedly

Solution:
restart udc when resume

Verify:
t7

Change-Id: I9a7b6a872b0ffa07cd69c42d52e88ad01503ec97
Signed-off-by: he.he <he.he@amlogic.com>
2024-04-23 04:08:34 -07:00
guoqing.sun 70b5ce8ae9 CI: CB2 add ioctl CA_SET_START. [1/1]
PD#SWPL-160156

Problem:
CA_SET_START

Solution:
CA_SET_START

Verify:
android-u t5m

Change-Id: Ia67484e2f12b4260436964cd91a8a8f9deb49bd9
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2024-04-23 04:08:26 -07:00
Junyi Zhao 02473bd577 pwm: fix division zero error [1/1]
PD#SWPL-165857

Problem:
division error

Solution:
fix it

Verify:
s7 bh209

Change-Id: Ifc2125ad46c78d2ab96570207e8e3913e7ea0b1d
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
(cherry picked from commit 09d88519e09a63084e550a1c8cb7e2b90610087e)
2024-04-23 00:04:04 -07:00
jian zhou 8129fedced audio: fix eARC TX pop sound issue [1/1]
PD#SWPL-160611

Problem:
There is pop sound when system bootup and play ddp files
with DENON AVR-X3800H connected.

Solution:
Delete eARC log, and then there is no pop sound.

Verify:
T3X & T5M

Change-Id: I23bdd41985efaafd4a1f9f8067fe4871a0593e20
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-04-22 21:52:59 -07:00
qinglin.li 3e376f5418 dmc: page invalid due to panic [1/1]
PD#SWPL-163624

Problem:
get out of ddr size addr page flags to panic

Solution:
panic when write addr out of ddr
warning when read addr out of ddr

Verify:
txhd2 && g12a

Change-Id: I8bbe6e4185f433eb34868bb94fe0f32a06400a29
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-04-22 21:52:44 -07:00
zhenyu.gao f15afdb126 rdk: CB1 Fix vdin node in T5D DTS [1/1]
PD#SWPL-163808

Problem:
There is no "/dev/video71" in the am301
The DTS of am301 about vdin need to update

Solution:
Update DTS of am301 about vdin node

Verify:
T5D-AM301

Change-Id: Iae45f69e9fc0845f740c080cb690e15ae5710922
Signed-off-by: zhenyu.gao <zhenyu.gao@amlogic.com>
2024-04-22 02:31:59 -07:00
qiyao.zhou 42de440b10 vq: video display error when stress test [1/1]
PD#SWPL-160188

Problem:
Deadlock in videoqueue when unreg.

Solution:
Avoid Deadlock.

Verify:
txhd2

Change-Id: I08d6bd21f3443aea1419a877cb0bf33d48375db3
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2024-04-21 23:45:53 -07:00
Jian Hu d89d5856b5 clk: fix PTR_ERR(basic_map) coverity [1/1]
PD#SWPL-166397

Problem:
there is wrong parameter in PTR_ERR

Solution:
use pll_map instead

Verify:
t5m

Change-Id: I3af1b104ae42431c199d2789ed2f4ca64786d6d6
Signed-off-by: Jian Hu <jian.hu@amlogic.com>
2024-04-21 22:35:09 -07:00
jinbing.zhu 5d8482f923 amvecm: s7d add pi safa sr debug [1/1]
PD#SWPL-164975

Problem:
s7d add pi safa sr debug

Solution:
s7d add pi safa sr debug

Verify:
verify on s7d

Change-Id: I41f4fe280832504ff2bea9a07e3e0627df687400
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-04-21 22:35:01 -07:00
chuangcheng.peng fb3a3981d8 smartcard: add smartcard node [1/1]
PD#SWPL-163082

Problem:
support smartcard function

Solution:
add smartcard node

Verify:
verified at bm209

Change-Id: I631c150292d2d3775b2479d31fd3d90c242e75c1
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-04-21 22:34:52 -07:00
lei.chen f55ebe1c57 wifi: fix kasan read cross the border [1/1]
PD#SWPL-165731

Problem:
kasan read cross the border

Solution:
Copy specified length

Verify:
s7d

Change-Id: Iebf96b41aba493241b6dd20b5f756a4fa1b6adbf
Signed-off-by: lei.chen <lei.chen@amlogic.com>
2024-04-21 22:34:48 -07:00
Mingyen Hung 08e97d0aa4 crypto: bringup crypto driver for s7d [1/1]
PD#SWPL-163070

Problem:
Need to verify crypto driver on s7d

Solution:
1. Replacing kmalloc() with dma_alloc_coherent()
due to weird data abort.
2. digest_sz is specified in dts for s7d

Verify:
s7d + bm201

Change-Id: Ibeb09de26f8b6c825117e0791a3e51f74a8529df
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2024-04-21 22:34:45 -07:00
yuhua.lin 016b76601f video: 720p video display green screen when cvbs output [1/1]
PD#SWPL-165012

Problem:
hscale filter coef set error

Solution:
fix it

Verify:
g12a

Change-Id: Iff72419a98903e82a901f877221e85dc2b6f20e0
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2024-04-21 22:34:27 -07:00