Commit Graph

4144 Commits

Author SHA1 Message Date
dian.shao a5998d5c09 sc2: usb: fix SC2 suspend power consumption [1/1]
PD#SWPL-143832

Problem:
fix SC2 suspend power consumption.

Solution:
fix SC2 suspend power consumption.

Verify:
AH212

Change-Id: I8596d84d5cefbb8281245450922be86653d680cf
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2023-10-26 05:11:48 -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
min.yang 9b3b30c003 dtv_demod: remove unused macro and code (V3.5.015) [1/1]
PD#SWPL-142882

Problem:
demod code optimization

Solution:
1.remove CONFIG_AMLOGIC_DVB_COMPAT
2.remove CONFIG_AMLOGIC_REMOVE_OLD
3.remove exp_attach and tuner_get_info

Verify:
verified by S1A

Change-Id: I65f9a2388f8a18c874c84bbebf37558a23b7c95e
Signed-off-by: min.yang <min.yang@amlogic.com>
2023-10-25 22:55:44 -07:00
Zhuo Wang 6f67613746 eth: add delay for resume flow [1/1]
PD#SWPL-142439

Problem:
phy can't read right setting when resume

Solution:
add delay for resume flow

Verify:
s905x4-ah212#009

Change-Id: I18639e0a59a3d5671a463be6a928c4d958ad7185
Signed-off-by: Zhuo Wang <zhuo.wang@amlogic.com>
2023-10-25 02:48:36 -07:00
lukang.jia 945dbeebdc frc: frc abnormal in 144hz [1/1]
PD#SWPL-142041

Problem:
Connecting to vbyone 4K144, play video splash screen

Solution:
remove if statement in frc_ioctl

Verify:
T3X

Change-Id: Id487b8cf6e059bd0b2853eb0ef386a7a46b288af
Signed-off-by: lukang.jia <lukang.jia@amlogic.com>
2023-10-25 00:33:50 -07:00
Ao Xu 36ecdca6fa drm: use drm_print to add state in drm sysfs [1/1]
PD#SWPL-143050

Problem:
no drm state sysfs node

Solution:
use drm_print to add state in drm sysfs

Verify:
ohm

Test:
DRM-OSD-112

Change-Id: Iafbaa10dd7c17b9a244654948478f588c63caae9
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-25 00:33:43 -07:00
Pengcheng Chen 062589e051 vpp: fix osd2_blend_src_ctrl conflict with video [1/1]
PD#SWPL-142333

Problem:
osd2_blend_src_ctrl conflict with video blend ctrl
caused screen blank sometimes

Solution:
1. remove video blend ctrl zorder above osd
2. hwc will do gpu composer when video zorder above osd

Verify:
txhd2

Change-Id: I1c8158e0532252c265271c179d73a0ce09159d5b
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-25 00:33:40 -07:00
Dezhen Wang f9bec56750 Script: fix the problem in function menuconfig and basicconfig [1/1]
PD#SWPL-142167

Problem:
menuconfig and basicconfig have problem in build kernel 14-5.15

Solution:
fix the problem

Verify:
local

Change-Id: Ic920a5489a3895eebed78aacb12c38409124f61a
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-10-24 20:58:59 -07:00
bowen cheng fa82e4a498 module: Handle mailbox wakeup data by thread [1/1]
PD#SWPL-137553

Problem:
probe step,mailbox get wakeup date take up long time

Solution:
use thread to get wakeup date

Verify:
T950S

Change-Id: I413863962c23c9de765ef78b25b144a7893a54f9
Signed-off-by: bowen cheng <bowen.cheng@amlogic.com>
2023-10-24 20:58:43 -07:00
caiyi.xu 84311844bd dtv_demod: Support ignoring common plp in dvbt2 (v3.5.14) [1/1]
PD#SWPL-142970

Problem:
duplicate programs in common plp

Solution:
ignore common plp
print real fw version

Verify:
AY301

