Commit Graph

532 Commits

Author SHA1 Message Date
nengwen.chen 6f8b6c0f47 dtv_demod: fix s ber and adc fga gain and atsc ch if (V1.1.74) [1/1]
PD#SWPL-92501

Problem:
fix s ber and adc fga gain and atsc ch if.

Solution:
fix s ber(x1e7).
fix s adc fga gain(different gains are used depending on the tuner type).
fix DTV_TS_INPUT.
fix atsc ch if setting(compatible with R842 5M and 4.57M IF)
The ACI can be improved by using 4.57M.
fix j83b if agc target.
AMLDTVDEMOD_VER "V1.1.74".

Verify:
verify by T5D/S4D.

Change-Id: I451eac3e3d07e13824e24e95629e4985dbc72192
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-01-05 02:07:48 -08:00
dongfei.li 473db87699 frc: frc chg init table and fixed power set [2/3]
PD#SWPL-106844

Problem:
t5m_init

Solution:
t5m_init

Verify:
t5m

Change-Id: I106776190d1971fc948b0a60ca5c7fd8cb3ccf5c
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2023-01-05 00:07:50 -08:00
xinli.gao c4bd10f808 GPU: provide an api to allocate memory from a fixed area [1/1]
PD#SWPL-106500

Problem:
want to allocate memory from a fixed area in asymmetric system.

Solution:
declare cma area in asymmetric memory, and provide api

Verify:
t5m

Change-Id: I785e95a7f01ceff3a135b65c012ddb0b94be92da
Signed-off-by: xinli.gao <xinli.gao@amlogic.com>
2023-01-04 22:24:58 -08:00
Cheng Wang cbc64b0bb6 frc: modify buf of me compress [1/1]
PD#SWPL-106293

Problem:
frc init for t5m

Solution:
frc init for t5m

Verify:
T5M

Change-Id: Idd8b9d50c3a1693115f88330d941d10a31a2ee7f
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2023-01-04 01:07:23 -08:00
Brian Zhu db4d609728 vpp: sync over sync fixing from 5.4 [1/1]
PD#SWPL-106852

Problem:
Need add over vsync check

Solution:
Add protection for over vsync issue

Verify:
Vefified on t3

Change-Id: I873ee322996cf91671e9122dbfd1c23fe0fe1d59
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2022-12-31 08:11:19 -08:00
jintao xu 6344d06ab7 vc: fix vf->repeat_count[2] out of bounds [1/1]
PD#SWPL-105340

Problem:
panic when vf->repeat_count[2] out of bounds

Solution:
fix vf->repeat_count[2] out of bounds

Verify:
T7C

Change-Id: I1add92e74623deea9c5df24a85905eb9cd5bb74f
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
2022-12-31 06:19:36 -08:00
chen.xu 3045b80992 video_processor: sync code from 5.4 to 5.15 [1/1]
PD#SWPL-106614

Problem:
video_processor need sync code from 5.4 to 5.15.

Solution:
1.sync code from 5.4 to 5.15 for video_processor.
2.sync 5.4 code to 5.15 start commit Idee4fb
and end commit I67fa2f.
3.except I2e4c3e other already sync.

Verify:
T7C

Test:
sync code from 5.4 to 5.15 for video_processor

Change-Id: I41070cb1bd0960f0c29b6d28a9d7677febde6c7a
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2022-12-31 06:19:31 -08:00
xiang.wu1 4166820b47 hdmitx: slab out of bounds [1/1]
PD#SWPL-106184

Problem:
slab out of bounds in hdmitx setup attr

Solution:
add protection in hdmitx setup attr

Verify:
s905x4

Test:
DRM-TX-17

Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
Change-Id: Ib79a6e9eb4f6059a4641a72c6ccfb330c4daeaa6
2022-12-31 06:19:24 -08:00
dongfei.li 0e4f5324b1 frc: frc add power domain [1/1]
PD#SWPL-106597

Problem:
t5m add power domain

Solution:
t5m add power domain

Verify:
T5M

