Commit Graph

6213 Commits

Author SHA1 Message Date
Junyi Zhao 51167904fc pwm: fix pwm's gpio driver strength [1/1]
PD#SWPL-170380

Problem:
driver strength error

Solution:
fix it

Verify:
sc2 ah212

Change-Id: Ia0c5154de5c666e7b417865495df166b1dffeaae
Signed-off-by: Junyi Zhao <junyi.zhao@amlogic.com>
2024-06-03 00:12:34 -07:00
can.zhang cf6c27a208 amdv: fix coverity error about enhancement [1/1]
PD#SWPL-168336

Problem:
coverity error

Solution:
add code

Verify:
amdv

Change-Id: I0c04b2001b58457c52c952b0c37817ebaaeab4b7
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-06-03 00:12:17 -07:00
zhicheng.huang 3f2943dc6f dtv_demod: optimize dvb-s rssi for rda5815m(V3.5.43) [1/2]
PD#SWPL-147904

Problem:
optimize dvb-s rssi for rda5815m

Solution:
1.optimize dvb-s rssi for rda5815m
2.AMLDTVDEMOD_VER V3.5.43

Verify:
t5d

Change-Id: I4f951810862b963c0caf2219f96657f9d27a47fa
Signed-off-by: zhicheng.huang <zhicheng.huang@amlogic.com>
2024-06-03 00:11:59 -07:00
donghui.wang 3579451ab2 ldim: fix debug issue [1/2]
PD#SWPL-170693

Problem:
fix debug issue

Solution:
fix debug issue

Verify:
t5m

Change-Id: I2598f15703169a6c37f4486ab2b2a047f561b7a8
Signed-off-by: donghui.wang <donghui.wang@amlogic.com>
2024-06-02 21:38:11 -07:00
chao.zhang be55f79b96 regulator: add regulator for bp201 [1/1]
PD#SWPL-170471

Problem:
need to support regulator of s80x3

Solution:
add regulator config

Verify:
s7

Change-Id: I3dfdffa7a639f677bd253f57dd05eb84991ef7bf
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-06-02 21:38:06 -07:00
rong.wang bb110efa26 deinterlace: provide channel config num [1/1]
PD#SWPL-165191

Problem:
provide channel config num for different ic.

Solution:
provide channel config num for different ic.

Verify:
txhd2,t5d,s4,s7d

Change-Id: Idd67a634f7d0a40f4858330b917fd6127e920d35
Signed-off-by: rong.wang <rong.wang@amlogic.com>
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
2024-06-02 21:37:58 -07:00
rong.wang 5bd0715453 deinterlace: set fifo size when hw init [1/1]
PD#SWPL-162784

Problem:
green line

Solution:
reset fifo size when hw init

Verify:
t5d

Change-Id: I65bde4261668b32fe8efccc016f9f1fbd9885f2c
Signed-off-by: rong.wang <rong.wang@amlogic.com>
2024-06-02 21:37:53 -07:00
yudong.cai 26198dde1b vdin: atv search,The snowflake random number will not be updated [1/1]
PD#SWPL-168743

Problem:
when search mode,snowflake static frame

Solution:
in both modes, update the random number

Verify:
t5m

Change-Id: Id6f321fba13532fcf2a341236c30c892390ce142
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-05-31 19:32:12 -07:00
yudong.cai 6d64f84c7f vdin: Troubleshoot the crash caused by a null pointer [1/1]
PD#SWPL-170319

Problem:
null pointer cause a crash

Solution:
returns a default fmt info when fmt is null

Verify:
T5M

Change-Id: Iee5f95b6380c0d63cb0a4308fb7ce6c4c665e46d
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-05-31 19:32:07 -07:00
Jie Dai 8bd77b0fc9 lcd: eliminate frame rate error caused by SS [1/1]
PD#SWPL-165366

Problem:
there is a vsync drift while open ss

Solution:
fix vsync drift by adjust frequence or vtotal

Verify:
t5d/t5m

Change-Id: I225c8ece65869d4607a3f75572ef160ccdce1adf
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2024-05-31 06:04:52 -07:00
chao.zhang 9a3b3115b0 pdvfs: enable s7 cpu pdvfs [2/2]
PD#SWPL-167298

Problem:
enable s7 cpu pdvfs

Solution:
use different index by efuse vmin

Verify:
S7