Change-Id: I6fa15967fe63ac3ac8af67db17f6a9ed109d7e21
Signed-off-by: caiyi.xu <caiyi.xu@amlogic.com>
2023-10-24 04:19:19 -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
Yao Jie 3bf898fcf7 mailbox: enlarge devfs receive buffer size to 128 bytes [1/1]
PD#SWPL-143077

Problem:
Userspace process cannot get enough data sent from secpu
via nee2scpu (now the maximum data size is 96 bytes),
userspace needs to read up to 128 bytes one time from
secpu via nee2scpu.

Solution:
Enlarge the mailbox devfs receive buffer size to 128 bytes.

Verify:
T3-T965D4

Change-Id: Ia4d46206306c82ae7a37bb7c1249f10a6c4fcfb2
Signed-off-by: Yao Jie <jie.yao@amlogic.com>
2023-10-24 00:03:48 -07:00
Ao Xu 9da1ca0e8a hdmitx: remove dummyl suspend/resume and vout_device legacy function [1/1]
PD#SWPL-141589
PD#SWPL-141801

Problem:
get_attr, setup_attr, video_mute in vout_device is not needed
drm suspend/resume do the same thing with dummyl suspend/resume

Solution:
remove vout_device legacy interface
remove dummyl suspend/resume interface

Verify:
ohm

Test:
DRM-TX-19

Change-Id: I950acd61ff2742e452f15221c2a542f6aafecdc7
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-23 20:49:03 -07:00
can.zhang 785f3fd717 amdv: add mute function on 5.15 [1/1]
PD#TV-94302

Problem:
vpp mute control conflict

Solution:
control on or off by module self

Verify:
txhd2

Change-Id: I46cf9f69e06ef744940daf1d1f10e97cb9c76996
Signed-off-by: can.zhang <can.zhang@amlogic.com>
2023-10-23 20:48:59 -07:00
Wenjie Qiao 2b55a49666 hdmitx21: hdmitx_hw_get_state vic return wrong [1/1]
PD#SWPL-141888

Problem:
hdmitx_hw_get_state vic return 0 in 4K30hz, 4K25hz, 4K24hz

Solution:
hdmi14b vic get from vsif

Verify:
s5/t7

Test:
DRM-TX-36

Change-Id: I7461c3a4b147eb61a8617d674e235a8405f94a79
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-10-23 20:48:55 -07:00
Ao Xu 89b0ca800b drm: fix line stride invalid for HFR mode [1/1]
PD#SWPL-142250

Problem:
recovery did not use afbc, the line stride is invalid

Solution:
use the valid line stride

Verify:
T3X

Test:
DRM-OSD-111

Change-Id: I1ede1b234c1c44f8eea13efa7a68a0db57309a82
Signed-off-by: Ao Xu <ao.xu@amlogic.com>
2023-10-23 20:48:50 -07:00
saisai.chang 783ffb96f0 audio: fix audio coverity [1/1]
PD#SWPL-134417

Problem:
coverity

Solution:
fix coverity

Verify:
coverity script scan cannot find these problem

Change-Id: I95e25f313644cf94ad80948a348fcfaf94078183
Signed-off-by: saisai.chang <saisai.chang@amlogic.com>
2023-10-23 20:48:43 -07:00
yi.zhang1 c18c3d2fea amlbian: hdmitx hotplug support [1/1]
PD#SWPL-140746

Problem:
sc2 adn s4 hotplug not OK.
plug in change mode to cvbs,SC2 and S4 debian not support CVBS.

Solution:
disable cvbs.

Verify:
local

Signed-off-by: yi.zhang1 <yi.zhang1@amlogic.com>
Change-Id: Ibd2cd2c4b88d075640e823dadccf8d9cad4ddc08
2023-10-23 04:04:39 -07:00
yufei.huan 8df8df33fd deinterlace: use wr op to set register instead of wr_bits [1/1]
PD#SWPL-140303

Problem:
HDMI 4k screen jaggedness

