Commit Graph

855 Commits

Author SHA1 Message Date
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
mingxiu.sun 0af3d219ab tvafe and vdin: sync code from branch t7t5m_1_20220908 [1/1]
PD#SWPL-95768

Problem:
kernel 5.15 missing patches

Solution:
sync code from kernel-5.4

Verify:
t7c_an400

Test:
compile ok

Change-Id: Ic9b0837775c537f93b37d3395a35144941437f09
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2022-12-02 14:04:54 +08:00
Evoke Zhang f1a14db526 lcd_extern: add i2c_oled support [2/2]
PD#SWPL-95337

Problem:
need support oled i2c api

Solution:
lcd extern driver add i2c_oled support

Verify:
ar301

Change-Id: I57a966963cd0afa763d918fb27661ec96fc2e6d5
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-12-02 14:04:54 +08:00
Evoke Zhang 0f3eddfabf lcd: update vbyone reset control [1/1]
PD#SWPL-96923

Problem:
new chips reg addr error in vbyone sw reset function

Solution:
correct new chips reg addr for vbyone sw reset

Verify:
at301

Change-Id: Id065d419930a3a95b8219c048c0a009462508002
Signed-off-by: Evoke Zhang <evoke.zhang@amlogic.com>
2022-12-02 14:04:54 +08:00
lizhi.hu b70f01d422 lcd: port lcd code from k54 to k515 [1/1]
PD#SWPL-94863

Problem:
lcd code from k54 to k515

Solution:
port

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: I6dddfd460795af45595f08f7fdd222533627f553
2022-12-02 14:04:53 +08:00
“xujin.hu” f2bd6a9c0d hdmirx: bring up t7c Hdmirx [1/1]
PD#SWPL-94137

Problem:
T7C Kerner5.15 Android T Bringup - HDMI RX

Solution:
port hdmirx of kernel5.4 to kernel5.15

Verify:
T7c

Change-Id: I1e6246a31a9973bf4b401b153fa7c018043cfdc4
Signed-off-by: “xujin.hu” <xujin.hu@amlogic.com>
2022-12-02 14:04:53 +08:00
qinglin.li a4da10d080 freertos: androidT bring up freertos with t7c [2/2]
PD#SWPL-94126

Problem:
bring up freertos with t7c

Solution:
bring up freertos with t7c

Verify:
t7c

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I49da1d2885baddf839f8229fe43dfd6f66055695
2022-12-02 14:04:53 +08:00
lizhi.hu 4a7d13ebe3 lcd: fix bug in lcd lcd_vsync_handler [1/1]
PD#SWPL-94121

Problem:
lcd_screen_restore and lcd_screen_black may be a nullptr,
under specific condition, results in kernel panic.

Solution:
remove pointer from pdrv.

Verify:
t7c

Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
Change-Id: If3bd01a8426ca6b67052265e98ff8ab9829ed07d
2022-12-02 14:04:53 +08:00
jian zhou 8f2992fd87 audio: fix alsa driver typo [1/1]
PD#SWPL-103472

Problem:
alsa driver typo

Solution:
fix alsa driver typo

Verify:
T7C

Change-Id: I3c21521203d73cc0d658913662301ffa42a5bd18
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2022-12-01 22:51:22 -07:00
yuna.liu c4da0cd780 media_modules: CB2 tsplayer supports DV playback [1/1]
PD#SWPL-100780

Problem:
Requirement:modify the DV link when tsplayer plays.

Solution:
When tsplayer plays, amvideo in the DV link is changed to v4lvideo.*.

Verify:
ohm

Change-Id: I84dbe550308aceff8bd39c1dd331274439599153
Signed-off-by: yuna.liu <yuna.liu@amlogic.com>
2022-12-01 20:36:32 -07:00
qinglin.li 61c6f10791 dmc_monitor: add dmc dev access callback func [1/1]
PD#SWPL-102608

Problem:
add dmc dev access callback func

Solution:
add dmc access callback func
use see to https://confluence.amlogic.com/display/SW/06+DMC+Dev+Access

Verify:
sc2

