Commit Graph

4521 Commits

Author SHA1 Message Date
Jian Cao f5d6a3a083 osd: support dim color debugging and blank functions for legacy viu2 osd [1/1]
PD#SWPL-145446

Problem:
dim color debugging and blank functions are not supported

Solution:
add this support

Verify:
t5d

Change-Id: Iceebb81648264e96848adb9d2a870ecc5c5fc30e
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-11-30 04:05:19 -07:00
yiting.deng ba72e92731 pll:s4: use udelay() func to delayed [1/1]
PD#SWPL-147922

Problem:
usleep_range() is not used in atomic context, when enable
hifi_pll_dco will dump_stack

Solution:
replace usleep_range() with udelay()

Verify:
s4_ap222

Change-Id: I16d4885ff520d4065d631f5608bbc80b4f0ccb48
Signed-off-by: yiting.deng <yiting.deng@amlogic.com>
2023-11-30 02:21:17 -07:00
yicheng shen 2fc1eca2a0 hdmirx: turn off hdmirx clks when shut down [1/1]
PD#SWPL-146122

Problem:
hdmirx 2m and 5m clk were not turned off when shut down

Solution:
turn off hdmirx 2m and 5m clk when shut down

Verify:
T5M/TXHD2/T7

Change-Id: I864a6465f71c2324a183d766aab1bf5acfc20241
Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
2023-11-30 02:21:10 -07:00
chengshuo.wang 7870466b81 wifi: fixed iw reg set [2/2]
PD#SWPL-143087

Problem:
1.iw reg set failed

Solution:
1.fixed iw reg set

Verify:
ok

Change-Id: I51e0d3b1dd1239b0e8a901cedb7a687b93260257
Signed-off-by: chengshuo.wang <chengshuo.wang@amlogic.com>
2023-11-30 00:19:12 -07:00
gerrit autosubmit 33d79dcc7f Merge "amdv: case5362 fail [1/1]" into amlogic-5.15-dev 2023-11-29 23:19:09 -08:00
yao liu 89ffcff922 amdv: case5362 fail [1/1]
PD#SWPL-144908

Problem:
1.case5362 fail after running other top1 case
2.bypass precision logic

Solution:
1.need reset top1_stats.enable
2.improve bypass precision logic when top1 missed

Verify:
t3x

Change-Id: I6b31d352d2fd2c55b267a10517dde5a0ea11ab5c
Signed-off-by: yao liu <yao.liu@amlogic.com>
2023-11-30 00:19:08 -07:00
donghui.wang 490a7b10ea ldim: fix config h/v active size [1/1]
PD#SWPL-147884

Problem:
get wrong h/v size when bootup

Solution:
get panel basic timing for h/v size

Verify:
t5m

Change-Id: Ib07ca87c379599b65949d635c39825470b5d559e
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-11-29 22:17:50 -07:00
lizhi.hu f66218a68b lcd: fix t3x vbyone p2p_ch_swap reg [1/1]
PD#SWPL-147508

Problem:
vbyone p2p_ch_swap set but not restored

Solution:
fix p2p_ch_swap

Verify:
t3x_bc302

Change-Id: I12c60ef137de8b6b1e710bb65148ae8d5ddec52f
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-11-29 22:17:47 -07:00
xiang.wu1 0b9451cbeb hdmitx: adjust the send packet process during the switch resolution [1/1]
PD#SWPL-141537

Problem:
avi colorimetry bt2020 is lost during switch resolution

Solution:
To maintain a relatively clean resolution switching process,
clear all pkt before the resolution switching process.
After the resolution switching is completed, the DV/HDR module
will call back the packet sending function as needed. Colorimetry
and other parameters are updated when the packet sending
function is called.
1. add clear pkt in disable module
2. add detach vinfo in disable module
3. clear some unnecessary colorimetry bt2020 setting in 20

Verify:
A311D/ohm

Test:
DRM-TX-17, DRM-TX-18, DRM-TX-19

Change-Id: Id059bd92499df01fe93690f6507f7f7f14d22795
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-11-29 22:17:40 -07:00
min.yang 842b8dfbc9 dvb-extern: add tuner module debug cmd (V1.18) [1/1]
PD#SWPL-147712