Change-Id: Icb8cc4928a434129b509bcd5ccf178bc2ae13853
Signed-off-by: dongfei.li <dongfei.li@amlogic.com>
2022-12-30 17:18:41 +08:00
MingLiang Dong 31158eb0b4 amvecm: t5m bringup [1/1]
PD#SWPL-101964

Problem:
t5m bringup

Solution:
t5m bringup

Verify:
verify on t5m

Change-Id: Ia0f8c96dafe9b66576b18d1a5f1787d39309072a
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2022-12-30 17:18:40 +08:00
hang cheng 303a10e39c hdmitx: optimise log of hdmi [1/1]
PD#SWPL-103011

Problem:
need to optimise log print

Solution:
optimise log, set low print level
for some low important information,
enable DEBUG macro to enable pr_debug

Verify:
ah212

Test:
on ah212, check log of boot up and hotplug

Change-Id: I65cc454ffd652555a4302b75b39a9078ce2d1fb6
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2022-12-29 00:41:03 -08:00
xujin.hu 000096e640 hdmitx: typocheck for kernel 5.15 secondly [1/1]
PD#SWPL-103534

Problem:
code style and spell incorrection of hdmitx

Solution:
typo check

Verify:
T7

Change-Id: Ib2f5a3629da0fee17463d9fd8352b6e02181e2dc
Signed-off-by: xujin.hu <xujin.hu@amlogic.com>
2022-12-28 02:48:01 -08:00
Hanjie Lin caa8b668c5 debug: gki optimize [2/4]
PD#SWPL-99365

Problem:
gki optimize

Solution:
1, code optimize
2, watchdog_hld to ko

Verify:
sc2_ah212

Change-Id: Ibb1b16bd61d794defb39d53f17ad86179ba4a661
Signed-off-by: Hanjie Lin <hanjie.lin@amlogic.com>
2022-12-27 04:32:55 -08:00
Wenjie Qiao 9b5facba10 hdmitx: update bit30 of register HDMIPLL_CTRL3 [2/2]
PD#SWPL-100034

Problem:
The 6G setting of HPLL VOC output as 6.8G, and this will
make the 1080p60hz shift to 70hz

Solution:
1. update bit30 of register HDMIPLL_CTRL3
2. add the test of pixel clkmsr

Verify:
T7/SC2

Change-Id: I1242906f48973d0b82f2276acd2988f3db6371ba
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2022-12-27 00:30:26 -08:00
gerrit autosubmit 83fee9b1be Merge "amvecm: coverity check modify sync to 5.15 [1/1]" into amlogic-5.15-dev 2022-12-22 22:21:57 -08:00
gerrit autosubmit 8e214d069c Merge "vdin: fix loopback venc0 on s5 issue [1/1]" into amlogic-5.15-dev 2022-12-22 19:06:03 -08:00
Evoke Zhang bd35f5bc7b lcd: enable clk for drm resume [1/1]
PD#SWPL-101375

Problem:
tv mode lcd clk can't enable when display mode set by drm resume

Solution:
enable lcd clk if it is disabled for drm resume

Verify:
ar301

Change-Id: Iae26fdc1722e2e406ee3ed95532aa493ba44acb9
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-12-21 08:14:33 -08:00
haitao.liu 3ec3436e79 vdin: fix loopback venc0 on s5 issue [1/1]
PD#SWPL-102175

Problem:
Cannot loopback venc0 on s5

Solution:
modify slice register setting

Verify:
s5

Change-Id: Ie1723db89ba1d94da7cd17f4a0c1cb39488c3138
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2022-12-21 22:23:35 +08:00
Xiangyu Cai 0fb60a21a8 amvecm: coverity check modify sync to 5.15 [1/1]
PD#SWPL-101084

Problem:
coverity check problem in 5.4

Solution:
sync the modify to 5.15

Verify:
t982ar301

Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
Change-Id: I7bc01812e30cacf4f7b6cb157e1b6aaccee2c6be
2022-12-21 01:07:39 -08:00
jialong.jiang ad36b01f71 hdr: add MAXCLL interface. [1/1]
PD#SWPL-104187