Change-Id: I572d56e9a946cd3ee60e3dfae6b81183f5dec4f7
Signed-off-by: chao.zhang <chao.zhang@amlogic.com>
2024-05-31 06:04:45 -07:00
Jian Cao e568de5bfd vpp: add support to calculate 2slice out hsize [1/1]
PD#SWPL-165614

Problem:
480i/480p video displays noise on 4k120hz

Solution:
to enable the sr function
add support to calculate each slice out hsize

Verify:
s5

Change-Id: I49fc594900e978113367964a583cc1641b900f76
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-05-31 06:04:38 -07:00
shu.wang 17eddeff44 A1: Add squashfs support [1/1]
PD#SWPL-130530

Problem:
The current configuration does not support squashfs.

Solution:
Enable squashfs in defconfig.

Verify:
A113L-AD403

Change-Id: If9a3781e01d1aee69971151886d6c21f3e3acd14
Signed-off-by: shu.wang <shu.wang@amlogic.com>
2024-05-31 05:27:53 -07:00
Huijuan Xiao c45d31f5f4 hdr: display abnormal when unplug hdmi [1/1]
PD#SWPL-171269

Problem:
reset hdr process settings when hdmi status changed

Solution:
reset hdr process settings when hdmi status changed

Verify:
ohm

Change-Id: I700d3463ec1bbe46c31e7f59ec0527db673c8cce
Signed-off-by: Huijuan Xiao <huijuan.xiao@amlogic.com>
2024-05-31 05:26:57 -07:00
Cheng Wang 674a647d35 frc: rectify the identified defects [3/3]
PD#SWPL-169168

Problem:
forced type conversion error

Solution:
rectify the identified defects

Verify:
master

Change-Id: Ia33867554bbdf85167338a325b959116d8757366
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-05-31 05:26:52 -07:00
saisai.chang f917850569 audio: loopback config is wrong [1/1]
PD#SWPL-169724

Problem:
1.loopback configuration error
2.resample1 status is wrong

Solution:
1.reconfig loopback
2.modify resample1 status

Verify:
t5m

Change-Id: Ie27e1ee425a70f6b5e5455a93ad07eb57e0b6770
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2024-05-31 05:26:38 -07:00
yudong.cai 6449aac08f vdin: non-DV platforms,vdin disables tunnel and displays it as sdr [1/1]
PD#SWPL-166064

Problem:
non-DV platform, tunnel is enabled on vdin, causing an image abnormal

Solution:
non-dv,disable tunnel,displays it as sdr

Verify:
t5m

Change-Id: I545784a11f301ed556bd7a8d57cce2c6cd3c9082
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-05-31 05:26:22 -07:00
yudong.cai 846d2c4ad1 vdin: unclear hdr flag after color format change [1/1]
PD#SWPL-167308

Problem:
When RX has multiple state changes, hdr changes are ignored. HDR10 
TO SDR is not recognized

Solution:
do not clear the hdr change flag after handing color format changes

Verify:
t5m

Change-Id: I14b1215f04838d9ea838ac0f2756d7f4d0bcab31
Signed-off-by: yudong.cai <yudong.cai@amlogic.com>
2024-05-31 05:26:16 -07:00
xiang.wu1 568746a21d hdmitx: clean up error log [1/1]
PD#SWPL-155850

Problem:
useless error log print

Solution:
remove useless error log of bind.

Verify:
sc2/s7

Test:
DRM-TX-79,DRM-TX-80,DRM-TX-81,DRM-TX-82

Change-Id: Icc1d3b70fbbbde410724c31475d3e337d4afb365
Signed-off-by: xiang.wu1 <xiang.wu1@amlogic.com>
2024-05-31 05:26:00 -07:00
zhenteng.tian ad70110e5a vc: set bitdepth_dw for ge2d when vf is compressed. [1/1]
PD#SWPL-160633

Problem:
vdin provide bitdepth_dw for double write data.

Solution:
set bitdepth_dw for ge2d when vf is compressed.

Verify:
T3X

Change-Id: I3e1c2e2a193ea46f4fa121ee71db54b58ff88f01
Signed-off-by: zhenteng.tian <zhenteng.tian@amlogic.com>
2024-05-31 05:24:38 -07:00
lele xiang 2d878195b4 codec_mm: CF1 support config codec_mm_reserved_cma. [1/1]
PD#SWPL-146624

Problem:
some codec_mm_cma size is too large for 1G ddr highmem.

Solution:
use codec_mm_reserved_cma as second codec_mm pool in ddr lowmem.

Verify:
SC2