Solution:
use wr op to set register instead of wr_bits

Verify:
t5m

Change-Id: I15ce745ef736da67b652300e44ab161b04d5a3a6
Signed-off-by: yufei.huan <yufei.huan@amlogic.com>
2023-10-23 04:03:51 -07:00
Liming Xue 61924ba6ba dsp: resolve dsp reconfiguration bugs [1/1]
PD#SWPL-142319

Problem:
1.a1 suspend dsp power off
2.The dsp bin name is arbitrary, when dsp_util is used,
forward incompatibility

Solution:
1.Fix device init  wakeup
2.The dsp bin name is arbitrary, when dsp_util is used

Verify:
a1/t7/t7c

Change-Id: I80001e2166a5fae8c72f5ff30b45ea1d319bbcac
Signed-off-by: Liming Xue <liming.xue@amlogic.com>
2023-10-23 02:29:13 -07:00
xuequan.feng 26cbc3d03b dts: CB1 nbr AW429 board support. [2/2]
PD#SWPL-142796

Problem:
AW429 use c308ln2n3 not c302x

Solution:
Rename AW429 dts name

Verify:
C308LN2N3-AW429

Change-Id: I5aa31d2b4492a81a523f87c5182294cb7426bec8
Signed-off-by: xuequan.feng <xuequan.feng@amlogic.com>
2023-10-23 01:32:21 -07:00
shuanshuan.jiang d0a36464d1 camera: support dual camera [2/3]
PD#SWPL-122409
PD#SWPL-122408

Problem:
config dual camera dts

Solution:
config dual camera dts

Verify:
local

Signed-off-by: shuanshuan.jiang <shuanshuan.jiang@amlogic.com>
Change-Id: I0c48be7ad05b28913ddc56d5357b7aa81485e324
2023-10-23 01:32:16 -07:00
nengwen.chen 33d2743694 dtv_demod: fix r842 dvbt/t2 LTE interferer test fail (V3.5.013) [1/1]
PD#SWPL-141144
PD#TV-92416

Problem:
r842 dvbt/t2 LTE interferer test fail.

Solution:
add agc slow for dvbt/t2 after locked.
AMLDTVDEMOD_VER "V3.5.013".

Verify:
T5W/T5M/T3X.

Change-Id: Ie0d483620fc9de5d67c8e48adeb09922f6203385
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
2023-10-23 01:32:12 -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
Wanwei Jiang 10a025346b script: close ko build [1/1]
PD#SWPL-142586

Problem:
failed to insmod closed ko in gki project

Solution:
remove lto=none

Verify:
ohm

Change-Id: Iac7c9d6325c475f09f3b3483b7a8c6afa546a01e
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2023-10-22 20:04:24 -07:00
binbin.wang c368558297 T3X: The worker needs to be shutdown in reboot mode [1/1]
PD#SWPL-141971

Problem:
The shutdown/reboot mode will not freeze the threads.After the sensor
driver executes the shutdown callback, the thermal worker may still
operate the register to read the temperature.This is a risk.

Solution:
Unregister the thermal zone in the shutdown callback。

Verify:
T3X

Change-Id: I3ed988b98cc4c6e87d3cbe3cb3d66781d214717d
Signed-off-by: Binbin Wang <binbin.wang@amlogic.com>
2023-10-22 20:04:10 -07:00
haitao.liu 6188340035 vdin: Optimize checking write done [1/1]
PD#SWPL-141346

Problem:
1.unnecessary skip frames
2.video flickering and only reboot can recover

Solution:
1.afbce use auto trigger mode
2.increasing vdin buffer number to 11
3.enalbe/disable path_en and req_en at the same time always

Verify:
T3X

Change-Id: I616b69f915b3a8cfa8cf271c721a9fa3690993f2
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-10-22 20:03:55 -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
Haotian Guo 68bdf2b62a hdmirx: add allm function [1/1]
PD#SWPL-139602

Problem:
No interface operation allm

