Commit Graph

134 Commits

Author SHA1 Message Date
xiang.wu1 ac4629a608 hdmitx: enable null packt for special TV [1/2]
PD#SWPL-93252

Problem:
flash screen time to time under 1080p 444,10/12bit

Solution:
enable NULL packet for this special TV

Verify:
ah212

Change-Id: I17bd2c587994ec43c719fdf62fe92595d0af7e98
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2022-09-27 21:31:48 -07:00
sky zhou dbadb608b8 hdmitx_common: share edid related struct & drm api [1/1]
PD#SWPL-94820

Problem:
share get_content_types/get_dv_info/get_hdr_info code
for tx20&tx21.

Solution:
move edid related struct & drm api to hdmitx_common.

Verify:
verify on OHM.

Test:
DRM-TX-8, DRM-TX-9, DRM-TX-10, DRM-TX-11, DRM-TX-12

Change-Id: I9f0358e4690ab035dcbf38d2ed06b5939aedd919
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2022-09-27 02:46:56 -07:00
min.yang a4cc1a45ff dvb_extern: add cxd2878 demod id [1/1]
PD#SWPL-95455

Problem:
should support ext-demod build.

Solution:
sync cxd2878 demod id with 5.4.

Verify:
verified by T + ohm

Change-Id: Ib0670c623c15c27e1f96d7d75293034ce3dbbcbf
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-27 02:29:08 -07:00
yao liu 32e6e3df54 amdv: sync code from kernel-5.4 [1/1]
PD#SWPL-95643

Problem:
5.15 kernel missing many patches

Solution:
sync code from kernel-5.4

Verify:
ohm

Signed-off-by: yao liu <yao.liu@amlogic.com>
Change-Id: I26cfa46574781c980abb0024b859655901d71dcf
2022-09-27 00:13:40 -07:00
Bin.Wang2 e8358867e0 amvecm: match ioctl struct with pq server [1/1]
PD#SWPL-93488

Problem:
luma,saturation,hue ioctl struct type not match with pq server

Solution:
use the same struct type

Verify:
sc2/tm2/t3

Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
Change-Id: I53f335f4f1b248a24ecc3dcdd48b37f1e38eafb9
2022-09-26 23:16:52 -07:00
sky zhou ea8949c2c0 hdmitx_common: add hdmitx_sysfs_common [1/1]
PD#SWPL-92851

Problem:
tx20&tx21 should share same sysfs implement

Solution:
create hdmitx_sysfs_common to share sysfs implement.

Verify:
verify on OHM.

Tests:
DRM-TX-4, DRM-TX-5

Change-Id: I0edc39ea8bd26bbee6ddfcea0146dfaa95b394f2
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2022-09-23 07:02:55 -07:00
sky zhou bbb52bbfd3 hdmitx_common: add common drm bind in hdmitx_common [1/1]
PD#SWPL-92711

Problem:
tx20&tx21 should share drm bind part.

Solution:
move out drm bind code and re-implement tx hook apis.

Verify:
verify on OHM.

Tests:
DRM-TX-3,DRM-TX-4,DRM-TX-5

Change-Id: I27f31bc3114b792a035accbe205f19c9ed0657cf
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2022-09-23 04:07:51 -07:00
binqi zhang c46b1b7637 dmaheap: get and handle buffer flag from gralloc [1/1]
PD#SWPL-52253

Problem:
implementation of GPU DDK and gralloc
due to switching from ION to DMA-BUF heaps

Solution:
1.get and handle buffer flag from gralloc
2.change dambuf and ion heap size

Verify:
AndroidT kernel5.15 ohm

Change-Id: I55b7206bf366dadd2499adc53713686e6d4c5684
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2022-09-22 23:45:40 -07:00
song.han b7fc4f5f71 iotrace: add iotrace function [2/2]
PD#SWPL-92722

Problem:
iotrace miss function

Solution:
add function in iotrace driver,like smc/sched/clk/pw

Verify:
S4D_AP222

Change-Id: Ie59bac5863e5a4420b90d95a0ecae0bcb0584fb6
Signed-off-by: song.han <song.han@amlogic.com>
2022-09-22 22:54:00 -07:00
xiang.wu1 73d39fb18a hdmitx: Do not reset found SAD count during parsing [1/1]
PD#SWPL-93372