Change-Id: I4bf46541ff3231aa7d5fae5343dff06df9529626
Signed-off-by: lele xiang <lele.xiang@amlogic.com>
2024-05-30 20:02:18 -07:00
zongdong.jiao 772e9d160a hdmitx: around tmp_rate as 6000 or 120000 [1/1]
PD#SWPL-171499

Problem:
When setting QMS/BRR, the 60hz is 59.94 with default
frac_rate_policy is true

Solution:
Around tmp_rate as 6000 or 120000

Verify:
s7d/bm201

Test:
DRM-TX-38

Change-Id: I988da95b40db0723b10cad5687572d2870867288
Signed-off-by: zongdong.jiao <zongdong.jiao@amlogic.com>
2024-05-30 07:58:32 -07:00
Xingxing Wang 1b5d8c23f5 cpufreq: coverity clean of cpufreq driver [1/1]
PD#SWPL-168345

Problem:
Passing null pointer "policy" to "cpufreq_generic_suspend",
which dereferences it

Solution:
add null pointer checking

Verify:
kernel5.15

Change-Id: I7f7f44fedd7b01c9f201421eff38ba2972e95ae1
Signed-off-by: Xingxing Wang <xingxing.wang@amlogic.com>
2024-05-30 06:03:55 -07:00
Jiacai.Liu 564faed259 t5d: CF add t5d 1.5g linux dts [1/1]
PD#SWPL-169764

Problem:
support  1.5G PCB

Solution:
add t5d 1.5g linux dts

Verify:
local t5d_am301

Change-Id: Ia22afe0b4f7265d834dbd4f1b9b4f34978b0280d
Signed-off-by: Jiacai.Liu <jiacai.liu@amlogic.com>
2024-05-30 06:03:51 -07:00
Wenjie Qiao b18a8039d1 hdmitx: mute/unmute will send error audio sample when HBR mode [1/1]
PD#SWPL-170716

Problem:
s7d/s7 mute/unmute will send error audio sample when HBR mode

Solution:
dont contrl AUD_EN bit1 when mute/unmute

Verify:
s7d

Test:
DRM-TX-109

Change-Id: Ic27fd32c39409e43388a91de2127a3bbeeed1257
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2024-05-30 06:03:17 -07:00
Feng Chen cf7c866d33 spinor: update spi-nor layer [1/1]
PD#SWPL-164866

Problem:
update spi-nor layer.

Solution:
update spi-nor layer.

Verify:
C3_AW409

Change-Id: Ic93021b04cc0721d57c9c5c88e5f9e0abcdd090e
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
2024-05-30 06:02:50 -07:00
lizhi.hu 03fe50f326 Revert "lcd: tablet mode multi timing support [1/1]"
This reverts commit a4994fbed5.

Change-Id: I34912d38a12ad8c21aceacb3e77e1c028cfee9d3
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-30 16:50:52 +08:00
jian zhou 5b97bd7c08 audio: fix s4d pdm crash when start capture data [1/1]
PD#SWPL-171153

Problem:
s4d pdm crash when start capture data

Solution:
enable dclk after set rate by the hw and vlsi suggest

Verify:
s4d-oppen

Change-Id: Ic7f0252e28adfb28ad1e0ad8c63a3d64ada4341c
Signed-off-by: jian zhou <jian.zhou@amlogic.com>
2024-05-30 00:04:26 -07:00
Jian Cao 082f70b4fd vpp: correct the vertical position setting of postblend [1/1]
PD#SWPL-170662

Problem:
in cvbs mode, the small window display position is incorrect

Solution:
modify the vertical position setting of postblend

Verify:
s7d

Change-Id: Ie391ba5451265eccc8bbdfc01efcc2f611d63af4
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-05-30 00:04:22 -07:00
lizhi.hu a4994fbed5 lcd: tablet mode multi timing support [1/1]
PD#SWPL-158383

Problem:
tablet mode need support multiple timing switch

Solution:
support cus_ctrl and vmode

Verify:
t7_an400

Change-Id: I64d2c6caeff914aa034f67e0d53a5b262d6c17c4
Signed-off-by: lizhi.hu <lizhi.hu@amlogic.com>
2024-05-29 22:30:23 -07:00
Tao Zeng d3fcfcf6f0 amfc: fix kasan report [1/1]
PD#SWPL-171396