Problem:
remove tuner debug prop

Solution:
debug through dvb-extern

Verify:
verified by smith

Change-Id: I29a5430ee81a2996fb485191ad68516a12f0991c
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-11-29 22:17:08 -07:00
jian zhou dd13a73f3a audio: merge eARC tx and spdif related fix to reference [1/1]
PD#SWPL-146976

Problem:
merge eARC tx and spdif related fix to reference

Solution:
TV-92533 fix earc tx clock tuning error
TV-98495 when stream start, spdif get data from frddr

Verify:
t5m

Change-Id: I434ffe1c22689a09b6b8f1f0f85b0fc1e476d244
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-29 20:17:11 -07:00
Haotian Guo 2c99b9bdd0 hdmirx: set open flag when resume [1/1]
PD#SWPL-146138

Problem:
When resuming, the open flag is not set, and the state machine cannot jump

Solution:
set open flag when resume

Verify:
t7c

Change-Id: Id11a8018ac3a46eed390fb4b57e2b2cd59f73fff
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2023-11-29 06:07:46 -07:00
Jianxiong Pan e05a3e30ea mm: autopatch: remove useless printing of vendor in migrate. [1/1]
PD#SWPL-147434

Problem:
optimize printing.

Solution:
remove useless printing of vendor in migrate.

Verify:
local.

Change-Id: I1ed16b1499e5ea709dd0072e5cc1db5fe1fe1305
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-29 06:07:42 -07:00
qing.zhang 9537045ed1 audio: samesource control on ott t7c [1/1]
PD#SWPL-147685

Problem:
1. samesource not enable for ott

Solution:
1. add control for tdm samesource

Verify:
verify by ott t7c

Change-Id: I0304965b16e9f602f3bbf3d1a9893b6af5b76658
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-11-29 06:07:39 -07:00
Chuan Liu f9bdbb5eab clk_msr: add node in sysfs [1/1]
PD#SWPL-143834

Problem:
The user version has no debugfs and cannot get clk_measure through the node

Solution:
add node in sysfs

Verify:
c3-aw419

Change-Id: I874d53767350d0da96473819c32262f0b7442691
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2023-11-29 06:07:25 -07:00
Wentao.Sun 84633b5ca1 dts: provisionkey: move node to dtsi [1/1]
PD#RSP-5732

Problem:
move provisionkey node to dtsi

Solution:
move provisionkey node to dtsi

Verify:
AndroidT + sc2_ah212

Change-Id: I5d3e3a66141ed92a026f191d1ff5593f8c43b8ec
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-11-29 06:07:14 -07:00
Wentao.Sun 37fb9ca970 dts: s4d: modify reserved memory [1/1]
PD#RSP-5732

Problem:
secos node is not used after kernel 5.15

Solution:
combine bl31 and bl32 reserved memory to secmon node

Verify:
S4d_s805c1a

Change-Id: Ic9c6238138e66afb2afd59e0065b4e55dbda6132
Signed-off-by: Wentao.Sun <wentao.sun@amlogic.com>
2023-11-29 06:07:10 -07:00
qiyao.zhou eb04798445 vicp: multi-play abnormal in IPTV. [1/1]
PD#SWPL-147819

Problem:
VICP scaler param config has bug.

Solution:
1.use dw vframe when output size is 1/16 of input.
2.modify post scaler config.

Verify:
t3x

Change-Id: Ib612993e77adcea497fa9bd4ee917b0b2486e26d
Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
2023-11-29 02:20:43 -07:00
zhicheng.huang 8925b0e7c4 dtv_demod: fix dvbc blind scan init issue(V3.5.25) [1/1]
PD#SWPL-79478

Problem:
fix dvbc blind scan init issue

Solution:
1.fix dvbc blind scan init issue
2.AMLDTVDEMOD_VER V3.5.25

Verify:
s4d, t5m

Change-Id: I1c520032ee92f356c169d6a10246588e1ecfa9af
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2023-11-29 02:20:38 -07:00
haitao.liu 05e4956611 vdin: optimizing dump buffer [1/1]
PD#SWPL-146774

Problem:
dump buffer abnormal when hsize non-8-byte align

