Commit Graph

4282 Commits

Author SHA1 Message Date
Lei Yang 18828ec003 hdmirx: optimized afifo configuration [1/1]
PD#SWPL-139924

Problem:
Afifo does not work sometimes when dolby5.1 input

Solution:
optimized afifo configuration

Verify:
tm2

Change-Id: I9acdd0018325a88ae625398faca2c63e9bf1ab3f
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2024-01-20 09:11:25 +08:00
zhikui.cui 6aaff584f0 nand: dump bootloader at mtdblock0 [1/1]
PD#SWPL-143171

Problem:
parse data ecc

Solution:
The parsed data structure should be consistent with
the written data structure

Verify:
A4

Change-Id: I5ff24de085f0a46937830fa0b327f7c08bd23fc1
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-01-20 09:11:14 +08:00
zhikui.cui 96748bd4f2 nand: select slc nand mode [1/1]
PD#SWPL-142784

Problem:
can't read slc nand id

Solution:
select slc mode when detect prop "spi_cfg" in dts

Verify:
A4

Change-Id: I64d536d72c628bcd525177f5d732a8554b08b7b8
Signed-off-by: zhikui.cui <zhikui.cui@amlogic.com>
2024-01-20 09:11:08 +08:00
MingLiang Dong 84db97ab03 amvecm: fix sd video display abnormal [1/1]
PD#SWPL-143167

Problem:
sr hblank setting cause sr process undone

Solution:
decrease sr hblank

Verify:
verify on t3x

Change-Id: Id33b04f3de89fb3a8496209578d6bfc5761a720d
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
2024-01-20 09:10:50 +08:00
hai.cao 06c62755cb 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>
2024-01-20 09:10:40 +08:00
Pengcheng Chen 5c5e9ff226 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>
2024-01-20 09:10:30 +08:00
qiang.liu 26daf0d8f3 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>
2024-01-20 09:07:41 +08:00
Yao Jie b6a60af2fe 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>
2024-01-20 09:07:28 +08:00
can.zhang 3a03782cfa 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>
2024-01-20 09:07:18 +08:00
Liming Xue a4f6d19b1f 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>
2024-01-20 09:06:59 +08:00
binbin.wang a4a84ceb5c 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>
2024-01-20 09:06:34 +08:00
haitao.liu a95b1264a6 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>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-20 09:06:22 +08:00
Haotian Guo a4e53463f2 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>
2024-01-20 09:05:42 +08:00
haitao.liu c4c6a8b274 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>
2024-01-20 09:05:30 +08:00
Brian Zhu a141be7e05 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>
2024-01-20 09:05:19 +08:00
Jian Cao dac6bacd49 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>
2024-01-20 09:04:57 +08:00
jialong.jiang 1effc6635c 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>
2024-01-20 09:04:47 +08:00
jian.hu 8ea2681953 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>
2024-01-20 09:04:35 +08:00
yaoyu.xu 9b97258196 hdmirx: aud abnormal in 40M [1/1]
PD#SWPL-142370

Problem:
aud abnormal in 40M.

Solution:
aud sw flow modify and add 40M settings.

Verify:
t3x

Change-Id: If02ec2fe972c804a2f803bfc7aa88cca579132d9
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-20 09:04:25 +08:00
yaoyu.xu 8b1b7630ff hdmirx: add gcp mute cnt on t3x [1/1]
PD#SWPL-142467

Problem:
unnormal display when fps change.

Solution:
add gcp mute cnt when fps change.

Verify:
t3x

Change-Id: Ib920cd30dec4da77fb322e027aa60a1be2c35afb
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-20 09:04:16 +08:00
yaoyu.xu 2ffe49b892 hdmirx: bypass vid if when clk over 700M [1/1]
PD#SWPL-141931

Problem:
vsync has problem when rx clk next to vpu clk.

Solution:
bypass vid if.

Verify:
t3x

Change-Id: Icdec5e89bf23686fabd9226f2b8f7a62496843f5
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-20 09:04:07 +08:00
yaoyu.xu 2ca5228f3c hdmirx: t3x add fastswitch [1/1]
PD#SWPL-140896

