Commit Graph

585 Commits

Author SHA1 Message Date
Huijuan Xiao 51f15ed7a3 aipq: t5m support aipq [1/1]
PD#SWPL-138322

Problem:
t5m support aipq.

Solution:
add t5m aipq flow.

Verify:
t5m

Change-Id: Iaf01c6edb512bbea01ebedeedd770869a25b7ad4
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2023-11-17 04:23:35 -07:00
chen.xu 7e0a996ccb uvm_aipq: need modify for aipq of GPU [1/6]
PD#SWPL-138653

Problem:
need modify for aipq of GPU.

Solution:
modify for aipq of GPU.

Verify:
T5M

Change-Id: I2703b3bba282eae827255793e9a94b659b37dc37
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-11-17 04:23:30 -07:00
Jian Cao 56be7cb185 media: delay clk/power/irq init for ge2d/dewarp [1/1]
PD#SWPL-144572

Problem:
dewarp/ge2d interrupt resource usage between RTOS and Linux

Solution:
To avoid interfering with RTOS clock/power/interrupt resources,
turn on and keep power/clk first.
Poll the status of rtos,
then turn off power/clk and register interrupt.

Verify:
T7C

Change-Id: Ie2a3ae61df97c594324ffb3dde68d41250c946e3
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-11-16 22:11:17 -07:00
ruofei.zhao 19abf54369 hdmitx: add SVD_VIC to store SVD in VDB [1/1]
PD#SWPL-145586

Problem:
When the vic of VSDB is stored first, the vic of video data block
is inserted at the end, and an error occurs in 420 capability map

Solution:
add SVD_VIC, used to store SVD in VDB, mapped with 420 CMDB

Verify:
S5/AX201-S928X

Test:
DRM-TX-44

Change-Id: I18b42e9c304b01b6712d9640f4bc08020595f305
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-11-16 20:15:33 -07:00
Nanxin Qin e8045f9b34 media: CF1 Adds debugfs for codec status management. [1/1]
PD#SWPL-145646

Problem:
Adds debugfs for codec status management.

Solution:
Add codec state module, mainly collect and
manage codec status information, and facilitate
the management of the configuration of each module.

Verify:
ohm

Change-Id: I8f877a954f9873c4aa4d632e007a67c0a41ff2b1
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-11-15 20:27:47 -07:00
yahui.liu 9198211c96 hdmitx: update hdmitx version [1/1]
PD#SWPL-142528

Problem:
update hdmitx version for release.

Solution:
update hdmitx version

Verify:
verify on ohm

Test:
DRM-TX-40

Change-Id: I8ba7e32e165b6a45cd0a30d9ab8e4494ac333475
Signed-off-by: yahui.liu <yahui.liu@amlogic.com>
2023-11-15 03:07:29 -07:00
donghui.wang 9593ac7960 ldim: fix power on duty on kernel [1/1]
PD#SWPL-144978

Problem:
duty change when enter kernel

Solution:
keep duty until get level_idx

Verify:
t3x bc302

Change-Id: I747f6389420d367d34e009f4758110ae49a28220
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-11-13 20:37:36 -07:00
hang cheng c04b4575db hdmitx: not clear edid when suspend [1/1]
PD#SWPL-144627

Problem:
when kernel goes to early suspend, need keep the edid data

Solution:
Keep edid data during the suspend state. If there is HPD in
early suspend, there will update the EDID in the bottom of
hpd ISR

Verify:
ohm

Test:
DRM-TX-38

Change-Id: If1975a68da8c7431bb7867359bc5368b37dbc1f3
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-11-13 02:59:19 -07:00
lele xiang 79835ce49e decoder: CF1 decoder transfer fcc flag to DI. [1/2]
PD#SWPL-144474

Problem:
For fcc,don't need keep di_multi memory

Solution:
Decoder transfer fcc flag to DI.

Verify:
ohm

Change-Id: I37d1da0dc5c99dd086ee1291d403525a009bc64b
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2023-11-13 00:02:52 -07:00
rong.quan 04275ad21a common: CB2 fix typo error . [1/1]
PD#SWPL-144466

Problem:
function name has typo error.

Solution:
fix typo error.

Verify:
ohm