Solution:
do 8 bytes swap of excess bytes in every line

Verify:
t3x

Change-Id: I992bf98ea7a0c7f37254446610b9c57a3c8ecccf
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-11-29 02:20:35 -07:00
bowen cheng 83f73696ce cec: Init cec function from register [1/1]
PD#SWPL-69530

Problem:
wakeup logic don't follow UI cec on/off

Solution:
Init cec function from register

Verify:
T982

Change-Id: Ia4ec3a52ad29554b689379b06e58bd2a693aef85
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2023-11-29 02:19:29 -07:00
Doosan Baek c52457801a KT: modify key clean for IV slot [1/1]
PD#SWPL-147883

Problem:
IV slot does not need cleaning.

Solution:
IV slot is not clean.

Verify:
S1A

Change-Id: Id5f9bf3b95573cacb53de2e85796b10ce96ea7be
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-11-29 00:33:37 -07:00
Liang Yang a856f9ff4a spi-nand: device encryption [1/1]
PD#SWPL-130883

Problem:
need to support inline partition encryption

Solution:
add support inline partition encryption in
spi nand driver

Verify:
s1a

Change-Id: Iadb9b9ae121939ef37a3abbd603a5eec17500739
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
2023-11-29 00:33:11 -07:00
zhou.ning b95800e1d6 TXHD2: some dts files synchronizes the configuration [1/1]
PD#SWPL-142734

Problem:
301.dts has problems in some cases.

Solution:
synchronizes the configuration

Verify:
txhd2

Change-Id: I2513683063bda0acc1526c210e4f393ae2c6f674
Signed-off-by: zhou.ning <zhou.ning@amlogic.com>
2023-11-28 22:15:30 -07:00
dian.shao 46ce70eb57 usb: txhd2 phy [1/1]
PD#SWPL-147762

Problem:
phy config & driver fix.

Solution:
fix them.

Verify:
be311.

Change-Id: I4f1524b67f64f2cfc52d8cee76acc037a07b81b4
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2023-11-28 22:15:26 -07:00
Pengcheng Chen 082be53a3d vpp: fix vpp in padding not work with 4k120hz out [1/1]
PD#SWPL-147652

Problem:
vpp in padding not work with 4k120hz out

Solution:
add vpp_index == PRE_VSYNC case

Verify:
T3X

Change-Id: I6f8b31ca07c36cb6fc0afba60ba2c0302bd75574
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-11-28 19:57:04 -07:00
mingxiu.sun 15a3f407ab vdin & hdmirx: modify colorimetry delivery method [1/1]
PD#SWPL-125462

Problem:
open the HDMI2.0 ,the color of image is changed

Solution:
add vf info for colorimetry

Verify:
t5m kernel5.15

Change-Id: I126786f130d59fe2977ad8ea46b921aadd302d67
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2023-11-28 08:19:14 -07:00
linfang.zhao c1a543b990 drm: display abnormally [1/1]
PD#SWPL-146003

Problem:
osd1 and osd2 support afbc,but osd3 not support afbc

Solution:
add config in dtsi to distinguish whether different osd support afbc

Verify:
T5W

Change-Id: I3110e1de3ba6377be611d2d80ea0af593eeb10d4
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2023-11-28 06:33:23 -07:00
bowen cheng d8b1a04ec0 hdmirx: optimize cable_clk unstable process [1/1]
PD#SWPL-144765

Problem:
cable_clk unstable cause load EQ frequently

Solution:
need counter check after load EQ

Verify:
T7C

Change-Id: I0c5dec77890d9768ec261cafecc4701ea9d273b3
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2023-11-28 06:33:19 -07:00
yao zhang1 55f45aed42 configs: kernel cut for Amlogic hybrid android U [2/2]
PD#SWPL-143565

Problem:
Optimize kernel size.

Solution:
kernel cut for Amlogic hybrid android U.

Verify:
sm1/g12a

Change-Id: I583f9221b1ffc03cf5946128ee9b855d69b09a38
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-11-28 06:33:14 -07:00
congyang.huang c502d13b17 drm: add osd security support [1/1]
PD#SWPL-142625

Problem:
Some chips that support security func have not added security func

Solution:
Add osd security func for all chips