Problem:
add MAXCLL and MAXFALL interface.

Solution:
add MAXCLL and MAXFALL interface.

Verify:
A311D2-AN400

Change-Id: Ifba7dde510ec37e1af8e8b125b2f72d701e47c89
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2022-12-19 06:21:21 -08:00
lizhi.hu 11693ff3e9 lcd: typo fix [1/1]
PD#SWPL-103966

Problem:
typo check failed

Solution:
fix wrong word

Verify:
None

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: I5b239ce9a95e2fd4c768e6fed74125ced04b8d9b
2022-12-19 02:27:08 -08:00
Zhuo Wang c704db15be eth: c3 buildroot compile problem [2/2]
PD#SWPL-105841

Problem:
C3_5.15 buildroot use different config
not arm64 arm32

Solution:
add control for c3_5.15

Verify:
compile no error

Change-Id: I788f324aa3067c490f9f492568582d0d7f949459
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2022-12-18 23:17:19 -08:00
Hao Shi cca4855785 media: CF2 t5d support multi instance. [1/1]
PD#SWPL-105093

Problem:
t5d not support multi instance

Solution:
t5d support multi instance

Verify:
t5d

Signed-off-by: zhipeng.he <zhipeng.he@amlogic.com>
Change-Id: I0ff974f3b63a867eeb0ed2720cdfe82d1571a6cc
2022-12-17 06:10:36 -08:00
MingLiang Dong 81932b3baf hdr: add brighter mode for hdr tmo [1/1]
PD#SWPL-102808

Problem:
add brighter mode for hdr tmo

Solution:
add brighter mode for hdr tmo

Verify:
verify on T3

Change-Id: I1644f0d9d09cf75e6c62cb60ed436dab49f3d616
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2022-12-15 22:22:13 -08:00
xiang.wu1 2a22a49b88 EDID: Adjust the maximum supported TMDS clk [1/1]
PD#SWPL-102698

Problem:
HF-VSDB is not declared in EDID, and the highest
TMDS clk supported by the current TV can only be
obtained from VSDB.4K60HZ Y422,12bit (600Mhz)
exceeds the maximum clk range

Solution:
Adjust the maximum supported TMDS clk,Regarding
the maximum supported clk, refer to the tmds
clk in VSDB/HF-VSDB,Filter out unsupported patterns.

Verify:
s905x4

Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
Change-Id: I8428d62224ad71b1657ef7757e9d3c57a6872c47
2022-12-15 06:23:16 -08:00
Zhuo Wang 3d16eeccd1 eth: mac wol function [2/2]
PD#SWPL-98490

Problem:
porting wol function

Solution:
porting wol function

Verify:
AR321-T965D4_X9#REF#049

Change-Id: Ieaa67398c5ee09d0e8e7940163bed080b01af718
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2022-12-14 02:24:55 -08:00
qinglin.li da9a75de37 gki_tool: gki_tool __setup not useful [1/1]
PD#SWPL-105579

Problem:
__setup not useful

Solution:
add amlogic/gki_module.h in module_merge.h

Verify:
sc2

Change-Id: I720e8e668e0d9c5542067ac758836cb62d4256e2
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-12-13 20:09:43 -08:00
Jie Dai 064c664d96 lcd: kernel 5.15 add ioctl functions [1/1]
PD#SWPL-51205

Problem:
kernel 5.15 add ioctl functions

Solution:
add ioctl functions:
1. power_ctrl
2. mute_ctrl
3. phy_ctrl
4. ss_ctrl

Verify:
ar301

Change-Id: I6a98fc6f993cfeec3c8b67e5c1837011dd084923
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2022-12-13 08:20:57 -08:00
haitao.liu 0cd41d974d vdin: add more port support for start_tvin_capture_ex [1/1]
PD#SWPL-102683

Problem:
need screen capture for aux screen

Solution:
add vpp1/vpp2 only video and osd+video ports

Verify:
t7

Change-Id: Ib2c8bc4e89816bf953181a6a72a6b6ab4e71ea69
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2022-12-13 06:17:07 -08:00
qinglin.li 7a994a0bea module: add none gki build option [1/1]
PD#SWPL-104098