Change-Id: I89e3d79da8ada1d445bc0e5a32b7502baaef3b46
Signed-off-by: rong.quan <rong.quan@amlogic.com>
2023-11-13 00:01:39 -07:00
zhikui.cui 6996aaf408 nand: support driver for T5D [1/1]
PD#SWPL-129598

Problem:
need support nand driver for T5D bringup

Solution:
select FixDiv2PLL clock source in module

Verify:
AM301_T950D4

Change-Id: Ida6b579062937fc3089583de300a69ec8ddfde91
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2023-11-10 08:17:22 -07:00
jian zhou 39b14aea33 audio: reset hpd when earc resume [1/1]
PD#SWPL-145468

Problem:
when suspend & resume, heartbeat lost,so earc disconnected

Solution:
when resume, reset hpd for earc discovery.

Verify:
t5m

Change-Id: I522108773d1f0262b2503e9c48126bd043184ea2
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2023-11-10 02:06:07 -07:00
jintao xu 28735aa3a3 di: free buffer when REG_STEP1 [1/1]
PD#SWPL-137948

Problem:
fcc 3 channel has di buffer

Solution:
free buffer when REG_STEP1

Verify:
sc2

Change-Id: I921fece2180357c6fb986a459475081a15239d20
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-11-10 02:05:23 -07:00
yufei.huan bcb0e2ba8f deinterlace: di prelink frc splash screen [1/1]
PD#SWPL-143172

Problem:
Splash screen when switching resolution

Solution:
Determine the output to screen ratio setting prehold

Verify:
T5m

Change-Id: I8c027e107287e5583923dcb271b1810fe00112ab
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-11-09 23:01:11 -07:00
lizhi.hu a7a934b019 lcd: support 4lane edp panel [1/1]
PD#SWPL-143094

Problem:
add support for 4 lane edp panel

Solution:
enable enhanced frame by DPCD

Verify:
t7_an400

Change-Id: I534eb2d0dbab9f38a99968a2e3a8ab16598a1e64
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2023-11-08 00:39:29 -07:00
linfang.zhao d44cc4a246 drm: add mute plane interface [3/3]
PD#SWPL-143936

Problem:
show or hide video does not work

Solution:
add mute plane interface

Verify:
AP222

Test:
DRM-OSD-111

Change-Id: Ib5898c9a0bc3201d397a3a33a9c073f0799c3aee
Signed-off-by: linfang.zhao <linfang.zhao@amlogic.com>
2023-11-07 04:51:50 -07:00
xiang.wu1 da7016341e hdmitx: check the box frl capability [1/1]
PD#SWPL-143972

Problem:
when clac_tmds_clk > max_tmds_clk, only check whether
the edid support frl, not check the box frl capability

Solution:
add check the box frl capability

Verify:
s905x4

Test:
DRM-TX-42

Change-Id: I502b130c7fc613d020566af35438465c52ee3b60
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2023-11-07 02:09:10 -07:00
zongdong.jiao b74f7746bb hdmitx21: add qms-vrr function [1/1]
PD#SWPL-137039

Problem:
Lack qms-vrr function

Solution:
Add qms-vrr function

Verify:
t7/an400

Test:
DRM-TX-17

Change-Id: I8aff33d9cf2db80c5b82310d8dd4531d5d32b288
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-11-03 01:05:11 -07:00
Long 482b6555d3 G12a: sdio and sdcard use time-sharing multiplexing. [1/1]
PD#SWPL-133324

Problem:
not support time-sharing multiplexing function.

Solution:
enable time-sharing multiplexing function.

Verify:
g12a_u212

Change-Id: I78392775c01b6b58aaf224b47537669bfe7737e1
Signed-off-by: Long <long.yu@amlogic.com>
2023-11-01 20:38:03 -07:00
Xingxing Wang 195a41ef95 thermal: add media cooling device on txhd2 [1/1]
PD#SWPL-141014

Problem:
txhd2 need to add media related thermal control

Solution:
1. add media cooling device. media module should call
media_cooling_register to register the cooling device.
and usually configure maxstate of the cooling device.
2. reconstruct cpucore cooling device.

Verify:
txhd2