Verify:
sc2

Test:
DRM-OSD-110

Change-Id: If29741bfd9b4baee583922c9da023559426d1e45
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-11-28 06:33:10 -07:00
Pengcheng Chen b9620ea8ad vpp: vpp0 rdma write delay 1 vsync [1/1]
PD#SWPL-145037

Problem:
vpp1 render called vpp0 rdma write caused
vpp0 rdma write delay 1 vsync

Solution:
correct vpp0/vpp1 rdma write index

Verify:
T3X

Change-Id: I5d0563fea13c3402f0512d4bbd6ae44b4041e4b9
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-11-28 04:17:48 -07:00
jian zhou 1f25d93f7c audio: earc rx default is enable [1/1]
PD#SWPL-99911

Problem:
earc rx default is enable

Solution:
earc rx default is enable

Verify:
sc2

Change-Id: If252a7c99466c12b3e90fcef4a7ad2bc8b97af4d
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-28 02:15:56 -07:00
Jianxiong Pan bf1142d38d mm: optimizate cma release debug info. [1/1]
PD#SWPL-147434

Problem:
print information is incomplete.

Solution:
optimizate cma release debug info.

Verify:
local.

Change-Id: I251f6ee13ca32b38a800a0241903fa3c5c6c02ef
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2023-11-28 02:15:34 -07:00
yao zhang1 4fb2055cf6 dts: Add sm1 ac232 dts. [1/1]
PD#SWPL-146513

Problem:
Need support sm1 ac232 dts.

Solution:
Add sm1 ac232 dts.

Verify:
sm1 ac232

Change-Id: Iec8bdb71bed1d479ac84054937bba787bece5a6e
Signed-off-by: yao zhang1 <yao.zhang1@amlogic.com>
2023-11-28 02:15:31 -07:00
guoqing.sun 073e8a7480 usbcam: CB2 USBCAM Driver in kernel5.15. [1/1]
PD#SWPL-134049

Problem:
USB CAM Driver

Solution:
usb cam Driver

Verify:
android-u T5m

Change-Id: I9897ab68d35e0d9db337c1703101505f2e57c668
Signed-off-by: guoqing.sun <guoqing.sun@amlogic.com>
2023-11-28 02:15:26 -07:00
yujun.zhang 41a8769eda drm: fix color space conversion of viu2 [1/1]
PD#SWPL-145044

Problem:
For viu2 on sm1 & g12b, green color screen
if hdmitx gets connected until kernel has
been started.

Solution:
Configure rgb to yuv conversion when mode is
enabling and postblend is setting state.

Verify:
SM1 & G12B

Test:
DRM-OSD-129

Change-Id: I50d177f4445d83b147e8f161501256ef838d8fa8
Signed-off-by: yujun.zhang <yujun.zhang@amlogic.com>
2023-11-28 02:15:22 -07:00
Bichao Zheng 92da8aaea5 spinand: add DS35Q2GB support [2/2]
PD#SWPL-134893

Problem:
need add DS35Q2GB support

Solution:
add DS35Q2GB id

Verify:
a1

Change-Id: I18eef2cae78a2e672ee6ea8a0b3e1bac734b53b5
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2023-11-28 02:15:14 -07:00
Tao Zeng 9de64d8c21 zram: fix crash when cpu off line [1/1]
PD#SWPL-145324

Problem:
kernel NULL pointer panic when cpu off line

Solution:
The root cause is that context for zram is configured as 2 part:
one for direct reclaim and one for kswapd. They are not for per-cpu
but when a core is off, zram will free per-cpu context so caused panic
on other cpus. So we should remove free code for crypto hooks.

Verify:
T5M

Change-Id: I2e4c9362bda0ddf74c91c3dec55d39dd532f46c2
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2023-11-27 22:18:07 -07:00
donghui.wang fca167c13a backlight: modify bl_pwm_set_mapping [1/1]
PD#SWPL-146603

Problem:
set differnet pwm curve range

Solution:
set different pwm curve range

Verify:
t5m

Change-Id: I2f59269343e93be7ffafdf2548a8c86eb1ab5fc1
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-11-27 22:18:04 -07:00
qing.zhang 7f99437dfa audio: fix I2S in L/R inversion issue [1/1]
PD#SWPL-146275