Change-Id: I54faa5f383045b0441665af292a926cee52fca72
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-30 00:52:11 -07:00
qinglin.li e23e9bfc33 printk: use vendor_hook print cpu and irq info [2/3]
PD#SWPL-101578

Problem:
use vendor_hook print cpu and irq info

Solution:
use vendor_hook print cpu and irq info

Verify:
sc2

Change-Id: I52f0474ea55d4136933c0a2c12daf31eff4ab261
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2022-11-21 22:36:36 -07:00
hang cheng 9d4b1f31eb hdmitx: remove audio mute when adaptive from sdr to hdr [1/1]
PD#SWPL-99719

Problem:
when switch from SDR to HDR under adaptive
mode, audio will be mute for a few frames
cause nts detect audio drops

Solution:
remove audio mute when adaptive from sdr to hdr

Verify:
ah212

Test:
test on ah212, start play hdr movie

Change-Id: Ie09c09fa989a8c54f0a8ad688b8bc02ea51a9307
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2022-11-21 08:49:17 -07:00
zhentao.guo b23734648a media_module: Support SAR information offerring via interface [1/3]
PD#SWPL-93858

Problem:
According to mpeg spec,aspect ratio can be described as SAR or DAR.
Now decoder only offer DAR for mpeg2

Solution:
Offer DAR and SAR to the application, and tell which kind of aspect
ratio is offerred at the moment

Verify:
ohm

Change-Id: I5aca911eefac01017b16840f038ca5270a5e5a59
Signed-off-by: zhentao.guo <zhentao.guo@amlogic.com>
2022-11-17 21:17:32 -07:00
Brian Zhu 75ccd5538c di: add protection when copy long meta data [1/1]
PD#SWPL-99090

Problem:
When decode meta is too long, DI will skip it.

Solution:
Add protection to copy meta data

Verify:
Verified on sc2

Change-Id: Ia6ae379ec50a1f8f3f8a5549393835cb327bb39b
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2022-11-16 08:15:32 -07:00
Zongdong Jiao d427bba919 hdmitx: add hpd/ddc GPI status [1/1]
PD#SWPL-97568
PD#GH-3056
BUG=248516794

Problem:
Lack HPD/DDC GPI status info

Solution:
Add extra HPD/DDC GPI TIME stamps

Verify:
s4

Change-Id: I533dc8dda226f02b23130ae71cdc52b76311e317
Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
2022-11-15 06:13:59 -07:00
Jianxiong Pan 4e0cd2db13 mm: not export set_dump_dmc_reg() func. [1/1]
PD#SWPL-92714

Problem:
set_dump_dmc_reg func break gki.

Solution:
not export the func to ko.

Verify:
s4_ap222.

Change-Id: Id5c6aafad318084886bf1428b1fe44d5d091e44d
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-11-14 22:21:18 -07:00
Shuai Li 96fd78bb2f audio: add separate interface to control HDMITX src [3/3]
PD#SWPL-38929

Problem:
Currently, the HDMITX source is binding to SPDIF a/b.
we need separate interface to configure HDMITX audio
source from SPDIF a/b or TDM a/b/c for different
use case.

Solution:
1.add a new interface to control the HDMITX source.
2.add a new interface to config i2s to hdmitx format.

Verify:
Ohm

Change-Id: I82a04cfadeba19a9b54b77dd6a443b60dc2c9b39
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
2022-11-14 22:21:14 -07:00
chuangcheng peng f9a7a52110 demux: sync kernel 5.4 to 5.15 [1/2]
PD#SWPL-100311

Problem:
sync kernel 5.4 to 5.15

Solution:
sync kernel 5.4 to 5.15

Verify:
not verified

Change-Id: I4d046cb9a54689ad53fbbc18bf8c16b3701d535f
Signed-off-by: chuangcheng peng <chuangcheng.peng@amlogic.com>
2022-11-09 06:15:41 -07:00
binqi zhang 6e5be361c0 uvm: add 10bit soft fbc feature [1/2]
PD#SWPL-93620

Problem:
implement truncate the 10bit data

Solution:
add 10bit fbc feature

Verify:
ohm