Change-Id: I0576e0d91a3062b60f877a4e8577e4fe84e5f53b
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2023-10-30 20:03:42 -07:00
zongdong.jiao 32a2031511 hdmitx21: add sbtm packet sendout func [1/1]
PD#SWPL-142695

Problem:
add sbtm packet sendout func

Solution:
add sbtm packet sendout func

Verify:
s5/ax201

Test:
DRM-TX-17

Change-Id: I3479412e30415e0a6cf47e233e1c0b78460759fb
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-30 04:08:59 -07:00
zongdong.jiao ddc17be80e hdmitx: cleanup the bool return value in edid [1/1]
PD#SWPL-141768

Problem:
cleanup the bool return value in edid

Solution:
cleanup the bool return value in edid

Verify:
sc2/ah212

Test:
DRM-TX-17

Change-Id: I05ab9f8a5d20c457178349f7400f4ccb6e009d20
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-30 03:59:50 -07:00
Pengcheng Chen 745da85bd6 vpp: set vd1_vd2_mux according dts cfg [1/1]
PD#SWPL-143084

Problem:
vd1_vd2_mux set error

Solution:
set vd1_vd2_mux according dts cfg

Verify:
t5db

Change-Id: Ie1b8fd9a9e158f336559b6925612d624a85bf807
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-29 22:19:39 -07:00
zhikui.cui a3c1189645 nand: select slc nand mode [1/1]
PD#SWPL-142784

Problem:
can't read slc nand id

Solution:
select slc mode when detect prop "spi_cfg" in dts

Verify:
A4

Change-Id: I64d536d72c628bcd525177f5d732a8554b08b7b8
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2023-10-26 23:53:41 -07:00
hai.cao db11e0d8aa video: remove mutex in video mute [1/1]
PD#SWPL-143291

Problem:
mute function will use in other module isr

Solution:
remove it,and set mute use fixed bit

Verify:
txhd2

Change-Id: I7f09f1ea1efb6269eef6422b7e5730ecdadc484e
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-10-26 05:11:41 -07:00
qiang.liu 22f0c79a53 vdin: dv 444 low-latency need convert to 422 [1/1]
PD#SWPL-138069

Problem:
dv 444 low-latency not convert to 422 will abnormal

Solution:
dv 444 low-latency need convert to 422

Verify:
t5w

Change-Id: Iff9d00a31d135334feb5bc5943f82426768f5e31
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2023-10-24 04:19:11 -07:00
Cheng Wang 53fa917bc1 frc: turn off memc when video mute [1/1]
PD#SWPL-143058

Problem:
turn off memc when video mute

Solution:
turn off memc when video mute

Verify:
T3X

Change-Id: I8e631176e4cc3fc7542d6457770bef2bc61fde85
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2023-10-22 21:59:24 -07:00
chen.xu 08dac70afd vpp: fix HDR10 and HLG input and output format error [1/1]
PD#SWPL-139184

Problem:
HDR10 and HLG input and output format error for pip mode.

Solution:
adapter HDR10 and HLG input and output format for pip mode.

Verify:
S5

Change-Id: Ideb162c760bab1f294bf624243247033886f322b
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-10-22 21:58:52 -07:00
Evoke Zhang 8bb4f04438 lcd: optimize clk control flow [2/2]
PD#SWPL-129167

Problem:
lcd clk control flow need optimized

Solution:
optimize lcd clk control flow

Verify:
at301, bc302, be311

Change-Id: I1fcb00b2d07bfc61029782fe04843c1321c6714e
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2023-10-22 21:58:46 -07:00
qianqian.cai 4ce06127b6 deinterlace: txhd2 change source timing picture shaker [1/1]
PD#SWPL-138382

Problem:
picture shaker

Solution:
set ration for pre-link bypass

Verify:
txhd2

Change-Id: I2509507165172e0de2000662656432b6b652732a
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2023-10-22 20:03:42 -07:00
Jian Cao 58fda8bccf vpp: add support for video_composer reverse [1/1]
PD#SH-16709

Problem:
video_composer cannot reverse display

Solution:
add this support

Verify:
t3x

Change-Id: If109dadff12cdba288cb3c3bb0c0f6ffc865935b
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2023-10-20 02:03:58 -07:00
lukang.jia 4d31c3d48c frc: dly frc enable on video window [1/1]
PD#SWPL-141912