Problem:
SAD count is being reset when starting to parse a new extended block
resulting in loss of audio capabilities

Solution:
Do not reset variables when starting to parse a new block. They
should be reset before starting to parse EDID and are already
being reset before starding the EDID parse

Verify:
ap222

Change-Id: I31d6b0edc16a481684784e5be404546d85695f0b
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2022-09-22 02:41:14 -07:00
min.yang 4d69a70eaa Demod: optimize the interface call by tuner [1/1]
PD#SWPL-95019

Problem:
reduce demod header file dependencies for tuner

Solution:
move the interface to aml_demod_common.h

Verify:
verified by T + ah212

Change-Id: I5292ea3dcf09968a1d3f7dcea4355673a35ca668
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-21 22:14:16 -07:00
dehong.chen bde3a82993 Common_drivers: CB2 common_drivers have typo error [1/1]
PD#SWPL-93154

Problem:
common_drivers have typo error

Solution:
clear common_drivers typo error

Verify:
ohm

Change-Id: I492462889bd19f57483c843fe03cfb963466873d
Signed-off-by: dehong.chen <dehong.chen@amlogic.com>
2022-09-21 22:14:08 -07:00
Bin.Wang2 424de41130 amvecm: t7c sync code for bring up [1/1]
PD#SWPL-94196

Problem:
sync code from kernel 5.4 to 5.15 for t7c bring up

Solution:
sync code

Verify:
t7/t7c

Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
Change-Id: Ib3cd0c53058c9115dc4b06bbdbce6fc139a2b51f
2022-09-20 22:53:26 -07:00
pengzhao.liu c2a22ec002 typo: fix typo issue [1/1]
PD#SWPL-89627

Problem:
typo check issue

Solution:
fix typo issue

Verify:
Typo

Change-Id: I388cdac5f7d1e4448225c13aa91bb5d641e5d146
Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
2022-09-20 22:15:28 -07:00
Wenjie Qiao 6ce8cbb164 hdmitx21: 422 correct map and enable the dither [1/1]
PD#SWPL-93463

Problem:
When output y422 colorspace, the VP_OUTPUT_MAPPING_IVCTX needs to
configure correctly. Otherwise the low bits will be skipped.
The dither of 10 bit to 8 bit not enable.

Solution:
Correct the colorspace y422 mapping.
Enable the dither of 10 bit to 8 bit.

Verify:
T7

Change-Id: I6641499e036e535333a4caad3ea67f11249735e3
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2022-09-20 22:15:24 -07:00
sky zhou 64f128cbb1 hdmitx: abstract tx common struct [1/1]
PD#SWPL-93233

Problem:
abstract tx common struct

Solution:
add hdmitx_dev_common in hdmitx_common,
and move uboot parameter to it.

Verify:
verify on OHM.

Tests:
DRM-TX-1

Change-Id: Ie23e1d96975724bcc35f19ef6d5a5a55a044cef1
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
2022-09-20 22:15:20 -07:00
min.yang 45e5a0d144 Tuner: sync tuner id with 5.4 [1/1]
PD#SWPL-84715

Problem:
keep tuner id synchronized.

Solution:
porting id from 5.4

Verify:
verified by T + ah212

Change-Id: Iba63050a4e81bf87f7a4549bf386cfe3f97e3125
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-20 00:06:29 -07:00
xiang.wu1 09bf1863a6 typo check: Hdmitx modify the wrong word [1/1]
PD#SWPL-93141

Problem:
Some words are misspelled

Solution:
Change to correct

Verify:
S905X4

Change-Id: I0cbeb8fca54e14f7d0c50b56ca353142fa89f4d3
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2022-09-15 10:38:31 +08:00
xiang.wu1 73421e7693 hdmitx: add DDC reset before do EDID transaction [1/1]
PD#SWPL-80565

Problem:
after resume, EDID read abnormally

Solution:
after resume, add DDC reset before do EDID transaction.

Verify:
S905X2

Change-Id: Ibd411dc3da67406aed455a0698018afbe3428857
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2022-09-14 06:09:56 -07:00
hongyu.chen1 ffe9eabf1b typo: fix typo issue in pm code [1/1]
PD#SWPL-89627

Problem:
typo check issue

Solution:
fix typo issue

Verify:
Typo