Change-Id: I97f507451b284836228b61716f06ee3cbf929452
Signed-off-by: binqi zhang <binqi.zhang@amlogic.com>
2022-11-08 06:04:24 -07:00
Wanwei Jiang 812361a4e9 pm: combine pm and reboot modules [1/1]
PD#SWPL-95684

Problem:
combine pm and reboot modules

Solution:
result: amlogic-pm.ko
original: amlogic-pm.ko amlogic-reboot.ko

Verify:
sc2

Change-Id: I25366f4413a7e7ec84131321e9b686b337358d70
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:06:33 +08:00
Wanwei Jiang 0b2a96838a Revert "debug: add filp_open debug function [2/3]"
PD#SWPL-95914

Problem:
it's break gki

Solution:
Use other method to implement, so revert old method
This reverts commit 073082327a.

Change-Id: I93e8a56d6e6a354f3d2dd27029913b5c79b797fc
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2022-11-05 12:06:11 +08:00
hang cheng 245c8ea296 hdmitx: adjust edid parsing for TV_TS [1/2]
PD#SWPL-97387

Problem:
TV_TS/2.4_R2 failed

Solution:
remove useless parsing code, and adjust
edid parsing and fallback policy
1.if edid checksum invalid in any block,
or header of cta extension block is 0,
then use fallback mode list
2.if base block header invalid, of
checksum invalid, then don't parse
base block except dtd / standard timing
3.for cta extension block, if block
byte0 != 0x2, it means not valid
extension block, skip parsing whole
block. if block byte1 <= 2, it means
that it's DVI block, skip parsing data
block, just parse DTD.
4.fallback mode list:
480p/720p/1080p60hz, RGB,8bit, and uplayer
should use 720p60hz RGB,8bit by default

Verify:
ah212

Test:
TV_TS/2.4_R2 tested pass, hdmi1.4/2.0 CTS no side effect

Change-Id: I9e24a16cd6d645f2e28f3238b2f20ace0b5090bb
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2022-11-03 19:55:11 -07:00
Wenjie Qiao fbd2325487 hdmitx: add new format 2560x1440p60hz [1/1]
PD#SWPL-91287

Problem:
lack format 2560x1440p60hz

Solution:
add new format 2560x1440p60hz

Verify:
sc2/g12a

Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
Change-Id: If7d1c24c39361b5ead9905b454dc5493a1e552a6
2022-11-01 23:29:16 -07:00
chen.xu 7fbd7dbc22 video_processor: Kernel 5.4 to Kernel 5.15 Bringup [1/1]
PD#SWPL-97096

Problem:
Kernel 5.4 to Kernel 5.15 Bringup

Solution:
sync video_processor code

Verify:
sc2

Signed-off-by: chen.xu <chen.xu@amlogic.com>
Change-Id: I05aae8fff3f4dbd37e05000b04f186e02fc4d7d0
2022-11-01 04:40:29 -07:00
Jian Cao cc868b2008 gdc: sync code from the lastest branch [1/1]
PD#SWPL-97096

Problem:
sync code changes from 5.4 to 5.15

Solution:
1. add the stride support in gdc_process_phys
2. add load/release firmware interface

Verify:
verified on t7-an400

Change-Id: I1e861f474c27be66f03cebd6d01d01582e763a0b
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2022-11-01 02:12:23 -07:00
Jianxiong Pan f1fec716d4 mm: modify the watchpoint to ko. [2/2]
PD#SWPL-92714

Problem:
need modify the watchpoint to ko.

Solution:
modify the watchpoint to ko.

Verify:
sc2_ah212.

Change-Id: I26e5e451690fb557264d8bbd6bcceb7701494cc5
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2022-10-29 08:05:00 -07:00
Wenjie Qiao b060d61432 hdmitx: set mode vic=2/3 return valid mode 1 [1/1]
PD#SWPL-94658

Problem:
set mode 4x3, return valid mode 0, lead to no output

Solution:
when set mode 4x3 and 16x9, return valid mode 1

Verify:
sc2

Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
Change-Id: I8ae7466bd92c927a9953fbd2f22335862ad02b8f
2022-10-28 04:13:06 -07:00