Problem:
Connecting RX devices without entering channels,
operating TV OSD, flashing screen

Solution:
turn off mcdw in t3x 60hz,
dly frc enable on video window in 60hz

Verify:
T3X

Change-Id: Id8022682f670c529636f10a9a2617de2e8d69eee
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2023-10-19 23:53:42 -07:00
zhou.han dcfb4f8a49 hdmitx: share _show_aud_cap [1/1]
PD#SWPL-141587

Problem:
dump 'aud_cap' in the hdmitx_common directory.

Solution:
move the node 'aud_cap' from tx20 and tx21 to
hdmitx_sysfs_common, and dump 'aud_cap' in hdmitx_edid.

Verify:
ohm

Test:
aud_cap

Change-Id: I34cba3ffc81b2e5cf93c4cc3e10ae0b555feb018
Signed-off-by: zhou.han <zhou.han@amlogic.com>
2023-10-19 02:09:45 -07:00
jintao xu 1c98820db9 di_backend: fix panic when dtv change sorce [1/2]
PD#SWPL-142722

Problem:
panic when dtv change sorce

Solution:
1: v4lvideo lock need include all vf in dq thread
2: reset all parameter when init
3: fix get err file when drop

Verify:
sc2

Change-Id: I8ee754bbecfb1166dd64d231df29742a37efde9d
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2023-10-18 08:13:48 -07:00
Nanxin Qin 0a10d170ea media: CF1 Extends the type of dmabuf for info dumping. [1/1]
PD#SWPL-142144

Problem:
Extends the type of dmabuf for info dumping.

Solution:
It supports the dump of commonly used of dmabuf info,
which are UVM, ES, and dmabuf heap. Please refer to
the confluence instructions for specific usage.

Verify:
ohm

Change-Id: I5f1482043c46ef983c37277bec1eb49cf70bd4fd
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
2023-10-18 08:13:43 -07:00
Ao Xu 7ce99422d4 drm: add ready property to indicate hdmitx status [1/1]
PD#SWPL-142076

Problem:
hwc can't get hdmitx status

Solution:
add ready property to indicate hdmitx status

Verify:
ohm

Test:
DRM-TX-24

Change-Id: Iffa26048f0d910c614ec901e1dcff48dc189a090
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-18 06:19:23 -07:00
hang cheng 07f48177dc hdmitx: disable output if plugout during bootup [1/1]
PD#SWPL-92410

Problem:
hdmitx output is not disabled if there's plugout
event during bootup period

Solution:
disable output if plugout during bootup, and let
system to set hdmi mode when it's ready

Verify:
ohm

Test:
DRM-TX-38

Change-Id: I6f933dea92ad96a562d2b271e2c327422eab30e9
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-18 06:19:18 -07:00
jialong.jiang 6a9f81b3a6 amdv: 5.15 ioc move to uapi. [1/1]
PD#SWPL-140850

Problem:
5.15 ioc move to uapi.

Solution:
5.15 ioc move to uapi.

Verify:
t3.

Change-Id: Icc1bd8efb807a84d55fd3b380fd3a016b34f4849
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-10-18 06:19:13 -07:00
ruofei.zhao 3eedce7dd8 hdmitx: modify the default max_tmds_clk [1/1]
PD#SWPL-140324

Problem:
the current default max_tmds_clk is 150MHz,which is not reasonable

Solution:
set the default max_tmds_clk as 165MHz when the max_tmds_clk field in
EDID is invaliable

Verify:
AX201-S928X

Test:
DRM-TX-35

Change-Id: I939eacf64ba4fff35dcde5379f36e159bf64e5da
Signed-off-by: ruofei.zhao <ruofei.zhao@amlogic.com>
2023-10-18 04:14:14 -07:00
hang cheng 3035b2f675 hdmitx: abstract disable output flow [1/1]
PD#SWPL-142486

Problem:
need to abstract disable output flow

Solution:
abstract common disable output flow

Verify:
Ohm + android U

Test:
DRM-TX-38

Change-Id: I26812288a9b11ae1002de43f10437d357ac77844
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-17 22:24:20 -07:00
zongdong.jiao c9aebd60b1 hdmitx: update tx21 to call common audio api [1/1]
PD#SWPL-141802