Solution:
Add interface control switches for allm

Verify:
t3x

Change-Id: I0a7158ed3ea375262050b3678f5f1f7e3b5b22bf
Signed-off-by: Haotian Guo <haotian.guo@amlogic.com>
2023-10-20 16:03:40 -07:00
hang cheng 93852a022e hdmitx: sync hpd between drm and hdmitx side [1/1]
PD#SWPL-141797

Problem:
under suspend, plugin event will not be notified to
drm until resume

Solution:
sync hpd between drm and hdmitx side

Verify:
Ohm + RDK, suspend/resume

Test:
DRM-TX-38

Change-Id: I61f78dad4847d036148a4a8631279437b54eed46
Signed-off-by: hang cheng <hang.cheng@amlogic.com>
2023-10-20 08:33:47 -07:00
haitao.liu dd217467cc vdin: Interlace video not smooth in keystone [1/1]
PD#SWPL-142285

Problem:
HDMI in 1080i60,the vpp's framerate was 30fps,vdin dropped frames
more than expected,causing not smooth

Solution:
Donot drop extra frames when vdin buffer in write list is not enough

Verify:
txhd2

Change-Id: I0253cb3a9585f748f16e2dfc531c40b72bf34a1c
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2023-10-20 08:33:36 -07:00
Brian Zhu 10d0401d86 di: fix first frame garbage for dct post with prelink [1/1]
PD#SWPL-141569

Problem:
dct post has clk gate timing issue with prelink mode

Solution:
1. disable clk gate mode for avg_flt module in dct post
2. add delay policy for dct post, not enable as default

Verify:
Verified on t5m

Change-Id: I805cddf07faa13c766f01485cdff0b60c7e0f65d
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
2023-10-20 06:04:06 -07:00
congyang.huang 4ad9b4011c drm: remove vblank_timestamp and correct irq [1/1]
PD#SWPL-137139

Problem:
1.the atomic time is too long
2.after turning on the wrback1/2,
the fps of the vpp2 is 60Hz

Solution:
1.remove vblank_timestamp because
keystone have one venc but two crtcs
2.correct drm-vpu irq

Verify:
txhd2

Test:
DRM-OSD-82

Change-Id: I7d55cf65c908a0aaeda17765ae231a75ea07011a
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-10-20 06:04:03 -07:00
congyang.huang ae3c70a7a2 projector: support txhd2 keystone [1/1]
PD#SWPL-137139

Problem:
not support txhd2 keystone

Solution:
add vpp1 and dummy_p connector to support keystone

Verify:
txhd2

Test:
DRM-OSD-82

Change-Id: I43aa67f39a968255753c882c9ec6b93ae3512900
Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
2023-10-20 06:03:42 -07:00
Huqiang Qin 8ac449d82e input: coverity clean [1/1]
PD#SWPL-141997

Problem:
Have coverity issue.

Solution:
Modify the code based on scan results.

Verify:
Kernel 5.15

Change-Id: I15cc6077c83e8ea6b88f33e8f51f1285a9f1af2e
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2023-10-20 04:44:13 -07:00
dian.shao cb3b9ec440 usb: reboot crg_exit panic [1/1]
PD#SWPL-142791

Problem:
Reboot cause crg_exit panic.

Solution:
Prevent multi platform device remove.

Verify:
ax208-s928x

Change-Id: I8575d60713ed9fcf406b35e7636bafd22b0fb14d
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2023-10-20 04:44:08 -07:00
chen.xu a7ae6e1b4e video_composer: fix interlace source start play and screen jitter [1/1]
PD#SWPL-137740

Problem:
1.interlace source start play and screen jitter.

Solution:
1.while top and bottom alternating appearance,
force bottom to top to display.

Verify:
ohm

Change-Id: Id727bd09bb6144f45b437c4902310591ec4503e3
Signed-off-by: chen.xu <chen.xu@amlogic.com>
2023-10-20 04:43:53 -07:00
Qianggui Song 1a6dd9c263 pinctrl: function of GPIOH_26 to GPIOH_29 is wrong [1/1]
PD#SWPL-143096