Problem:
hpd is set to low when switch port.

Solution:
add fastswitch on t3x.

Verify:
t3x

Change-Id: I537bf9caec1835d177a312b50c9ad600b02bc6bf
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-20 09:03:59 +08:00
yaoyu.xu 0849481185 hdmirx: frl recognizes slowly [1/1]
PD#SWPL-142073

Problem:
frl recognizes slowly.

Solution:
reduce training wait time.

Verify:
t3x

Change-Id: I61891d48d334ec16a96a205ad70111fa1b9b3959
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-20 09:03:49 +08:00
qinghui.jiang 0b0b879d51 amvecm: improve gamma write for old chips [1/1]
PD#SWPL-140382

Problem:
add protect flow for gamma data write.

Solution:
add protect flow for gamma data write.

Verify:
t5d

Change-Id: I18880360630616400193a679362c2abcc0bad16b
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-01-20 09:03:29 +08:00
qinghui.jiang 76ddde717d amvecm: fix super black not work [1/1]
PD#SWPL-140482

Problem:
patch for super black feature does not work.

Solution:
modify vadj misc settings.

Verify:
t5d

Change-Id: I997f9a8a63b7e4b55cce2883559b224304fd5f27
Signed-off-by: qinghui.jiang <qinghui.jiang@amlogic.com>
2024-01-20 09:03:20 +08:00
Yongjie Zhu 9f81c3194a uvm: uvm realloc fill data need use calculate size [1/1]
PD#SWPL-139583

Problem:
video screencap has green stripes

Solution:
uvm realloc fill data need use calculate size

Verify:
T5M-S

Change-Id: I0e9def29d9d2ecad3e9252dcdcc96137019a820c
Signed-off-by: Yongjie Zhu <yongjie.zhu@amlogic.com>
2024-01-20 09:03:11 +08:00
Gaowei Zhao 796ac770f7 hdmirx: dump audio sample packets [1/1]
PD#SWPL-141076

Problem:
dump audio sample packets

Solution:
dump audio sample packets

Verify:
t3x

Change-Id: Ie86f174009bbdfbea86d9606722f6534d661d2fa
Signed-off-by: Gaowei Zhao <gaowei.zhao@amlogic.com>
2024-01-20 09:03:02 +08:00
qiang.liu 50244e4bf9 vdin: add upper use signal format [1/1]
PD#SWPL-142519

Problem:
driver not add upper layer use format

Solution:
driver add upper layer use format

Verify:
t5w

Change-Id: I6c9ff0487453f5122ca51a2f47f47fc5b656b873
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-20 09:02:53 +08:00
Jian Cao 508b8c4c23 vpp: add vpp blend update during pre vsync process [1/1]
PD#SWPL-141883

Problem:
wideo window blurry when switching axis

Solution:
correct vpp blend update in pre vsync process

Verify:
T3X

Change-Id: Ib41cb6ad71777ba746242a7da396f800c973852a
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
Signed-off-by: Luan Yuan <luan.yuan@amlogic.com>
2024-01-20 09:02:18 +08:00
haitao.liu dc5c5f8792 vdin: txhd2 select vppout in keystone [1/1]
PD#SWPL-137950

Problem:
txhd2 select postblend in keystone for black screen problem before,
now the issue was fixed,better to select vppout in keystone

Solution:
select vppout in keystone

Verify:
txhd2

Change-Id: I733efbf024a6afe571f967fec92131c0de06ac21
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-01-20 08:59:32 +08:00
jinbing.zhu 8ce389818d amvecm: 515 move struct to uapi [1/1]
PD#SWPL-142608

Problem:
move to uapi

Solution:
move to uapi

Verify:
t5w

Change-Id: Ie6737b1ad87792a6fb5ee5cff101464195da8354
Signed-off-by: jinbing.zhu <jinbing.zhu@amlogic.com>
2024-01-20 08:59:15 +08:00
qirong.li ad922ecd8b amvecm: add CUT_C1A [1/1]
PD#SWPL-140597

Problem:
CUT conflicts with respect to the two chips

Solution:
Set up two CUT to control different chips

Verify:
C1A