Problem:
add none gki build option

Solution:
add none gki build option

Verify:
sc2

Change-Id: I6e7d660c3fea43de789627201b114592366b71bf
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-12-13 06:16:57 -08:00
Cheng Wang c18fbb9e50 frc: frc typo check [1/1]
PD#SWPL-104325

Problem:
frc typo check

Solution:
frc typo check

Verify:
T3

Change-Id: I3b28649b313eb9bd7a0bcea37b8bb9aa37143906
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2022-12-13 04:25:11 -08:00
binbin.wang bb37a672c4 Thermal: Kernel panic when entering an illegal value [1/1]
PD#SWPL-102920

Problem:
Because of wrong logic when writing an invalid value,
the array is out of bounds

Solution:
Fix the wrong logic.

Verify:
T3

Change-Id: I01216d799201f49de42802d78a5297a0cb0e74d0
Signed-off-by: binbin.wang <binbin.wang@amlogic.com>
2022-12-12 20:15:08 -08:00
hai.cao 5a21b99404 media: fix typo check [1/1]
PD#SWPL-104404

Problem:
typo check report errors

Solution:
fix typo check

Verify:
no need verify

Change-Id: Ic74b4d21eadd749ff5c8a1fc8e249738d80aa304
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2022-12-12 03:29:05 -08:00
min.yang 09c8f33910 dtv_demod: fix dvb header file modification [2/4]
PD#SWPL-102958

Problem:
should remove amlogic define in
linux/dvb/frontend.h

Solution:
fix the modification

Verify:
verified by T + ohm

Change-Id: Ia533892ab17cf05735698c597d3be00689eafee9
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-12-09 08:17:09 -08:00
Evoke Zhang 8ccee88061 dummy_venc: add clear mute for dummy_panel [1/1]
PD#SWPL-104193

Problem:
keystone black screen for vpp post mute

Solution:
dummy_panel clear vpp post mute if needed

Verify:
ar301

Change-Id: I9ff89f8f700c1ba947a16f0992f524297984a723
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-12-08 02:00:28 -07:00
yuhua.lin 5682731907 media: type check issue [1/1]
PD#SWPL-103512

Problem:
fix typo problem

Solution:
fix typo problem

Verify:
null

Change-Id: I2f203535f2fefaca1fd4a018e08e670be36bc8b5
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-12-07 02:12:37 -07:00
miaohong chen 2d7aacf4b3 dma_manage: CB2 Optimize related interfaces input parameters. [1/1]
PD#SWPL-101773

Problem:
fd is used in the upper layer to facilitate cross-process.
If the fd is closed, an exception will occur when used in the kernel.

Solution:
Change the input parameter fd to dbuf.

Verify:
sc2

Change-Id: I14788bbc7119b7a3a6d696eec495432e05e8aa12
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2022-12-07 02:02:30 -07:00
Hao Shi 77986697bc codec_mm: enable codec_mm_scatter 64bit addr support. [1/1]
PD#SWPL-98294

Problem:
codec_mm_scatter can not cross 4g addr.

Solution:
enable codec_mm_scatter 64bit addr support.

Verify:
t7

Change-Id: I9829c29e40ddeb551a50fabcb7ff555fda79e99b
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Signed-off-by: Hao Shi <hao.shi@amlogic.com>
2022-12-05 21:08:11 -07:00
hang cheng 5afe136329 hdmitx: optimise drm hdcp flow when switch mode [1/1]
PD#SWPL-89027

Problem:
when switch mode under hdcp1.4, should not
trigger hdcp_tx22 daemon to change status.
otherwise, it may exit idle state and
enter polling(driver hdcp2.2 start) per 5ms
which cause high cpu CPU utilization

Solution:
when switch mode under hdcp1.4, don't
trigger hdcp_tx22 daemon to change status.
so that to keep in idle status

Verify:
ah212