Problem:
GPIOH_26 to GPIOH_29 function 4 description is wrong

Solution:
Fix wrong description

Verify:
t5m_ay301

Change-Id: I6f9faa2a06629803618fd51c91daaf02a343a373
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
2023-10-20 02:04:12 -07:00
junyi.zhao 782f375c1a clk: fix coverity error [1/1]
PD#SWPL-141995

Problem:
coverity error

Solution:
fix it

Verify:
txhd2 be319

Change-Id: I66b792367385100bed5845d8bf4239f79253f6ef
Signed-off-by: junyi.zhao <junyi.zhao@amlogic.com>
2023-10-20 02:04:09 -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
mingyang.he 8674d31ef6 drm: s1a add palette by fbdev [1/1]
PD#SWPL-133998

Problem:
need palette about fb for s1a

Solution:
make hooks about meson_fbdev

Verify:
s1a

Test:
DRM-OSD-108

Change-Id: I31c444ad840fb706b9ca086da8c70faeb6d6d6e9
Signed-off-by: mingyang.he <mingyang.he@amlogic.com>
2023-10-20 02:03:44 -07:00
Wenjie Qiao d718b4c386 hdmitx21: fix no audio output under PCM/nonPCM switch [1/1]
PD#SWPL-143045

Problem:
aud_src_if update error when set audio mode

Solution:
Unify the audio parameters setting with callback

Verify:
s5/t7

Test:
DRM-TX-33

Change-Id: I69582511de24523d87fd33b1196374efe353acd6
Signed-off-by: Wenjie Qiao <wenjie.qiao@amlogic.com>
2023-10-19 23:54:03 -07:00
jialong.jiang 6ec3720cec vpp: dv displays abnormally in hdmi preview mode. [1/1]
PD#SWPL-143030

Problem:
The data is tunnel mode,
and hskip lost a color component.

Solution:
add t5w.

Verify:
t5w.

Change-Id: Ia7814b69091d15ac327f3b407bd3dfc7437b5876
Signed-off-by: jialong.jiang <jialong.jiang@amlogic.com>
2023-10-19 23:53:59 -07:00
Yu Tu bbd42b3933 pcie: resume lost msi lead to wifi not work [1/1]
PD#SWPL-143010

Problem:
common code lose patch [815953dc2011ad7a34de]

Solution:
pcie host workround

Verify:
sc2

Change-Id: Ie115ae9f8565816b52d9b77f8a588114e45fdb02
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
2023-10-19 23:53:55 -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
jian.hu b07ac2b485 clk: optimize clock regmap interface [1/1]
PD#SWPL-134344

Problem:
optimize clock regmap interface

Solution:
optimize clock regmap interface

Verify:
t5w/t3/t5m/t7c

Change-Id: I72b1e615e92c1667c3ed336ff42e5427074446c9
Signed-off-by: jian.hu <jian.hu@amlogic.com>
2023-10-19 22:03:51 -07:00
Jie Dai 60fe022156 lcd: t3x dual display [2/2]
PD#SWPL-119760

Problem:
t3x need dual-display in kernel

Solution:
add dual-display driver for t3x

Verify:
bc302

Change-Id: I6122e881a6cba0b9f990c457fe45707d3bbe8b98
Signed-off-by: Jie Dai <jie.dai@amlogic.com>
2023-10-19 22:03:47 -07:00
Pengcheng Chen 1b670eae8e vpp: fix height_after_ratio calc overflow issue [1/1]
PD#SWPL-142939

Problem:
height_after_ratio calc overflow when play 8k video
with 8k output screen_mode 2

Solution:
fix height_after_ratio calc overflow

Verify:
s5

Change-Id: I543926e105a33314c4dc40e5b626690843466a84
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2023-10-19 20:09:51 -07:00