Change-Id: Idd396c30ab7cbaf9437ac2105a469dd88e266cdf
Signed-off-by: qirong.li <qirong.li@amlogic.com>
2024-01-20 08:59:06 +08:00
Bin.Wang2 bf7f4d7907 vlock: delete vsync shadow off operation [1/1]
PD#SWPL-137200

Problem:
The screen shows many vertical lines when previewing the HDMI source

Solution:
delete vsync shadow off operation

Verify:
T3X

Change-Id: Icd187ca8b21d81720d0b44e3d394842e462133a0
Signed-off-by: Bin.Wang2 <bin.wang2@amlogic.com>
2024-01-20 08:58:55 +08:00
qinglin.li cabc3dc59f freertos: shutdown kill rtos and wait cpu1 off [1/1]
PD#SWPL-141473

Problem:
shutdown cpu & receive cpu1 at the same time will cause timing issue

Solution:
at shutdown function at freertos driver
shutdown kill rtos and wait cpu1 off,then goto shutdown cpus

Verify:
test ok

Change-Id: If17630fdd4df715c0800f4375ad256c89a14fea9
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-01-20 08:58:27 +08:00
qinglin.li a17c48f837 freertos: logbuff save in linux [1/1]
PD#SWPL-141473

Problem:
1.logbuff can't read when rtos finished
2.android reboot, but rtos not reboot

Solution:
1.save logbuf when rtos exited
2.add rtos deinit when android reboot

Verify:
local

Change-Id: I64e84dfda1993da986630f8bdd8fa1c18c2c0446
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
2024-01-20 08:58:27 +08:00
haitao.liu bbf206c4b3 vdin: fixed issue on projects sync to trunk [1/1]
PD#SWPL-142537

Problem:
1.Connect PC, cannot switch successfully between
4096*2160 60HZ and 4096*2160 50HZ
2.optimize dv processing

Solution:
1.Checking cycle and duration after get priority in ISR
2.set to sdr when eotf is wrong

Verify:
t5m

Change-Id: I0b0c63450d6e1b8341813d32b1b4d08b78a71a47
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-01-20 08:58:27 +08:00
haitao.liu f389ea4b31 vdin: enable input active h/v checking [1/1]
PD#SWPL-139456

Problem:
Video is not ready causing screen capture with only video abnormal

Solution:
Checking active h/v if invalid drop this frame on vdin1

Verify:
T7c

Change-Id: I25b2b0ea5a88d09a4f459018a20e9461627a1fb4
Signed-off-by: haitao.liu <haitao.liu@amlogic.com>
2024-01-20 08:58:27 +08:00
hai.cao 7df09b12af video: expand vpp mute function [1/1]
PD#SWPL-142295

Problem:
vpp mute control conflict

Solution:
control on or off by module self

Verify:
txhd2

Change-Id: Id3f35903c5c409793fd303d0086975434e83e137
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-01-20 08:58:27 +08:00
Chuan Liu 1b33379dcc Revert "clk: parent of cpu_dyn_clk is incorrect [1/1]"
PD#SWPL-142118

Problem:
t5m dvfs can't run properly after patch is added

Solution:
This reverts commit 752b5b6697.

Verify:
t5w at301

Change-Id: I7095d42b1dcfdfcf2fbe65d76dc0a55f1edb6f52
Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
2024-01-20 08:58:27 +08:00
mingxiu.sun 94968fb744 vdin: disable the reverse of vdin1 under keystone [1/1]
PD#SWPL-141757

Problem:
The reverse function is enabled for both vpp and vdin1;
the reverse did not take effct


Solution:
disable vdin1 reverse

Verify:
txhd2 keystone kernel5.15

Change-Id: Iadb466130b15f6a5ee6283b889086032dd7f3d1d
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-01-20 08:58:27 +08:00
mingxiu.sun 0b18cd76e3 vdin & tvafe: probe log clear [1/1]
PD#SWPL-140697

Problem:
For tvafe and vdinstartup and runtime print cleanup

Solution:
reduce printing

Verify:
txhd2 kernel5.15