Problem:
Update tx21 to call common audio api

Solution:
update tx21 to call common audio api

Verify:
sc2/ah212

Test:
DRM-TX-33

Change-Id: I706643a7a8a5bf5fe3de90a62342106c2f7b6ca0
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-17 05:58:49 -07:00
hai.cao d5f81e3928 video: expand vpp mute function [1/1]
PD#SWPL-142295

Problem:
vpp mute control conflict

Solution:
control on or off by module self

Verify:
txhd2

Change-Id: Id3f35903c5c409793fd303d0086975434e83e137
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2023-10-17 04:48:42 -07:00
zongdong.jiao 658607f9df hdmitx: cleanup and tidy audio parameters [1/1]
PD#SWPL-141560

Problem:
Need to cleanup and tidy audio parameters

Solution:
cleanup and tidy audio parameters

Verify:
sc2/ah212

Test:
DRM-TX-33

Change-Id: If420acbdc69f218122d2a74f6471d83c41e3f89a
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2023-10-13 08:23:40 -07:00
sky zhou 3b0cdbc070 hdmitx_common: cleanup modesetting flow [1/1]
PD#SWPL-141585

Problem:
there are similar code for mode enable/disable

Solution:
remove disable when enable mode;
check disable status when enable;
move uevent for tracer to hdmitx_tracer;
remove init_uboot_mode and use pre/post mode instead;

Verify:
verify on ohm/t7c

Test:
DRM-TX-42,DRM-TX-43

Change-Id: I63be69ae8c7bc494dbe2cf5837221fa672405268
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
(cherry picked from commit 5034109c558dbbaafc8bb2fa42b681dd80e11f06)
2023-10-13 03:55:00 -07:00
MingLiang Dong 76f3142fb0 amvecm: add sdr2020 source process [1/1]
PD#SWPL-140725

Problem:
new feature, add sdr2020 source process case

Solution:
new feature, add sdr2020 source process case

Verify:
t5m

Change-Id: I5d4d701c11066bc853b2cf24579363cec44bd963
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2023-10-12 09:25:00 +00:00
Doosan Baek 7cce3b0ed7 seckey: add s/w vendor id [1/1]
PD#SWPL-141635

Problem:
need support s/w vendor id.

Solution:
add s/w vendor id.

Verify:
s1a

Change-Id: I1fc71057a7a376b24c92b33532cb26917c746d08
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-10-11 21:18:38 -07:00
jiabin.chen 08b5f30ce6 wifi: kernel 5.15 add wifi comm API [4/4]
PD#SWPL-141905

Problem:
kernel 5.15 have no wifi comm API

Solution:
kernel 5.15 add wifi comm API

Verify:
ohm

Change-Id: I14b3443d7ce7894c019cd76f0891f157f15f1f5d
Signed-off-by: jiabin.chen <jiabin.chen@amlogic.com>
2023-10-11 00:27:17 -07:00
donghui.wang 0c4c5d3713 ldim: add cus_fw set pq interface [1/1]
PD#SWPL-138650

Problem:
miss cus_fw set pq interface

Solution:
add cus_fw set pq interface

Verify:
t5m

Change-Id: Icef9b5a9abc37795f558b6afc94a4b0d0714eff0
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-10-10 00:28:47 -07:00
donghui.wang b5debce2de ldim: add pwm_phase parameter [1/1]
PD#SWPL-137934

Problem:
add pwm_phase parameter

Solution:
add pwm_phase parameter

Verify:
kernel5.15

Change-Id: If189da5133e2934ab435d7eae23c55a7ec7c5699
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2023-10-10 00:28:42 -07:00
zhentao.guo 3edbf5ef50 media: CB1 Fix cts CRC flaky issue [1/1]
PD#SWPL-139469

Problem:
Dirty date in cacheline may pollute data in memory when
flush cacheline

Solution:
Use noncache mapping in afbc decompress lib

Verify:
T7C

Change-Id: I4f6ed2ad6473c0aaab80d175663434b38dfb2af5
Signed-off-by: zhentao.guo <zhentao.guo@amlogic.com>
2023-10-09 23:18:47 -07:00