Problem:
I2S recording the L/R data are inverted.

Solution:
Fix the TDMIN FS invert setting.

Verify:
A113X.

Change-Id: I6056cd68399970f61228afcbabb111a006e4acb3
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2023-11-27 22:17:56 -07:00
dongfei.li 1eaedc03d7 frc: frc restore enable setting [1/1]
PD#SWPL-145088

Problem:
restore enable flow

Solution:
restore old enable flow

Verify:
T5M

Change-Id: I18deb7f7b57d20d19c6874af2da95211ea3d15a9
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-11-27 22:17:53 -07:00
shaohui.sheng 4587c71d78 audio: C version PA1 bring up [1/1]
PD#SWPL-146278

Problem:
Modify the driver code of the C version PA1 chip

Solution:
Complete the driver code of the C version PA1 chip

Verify:
Checking

Change-Id: Ic4bcff1544c9bc442852a6a911cce1df67fe1d0c
Signed-off-by: shaohui.sheng <shaohui.sheng@amlogic.com>
2023-11-27 22:17:24 -07:00
nengwen.chen 3297334976 dtv_demod: fix dvbs diseqc timing (V3.5.024) [1/1]
PD#SWPL-147109

Problem:
fix dvbs diseqc timing.

Solution:
fix dvbs diseqc timing.
AMLDTVDEMOD_VER "V3.5.024".

Verify:
T5D.

Change-Id: I0ea06313abe807558357d91c6b36b5c7f71b6acb
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-11-27 20:09:37 -07:00
zhou.han 0516747dbf hdmitx5.15: dump hdmirx EDID and tx clkmsr [1/1]
PD#SWPL-144827

Problem:
add hdmirx EDID and tx clkmsr dump info into bugreport

Solution:
add dump node

Verify:
SC2/S5

Test:
bugreport

Change-Id: If058bc0da662f3e46139c4be705b54a22d8e37e9
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2023-11-27 20:09:34 -07:00
congyang.huang dcd8474d76 drm: t3x dual screen display abnormality [1/1]
PD#SWPL-145456

Problem:
1.main screen& the secondary screen cannot display video
2.freeze screen 10s after boot up
3.failed to allocate codec_mm_cma mem

Solution:
move the address of the logo to the last 8M of 3G memory

Verify:
t3x

Test:
DRM-OSD-117

Change-Id: I1659e5ef491167c21aea47286dbe4779bf60f033
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-11-27 20:09:28 -07:00
Sunny Luo def5c7e92c spicc: add cs-gpio requesting in device setup [1/1]
PD#SWPL-145604

Problem:
The cs-gpio pin can possibly be in other mux state, and yet
SPI HAL didn't request it into gpio state before use it.

Solution:
Request its cs-gpio into GPIO state in device setup

Verify:
C308L-AW419

Change-Id: Ie94ff7bda9f0f4fd2512d765e0698a5cea522183
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
2023-11-27 20:09:25 -07:00
Feng Chen b68a304179 nand: slcnand & spinand: fix mutex deadlock [1/1]
PD#SWPL-142875

Problem:
deadlock will happen in mark bad block process.

Solution:
add rsv-ops interface in rsv-manage to avoid deadlock.

Verify:
c3

Change-Id: I3841a8d3ca8c8f48142828b03ba9aefdf21adc62
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2023-11-27 20:09:21 -07:00
congyang.huang ed2efb2df8 drm: Display black screen 10s beteween logo and Startup video [1/1]
PD#SWPL-142765

Problem:
1.Because the first display skipped updating the register,
the scope obtained by vpp from postblend is incorrect.
2.The address of the logo is located at the front end of mem

Solution:
1.Read scope reg in postblend_init and return to vpp
2.Move the address of the logo back

Verify:
t3x

Test:
DRM-OSD-117

Change-Id: I6acc1464f24cc6326f509a0decdc280a612cac40
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-11-27 20:09:18 -07:00
gerrit autosubmit 0e45509260 Merge "hdmirx: Problem regression [1/1]" into amlogic-5.15-dev 2023-11-27 05:07:16 -08:00