Change-Id: I54979201d98fd930ac117e0a667bc5d4d2d7942d
Signed-off-by: mingxiu.sun <mingxiu.sun@amlogic.com>
2024-01-20 08:58:27 +08:00
Pengcheng Chen c2325188f1 vpp: video secure display with white screen when 4k120hz [1/1]
PD#SWPL-140820

Problem:
video secure display with white screen when 4k120hz

Solution:
1.move video_secure_set to vd_render
2.add prevsync rdma write to secure wr_op

Verify:
t3x

Change-Id: Ib125df5c7bb873d6ed468cc47cefccc177d3cefc
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
2024-01-20 08:58:27 +08:00
Lei Yang 1a6fec0b3e hdmirx: increase interval time of HPD [1/1]
PD#SWPL-142152

Problem:
no audio input after edid set to 2.0

Solution:
increase interval time of HPD low level

Verify:
t5m

Change-Id: I22171cd4ce2c41b314c970a2be6ab4436efaeec1
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
2024-01-20 08:58:27 +08:00
haiyang.ren 4524ade6a8 Audio: Add Kctrl to set audio output [1/2]
PD#SWPL-139689

Problem:
Zapper don't support dual_output.

Solution:
Add kctrl to select output source;

Verify:
S805C1-BG201

Change-Id: If741422427311368ea93eda2cfced06ec219adc9
Signed-off-by: haiyang.ren <haiyang.ren@amlogic.com>
2024-01-20 08:58:27 +08:00
Huqiang Qin 397c67cb59 saradc: remove the kfifo_buf.c file that is incompatible with kernel 6.1 [1/1]
PD#SWPL-142023

Problem:
The original kfifo_buf.c file has been changed in kernel 6.1,
so the kfifo_buf.c copied from kernel 5.15 in common_drivers
is no longer suitable for kernel 6.1.

Solution:
Remove the kfifo_buf.c file.

Verify:
C2/AF409 SC2/AH212

Change-Id: Ie34457fa040c08ab2972fe866baecd584a891746
Signed-off-by: Huqiang Qin <huqiang.qin@amlogic.com>
2024-01-20 08:58:27 +08:00
hai.cao f646c2f9b9 osd: osd will offset when 3 buffer [1/1]
PD#SWPL-142253

Problem:
osd will offset when 2 osd display

Solution:
fix it

Verify:
txhd2

Change-Id: Ia159aabdf8db267431763424215018916c4121a5
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-01-19 23:14:11 +08:00
Song Zhao b7145c1c3a msync: add mono time into pts structure [1/2]
PD#TV-89282

Problem:
HbbTV need more accurate position.

Solution:
Add two more ioctl to get the A/V pts/mono pair

Verify:
T5W + Sandia

Change-Id: I9bc5408d0b41b4429056e581a18646d16d44fe41
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
2024-01-19 23:13:51 +08:00
qiang.liu 0b87322c10 dsc: add get dsc pix_per_clk [1/1]
PD#SWPL-142209

Problem:
vdin not get dsc pix_per_clk

Solution:
add get dsc pix_per_clk

Verify:
t3x

Change-Id: I4371ff1173f0e3cb53e9dea1ed127d1fcb597868
Signed-off-by: qiang.liu <qiang.liu@amlogic.com>
2024-01-19 23:13:41 +08:00
hai.cao d0a8eed715 osd: osd will offset when reverse [1/1]
PD#SWPL-142077

Problem:
osd will offset when reverse

Solution:
fix it

Verify:
txhd2

Change-Id: I81e406bf9ea05fb579f779aa17f121f7e5bb9c1f
Signed-off-by: hai.cao <hai.cao@amlogic.com>
2024-01-19 23:13:09 +08:00
yaoyu.xu ab6e8ba7db hdmirx: frl yuv420 display and audio setting [1/1]
PD#SWPL-141859

Problem:
1.frl play sound unnormal
2.yuv420 display unnormal

Solution:
1.use fpll to calculate aud clk.
2.set preproc.

Verify:
t3x

Change-Id: I612b402678f9a1227f3cf22431ea797a40947a91
Signed-off-by: yaoyu.xu <yaoyu.xu@amlogic.com>
2024-01-19 23:12:50 +08:00