Problem:
kasan report:
BUG: KASAN: slab-out-of-bounds in amfc_decompress+0x144/0x14bc [amlogic_amfc]
write of size 32 at addr ffffff8011d68780 by task init/1

 CPU: 3 PID: 1 Comm: init Tainted: P B OE 5.15.137-android14-11-maybe-dirty #1
 Hardware name: s7d_s905x5m_bm201 (DT)
 Call trace:
 dump_backtrace+0x144/0x190
 show_stack+0x2c/0x48
 dump_stack_lvl+0x7c/0x94
 print_report+0x178/0x4a0
 kasan_report+0xb0/0x104
 kasan_check_range+0x274/0x2b4
 memset+0x58/0x88
 amfc_decompress+0x144/0x14bc [amlogic_amfc]
 amfc_crypto_decompress+0x68/0xd8 [amlogic_amfc]

Solution:
fix it

Verify:
local

Change-Id: I84df77652100ba1d43169feedef057d13cf34656
Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
2024-05-29 22:03:02 -07:00
Ruixuan.li c21d3736f0 emmc: emmc run hs200 153M busmode [1/1]
PD#SWPL-168713

Problem:
emmc start bit not stable

Solution:
run hs200 153M

Verify:
t5d

Change-Id: Ic2cd01cb5082d2147deb17631261acbcf3981450
Signed-off-by: Ruixuan.li <ruixuan.li@amlogic.com>
2024-05-29 22:02:41 -07:00
congyang.huang b0de672bd4 vout: support connector type interface [1/1]
PD#SWPL-166618

Problem:
connectors can not get connector type

Solution:
add connector type interface for connectors to get value

Verify:
t7c txhd2

Test:
DRM-OSD-44

Change-Id: Ic6fe152d419bc1a9381ada21dfa9a808e4e2c84c
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2024-05-29 22:02:31 -07:00
chuangcheng.peng 0734d2c370 demux: provide ioctl to clear dmx cache [2/2]
PD#SWPL-169716

Problem:
provide ioctl to clear dmx cache

Solution:
provide ioctl to clear dmx cache

Verify:
verified at T5W

Change-Id: Ia439290f1dcc157ba95f97dbb4c38960497615eb
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-05-29 19:10:45 -07:00
Long 1aacca8695 eMMC: enable inline crypto. [1/1]
PD#SWPL-168577

Problem:
need enable inlinecrypt

Solution:
enable inlinecrypt function

Verify:
S7,S7D

Change-Id: Idd072bf0e9f7155ba13cd4f34c28010dad7d0773
Signed-off-by: Long <long.yu@amlogic.com>
2024-05-29 19:10:36 -07:00
chuangcheng.peng ebc375121e demux: fix demux cache release issue and provide ioctl [1/2]
PD#SWPL-169716

Problem:
can't release dmx cache

Solution:
when release dmx cache, it need free input and recovery it when using it
and provide ioctl to clear

Verify:
verify at t5w

Change-Id: I641344c564f17db3ba13f22b4b3573cfc766118b
Signed-off-by: chuangcheng.peng <chuangcheng.peng@amlogic.com>
2024-05-29 19:10:29 -07:00
Xiangyu Cai a6bf60ea08 vrr: fix delay line when input standard resolution [1/1]
PD#SWPL-170748

Problem:
delay line not correct

Solution:
not change delay line when input 16:9

Verify:
t5m

Change-Id: Idf212eb3e73424469b4462bea24f4ce93261af3d
Signed-off-by: Xiangyu Cai <xiangyu.cai@amlogic.com>
2024-05-29 08:02:32 -07:00
Jian Cao c344d415d2 vpp: check process speed using BRR duration in QMS situation [1/1]
PD#SWPL-170526

Problem:
after switching the QMS TV resolution from 4K60 to 1080p60hz
the display is abnormal

Solution:
BRR should be used to calculate processing speed

Verify:
s7d

Change-Id: I28a4fcac660b62b450c5b897fe51bef662f190cf
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
2024-05-29 08:02:27 -07:00
can.zhang 21b628f198 amdv: test two channel amdv [1/1]
PD#SWPL-165843

Problem:
vd2 bypass when two channel

Solution:
add code

Verify:
s5

Change-Id: I388debffd20978a19790dd1996f3e00c5563235c
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2024-05-29 01:59:37 -07:00
qing.zhang cd39c3771d audio: Speaker output for sy6026 [1/1]
PD#SWPL-170755

Problem:
No speaker output for sy6026

Solution:
1. use the sy6026 i2c original api
2. update symbol, it was included in stg already
3. issue from SWPL-169746

Verify:
ross