Change-Id: I212de191838a4b21dc3cbe7a4bb3df499fe7394e
Signed-off-by: hongyu.chen1 <hongyu.chen1@amlogic.com>
2022-09-13 22:04:56 -07:00
yufei.huan 79425d5660 GDC/OSD/canvas/video-composer/dolby: word spell error problem [1/1]
PD#SWPL-93139

Problem:
word spell error problem

Solution:
modified

Verify:
sc2

Change-Id: I7b4aa6165d73f2c19994ed0460a79d605fde1a58
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2022-09-12 18:57:10 -07:00
Wenjie Qiao 27e85cf459 hdmitx: 5.4 sync to 5.15 [1/1]
PD#SWPL-93028

Problem:
5.4 sync to 5.15

Solution:
sync 5.15

Verify:
sc2

Change-Id: If761bb0e0201ae6085e3b87f5eeafca9a29a4a75
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2022-09-09 08:08:29 -07:00
MingLiang Dong b9f09bf2f0 amvecm: bypass eye protect for dv [1/1]
PD#SWPL-93204

Problem:
because dv sink-led out crc failed, cause black screen

Solution:
bypass eye protect for dv

Verify:
sc2

Change-Id: I8dd8a3abd26b2dd675760b17ee8804f498b5ce35
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2022-09-09 16:04:58 +08:00
jinbing.zhu 0e5a2b01f9 amvecm: fix typo word. [1/1]
PD#SWPL-93142

Problem:
fix code typo error

Solution:
fix code typo error

Verify:
S905X4/AH212

Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
Change-Id: Id07d5ab1cf9958188ab40b72bb58d868486d518e
2022-09-08 19:46:59 -07:00
lele xiang 06f71d68f9 decoder: CF1 The driver supports es input using dmabuf mode. [1/2]
PD#SWPL-92321

Problem:
driver supports dmabuf es input.

Solution:
driver supports dmabuf es input.

Verify:
ah212

Signed-off-by: lele xiang <lele.xiang@amlogic.com>
Change-Id: Ie64f3a948dad3aff0a54fedfefa6abda1f1f76ac
2022-09-08 14:01:44 -07:00
shipeng.sun f19a58f503 damabufmanage: CF1 Add codec2 clear es support [1/1]
PD#SWPL-92587

Problem:
1. Add codec2 es type support export private
meta data use pass hdr information

Solution:
1. Add codec2 es type support export private
meta data use pass hdr information
2. Change Dmabuf alloc return fd replace phyaddress

Verify:
S905X4-AH212

Change-Id: I9847ecfcb5c819b389583bf997f3a95134c9364e
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2022-09-07 20:06:45 +08:00
junyi.zhao 82e39409d1 leds: add tlc and aw driver [1/1]
PD#SWPL-91800

Problem:
there is no ledIc driver

Solution:
porting driver

Verify:
s4 ah212

Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
Change-Id: Id7e22d21b3378c56bdf2d0f00e55083f0830d94b
2022-09-07 20:06:45 +08:00
pengzhao.liu b946ffb848 typo: clear typo problem [1/1]
PD#SWPL-89627

Problem:
clear typo problem

Solution:
clear typo problem

Verify:
s4d

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
rong.quan d0bcae7d01 vpp: CB2 fix typo error [1/1]
PD#SWPL-90374

Problem:
There are spelling errors in the code.

Solution:
Check the spelling.

Verify:
sc2

Change-Id: I069fc253b91842a1f1e9f2d8b5dd45a972b54191
Signed-off-by: rong.quan <rong.quan@amlogic.com>
2022-09-07 20:06:44 +08:00
binqi zhang 4888a345fc UVM: fix null pointer dereference [1/1]
PD#SWPL-92386

Problem:
1.null pointer dereference in mua_get_meta_data
2.missing two CLs from kernel5.4

Solution:
1.add protect for potential null pointer;
2.cherry pick the following two CLs:
https://scgit.amlogic.com/#/c/234215/
https://scgit.amlogic.com/#/c/217078/

Verify:
AndroidT kernel5.4 ohm

Change-Id: I0eb4833d75ce7e11e80fe234a21f4bd7042de8ea
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2022-09-07 20:06:44 +08:00
lele xiang 1c3575f03a dmaheap: CF1 add codec_mm dmaheap. [1/1]
PD#SWPL-90930