Change-Id: Iea1db52013890f5f922a9a74fc1ff6bc29b9ebfe
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2022-12-05 21:08:07 -07:00
Jianxiong Pan f122912928 mm: pin locked file after fault. [2/2]
PD#SWPL-99264

Problem:
print the catual mlock size via page fault.

Solution:
cat /proc/mem_debug

Verify:
s4_aq222.

Change-Id: I2ed3b97d12cab6cfd8c72a86cd0249e3a2462e99
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-12-04 18:20:41 -07:00
Cheng Wang 43533f4ea2 frc: frc t5m pxp [1/1]
PD#SWPL-98161

Problem:
t5m pxp

Solution:
t5m pxp

Verify:
pxp

Change-Id: I783c5ba5588c65c9ea09cf01f67864d42b229936
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2022-12-02 15:12:13 +08:00
Evoke Zhang 3be76a2fed vout: support get bl_brightness dimming for vout ioctl [1/1]
PD#SWPL-96310

Problem:
need support bl_brightness dimming by vout

Solution:
support get bl_brightness dimming for vout ioctl

Verify:
an400

Change-Id: I8f209af2f2ea36ecbbce22d27b5ce8f89277bf33
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-12-02 15:12:13 +08:00
Evoke Zhang 6211ddd39f vout: update frame rate measure function for s5 [1/1]
PD#SWPL-101967

Problem:
s5 vout vs measure regs changed

Solution:
update vout vs measure regs for s5

Verify:
ar301, ax201

Change-Id: I0534c78b094b17509f3343b7e23ed0524683c78f
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-12-02 15:12:13 +08:00
yuhua.lin c3bcbf5e4f video: t5m video bring up [1/1]
PD#SWPL-98156

Problem:
t5m video bring up

Solution:
complete it

Verify:
ptm

Change-Id: I77b77cba5f1a7a55b2ace37b166580affe995748
Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
2022-12-02 15:12:13 +08:00
yuhua.lin 7401c0a463 osd: use reserved memory [1/1]
PD#SWPL-97910

Problem:
use reserved memory

Solution:
complete it

Verify:
t3

Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Change-Id: I1ce6861930bd80a5a439b723fcfb96e675be4b78
2022-12-02 15:05:56 +08:00
yufei.huan f070355da9 deinterlace: T3 Kernel 5.15 Android T Bringup - di [1/1]
PD#SWPL-97906

Problem:
T3 Kernel 5.15 Android T Bringup - di

Solution:
sync DI code

Verify:
smith

Change-Id: I590e2d71a453849d48207cccc3442e44da59c2da
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2022-12-02 14:04:56 +08:00
Jie Dai a1c039d4d1 lcd: t5m lcd bringup [2/2]
PD#SWPL-98144

Problem:
t5m lcd need bringup

Solution:
add lcd related code for t5m

Verify:
ptm/pxp

Change-Id: I4d79cad87d37a1b15d9b790d87b3fbf83331c626
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2022-12-02 14:04:55 +08:00
Cheng Wang 1f07c5f621 frc: frc sync code for 5.15 [1/1]
PD#SWPL-97912

Problem:
sync memc code from k-5.4

Solution:
sync memc code from k-5.4

Verify:
ptm

Change-Id: I2ea7af1c7887912f99bffdbb1bbe344d59698800
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2022-12-02 14:04:55 +08:00
lizhi.hu 0cf8dd1a8d lcd: fix phy set coding style [1/1]
PD#SWPL-97537

Problem:
previous commit about phy set is ugly.

Solution:
replace with enum.

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: I4fcba90fded92615741d5cc0f1b1c936257e4141
2022-12-02 14:04:55 +08:00
lizhi.hu 7144589547 lcd: fix phy not set [1/1]
PD#SWPL-97537

Problem:
lcd phy lane_lock not set when lcd probed in uboot,
result in ANA_CNTL19 set to 0 when lcd1&2 probe but conflict;
By the way, correct a few typo error.

Solution:
add lcd_phy_set() to lcd_phy_probe()

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: I0c4889be119c3c222af81e46d8f304ef11c172c2
2022-12-02 14:04:54 +08:00