Change-Id: I525ace5ebfdc5beb4afea40a0c80fb0a5808b6d5
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-29 01:59:29 -07:00
qing.zhang 9b6c39d14b audio: ad82128 gpio control [1/1]
PD#SWPL-170755

Problem:
od pin can not control

Solution:
1. use gpiod api
2. modify dts pin reset config

Verify:
Ohm/ross + D626 board.

Change-Id: I9ff8cda3ee17b3cd65fb96e7466c24c0a3fc26b7
Signed-off-by: qing.zhang <qing.zhang@amlogic.com>
2024-05-29 01:59:25 -07:00
Tianhua Sun e46c0634c0 videotunnel: add COLOR_ONCE to refresh cmd list [1/1]
PD#SWPL-165989

Problem:
game mode switch to standard mode,flash the line screen

Solution:
need resend last cmd COLOR_ONCE to consumer when consumer reconnect.

Verify:
t3x

Change-Id: I51e8c15567ada60685bc56eda7a42f0a4481a8b7
Signed-off-by: Tianhua Sun <tianhua.sun@amlogic.com>
2024-05-29 01:59:09 -07:00
changpeng.jiang 82c7393a22 S7: pm: enable pm [1/1]
PD#SWPL-170696

Problem:
enable pm node

Solution:
enable pm node

Verify:
s7_bh201

Change-Id: Ied89c5fe6b58e53af14cf613e7c50a8c6d82e525
Signed-off-by: changpeng Jiang <changpeng.jiang@amlogic.com>
2024-05-29 01:59:04 -07:00
Cheng Wang 1ab0791653 frc: adjusting the mcdw param in litter win [1/1]
PD#SWPL-161667

Problem:
N/A

Solution:
N/A

Verify:
T3X

Change-Id: I133a0272f0d06f1eec12e3e6ff00c6d60dd00ec6
Signed-off-by: Cheng Wang <cheng.wang@amlogic.com>
2024-05-29 01:58:56 -07:00
Pengcheng Chen a89d8bd4cb vpp: adjust vskip algorithm for t3x [1/1]
PD#SWPL-171159

Problem:
t3x vskip not same when frc on/off

Solution:
adjust vskip algorithm for t3x

Verify:
T3X

Change-Id: I94a1a36300af630ae189dc4834747722454ebf46
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-05-28 23:53:02 -07:00
jiebing chen 6ad0069c5f Audio: remove xrun kernel info log when input read data error [1/1]
PD#SWPL-168784

Problem:
T3X}{Android U}{AOSP}{ms12}XBOX or PS5 set input ATMOS audio,
audio noise.(3/3,APPLE TV BOX OK

Solution:
remove xrun log

Verify:
use T3x

Change-Id: I970103bce2980a9683c743daee44b97ade2609ad
Signed-off-by: jiebing chen <jiebing.chen@amlogic.com>
2024-05-28 23:52:50 -07:00
dezhi kong f7cc250dbf uvm: add dummy buffer skip process [1/1]
PD#SWPL-167401

Problem:
uvm dummy data use too memory

Solution:
manage dummy buffer separate

Verify:
OHM-T

Change-Id: I0915573b4a0b75cc073aaa376381add8837d3381
Signed-off-by: dezhi kong <dezhi.kong@amlogic.com>
2024-05-28 08:02:36 -07:00
Ao Xu 479e247e71 drm: adjust s7d color format definition [1/1]
PD#SWPL-170861

Problem:
s7d RGB565 format register value changed from 4 to 2

Solution:
adjust s7d color format definition

Verify:
s7d

Test:
DRM-OSD-7

Change-Id: I8d1ef7195152b4742aecb3242228831f81e932ff
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2024-05-28 05:55:08 -07:00
jinbing.zhu 05d50eaa10 amvecm: add colorimetry delivery method [1/1]
PD#SWPL-140663

Problem:
add ext signal type

Solution:
add ext signal type

Verify:
t965d4

Change-Id: Ibe681cdcef8194328282a31af09096f8cb961424
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-05-28 05:54:40 -07:00
Jianxiong Pan 6b96c1050f mm: add parameter for cma_alloc_trace and cma_debug_level. [1/1]
PD#SWPL-171118

Problem:
enable cma_alloc_trace in bootargs.

Solution:
add parameter for cma_alloc_trace and cma_debug_level.

Verify:
local.

Change-Id: I8bedf7a167720c4d3c31f2e27fd49173d922fcf6
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
2024-05-28 03:59:15 -07:00