Problem:
5.15 not support ion default

Solution:
add codec_mm dmaheap instead of codec_mm_cma

Verify:
ohm-sc2

Change-Id: I104883ff9ce0c19141fb90f35e492a76962dbecd
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2022-09-07 20:06:44 +08:00
shipeng.sun 0c40a7cedb damabufmanage: CF1 support alloc cma memory [1/1]
PD#SWPL-88808

Problem:
1.support alloc cma memory by dmabufmanager
2.update secure vdec dmabuf pool

Solution:
1.support alloc cma memory by dmabufmanager
2.Update secure vdec dmabufpool capacity by maxallocsize

Verify:
S905X4-AH212

Change-Id: I3ca8ceec06097eb848072cc45d5b7bd7b3d854ac
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2022-09-07 20:06:43 +08:00
Miaohong Chen 0d2fdc169a codec_mm: CB2 Scatter memory leakage. [1/1]
PD#SWPL-86524

Problem:
Probability of scatter memory leak
when switching resolutions frequently.
The reason is that the scatter map is an array.
Since the buffer is not limited,
the number of buffers exceeds the upper limit of the array.
When alloc scatter memory,
there is no map array record.
And the release is unsuccessful, memory leaks occur.

Solution:
increase map array size.

Verify:
sc2

Change-Id: Iad837fb8d2b80a21a368d289b6826eae5860ee61
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
2022-09-07 20:06:43 +08:00
min.yang fcfd8c5383 demod: use orginal dvb-core [1/1]
PD#SWPL-89132

Problem:
use dvb-core to ko.

Solution:
1.delete dvb_frontend.c
2.change included header path.

Verify:
verified by ohm and oppen.

Change-Id: I76c8b59f5b232ddaa84bf5deb258f70be825eea6
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-07 20:06:43 +08:00
chuangcheng peng 7687f59168 dvb-core: use origion dvb-core in kernel [2/2]
PD#SWPL-89132

Problem:
use dvb-core to ko

Solution:
put aml modification to dvb-core

Verify:
not verified, compile pass

Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
Change-Id: If400a437e48a4e1c0f8193b56e2f54d06660e806
2022-09-07 20:06:43 +08:00
qinglin.li 073082327a debug: add filp_open debug function [2/3]
PD#SWPL-88149

Problem:
add filp_open debug function used to relabel

Solution:
add filp_open debug function

Verify:
sc2

Change-Id: Iba99f9008ad475d2666cd25fac2c188c49b4a2dc
2022-09-07 20:06:43 +08:00
Rong Chen 5e3ee02786 sdio: limited to 167M [1/1]
PD#SWPL-89453

Problem:
Some are unstable running 200M

Solution:
limited to 167M

Verify:
sc2_ah212

Change-Id: I99e15c4e42ff177e53993822a078434d5202b995
Signed-off-by: Rong Chen <rong.chen@amlogic.com>
2022-09-07 20:06:42 +08:00
Jianxiong Pan b1de07e0e6 config: move memory configs to optimize file. [1/1]
PD#SWPL-89149

Problem:
need to meet GKI requirement.

Solution:
move memory configs to optimize file.

Verify:
c2_af400.

Change-Id: I2e1c6b6a225f28cc72c28a6523178e238c813347
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-09-07 20:06:42 +08:00
miaohong chen f02304af39 codec_mm: CB2 Scatter memory leakage. [1/1]
PD#SWPL-86524

Problem:
Probability of scatter memory leak
when switching resolutions frequently.
The reason is that the scatter map is an array.
Since the buffer is not limited,
the number of buffers exceeds the upper limit of the array.
When alloc scatter memory,
there is no map array record.
And the release is unsuccessful, memory leaks occur.

Solution:
Record the applied scatter context with linked list.

Verify:
sc2

Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Change-Id: Iae68510e5ab300b7ab58d7504c101556ca6d86e9
2022-09-07 20:06:42 +08:00
shipeng.sun 66a6d829f7 dmabuf: Support dmabuf manager implement v3 [1/1]
PD#SWPL-89594

Problem:
Support dmabuf manager implement v3

Solution:
Support dmabuf manager implement v3, sync some code from
kernel 54.

Verify:
ohm

Change-Id: Ifd46d14c6de1514306f21a0ff10f21565f1600ca
Signed-off-by: shipeng.sun <shipeng.sun@amlogic.com>
2022-09-07 20:06:42 +08:00
min.yang da163c664f Demod: porting demod to 5.15 [1/1]
PD#SWPL-84715

Problem:
sc2 kernel5.15 need porting demod.

Solution:
1.modify dts
2.add tuner demod attach callback

Verify:
compile pass, be normal at S905x4-ah212.

Change-Id: Ia740ccfc44a42018c36a4d18159dca9d9bd0ddee
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-07 20:06:42 +08:00
min.yang 57756e2b3c Demod: porting from 5.4 to 5.15 [1/1]
PD#SWPL-77329

Problem:
s4d need porting demod and tuner.

Solution:
1.porting dtv-demod.
2.porting dvb-extern.

Verify:
compile pass, be normal on s905Y4.

Change-Id: I1533c15047089a1215e042b064770e11ff2ed21a
Signed-off-by: min.yang <min.yang@amlogic.com>
2022-09-07 20:06:42 +08:00
Ao Xu eac3d58656 soft_fbc: move soft_fbc interface to uvm dir [1/1]
PD#SWPL-80927

Problem:
decouple v4lvideo and soft_fbc

Solution:
move soft_fbc interface to uvm dir

Verify:
ap222

Change-Id: I3c3f036baedbfd87bb5d3edcf3a3226c35bdda78
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2022-09-07 20:06:42 +08:00
Jianxiong Pan 414d252f96 cma: sync the cma code with 5.4. [2/2]
PD#SWPL-92714

Problem:
there is no cma relate changes.

Solution:
add cma allocating judgment.

Verify:
sc2_ah212.

Change-Id: Ic7916812bf1dfae4afa1daf393c684077e261fc0
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-09-01 23:01:45 -07:00
qinglin.li 0afabe230c debug file: add debug file function [1/2]
PD#SWPL-88882

Problem:
kernel through to user space rw files

Solution:
add debug file function

Verify:
sc2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I760ac112d21b2ba9d0a86f725771455627d8154f
2022-08-18 20:38:55 +08:00
Long 1b0b89a1c6 emmc : vendor hook change to timer func [1/1]
PD#SWPL-89620

Problem:
change way to add dtb key device

Solution:
revise code

Verify:
c2 af400

Change-Id: I186fbc477ce9215b8218f54f8a364dd029ea5822
Signed-off-by: Long <long.yu@amlogic.com>
2022-08-15 04:14:12 -07:00
yuhua.lin 35c053d1c6 dewarp: update for support C3 [1/1]
PD#SWPL-86990

Problem:
support c3 dewarp

Solution:
complete it

Verify:
C3

Signed-off-by: yuhua.lin <yuhua.lin@amlogic.com>
Change-Id: If82dc7e51b59614fd3af71a581a544abe7b9ac3b
2022-08-12 01:22:33 -07:00
he.he 2fd0d0d314 usb: A separate macro contains USB modifications [2/2]
PD#SWPL-89165

Problem:
A separate macro contains USB modifications for common Dir,
so when CONFIG_AMLOGIC_COMMON_USB = n will not affect
the normal function of USB

Solution:
add CONFIG_AMLOGIC_COMMON_USB

Verify:
SC2

Change-Id: I4f20e4bccdfcec113a7d643b1e2a85b80754f0fa
Signed-off-by: he.he <he.he@amlogic.com>
2022-08-01 19:17:04 +08:00
qinglin.li 0549e5a81a printk: fix insert info crossinglen when lenth than log_line_max [2/2]
PD#SWPL-70486

Problem:
insert info crossinglen when lenth than log_line_max

Solution:
not insert info when lenth than log_line_max

Verify:
c3

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: Ic9026546f3a0c5c28abfc564ab0b13b192c7e753
2022-07-25 08:53:11 -07:00
Bichao Zheng 2a4446af15 spi nand: c3 fix mtd0 write&read fail [1/1]
PD#SWPL-88624

Problem:
1. swupdate mtd0 fail

Solution:
1. add front info page support.

Verify:
c3

Change-Id: I99da5578b4d130656924fcdbd96ac7e85a1d0d8e
Signed-off-by: Bichao Zheng <bichao.zheng@amlogic.com>
2022-07-21 03:53:12 -07:00