Bruno Martins [Sun, 7 Jul 2024 21:24:59 +0000 (22:24 +0100)]
media: Strip modules_install rules
There's no point in doing this.
Change-Id: I01d7963f3dfd8933c240e7c6b00c3c1e22d402f7
Bruno Martins [Sat, 16 Dec 2023 23:19:34 +0000 (23:19 +0000)]
media: Keep an empty Android makefile in the root
Just to prevent including other makefiles inside the kernel module tree.
Change-Id: I08e032ac722386ed1f3241a89c3e63ca5a1c0b2d
Bruno Martins [Sat, 16 Dec 2023 22:51:32 +0000 (22:51 +0000)]
media: Remove Android makefile with old-style build rules
These build rules are no longer needed, devices now build the modules
as real external kernel modules.
Change-Id: I11546f3dbfe40e8cbcf0653b0a7274a81a7ad328
Nolen Johnson [Tue, 23 Apr 2024 00:01:22 +0000 (20:01 -0400)]
Allow g12b to opt-out of using this
Change-Id: Iaceeaeece176c49f6a031e4f3217bed8bff72334
Bruno Martins [Fri, 20 Oct 2023 23:22:47 +0000 (00:22 +0100)]
media: Strip modules using llvm-strip
With this, the GCC dependency is gone for good.
Change-Id: Ia15dfd29b5c71e6e02a2dda43fd897c59f7d6a9e
Bruno Martins [Fri, 20 Oct 2023 14:19:42 +0000 (15:19 +0100)]
frame_provider: decoder: h264: Fix bitwise-instead-of-logical error
Change-Id: Ifd479eb8f12f40be5a6d64a25609129f68b0a4d3
Christian Hoffmann [Sat, 11 Feb 2023 10:56:22 +0000 (11:56 +0100)]
amlogic: Compile kernel modules with clang
Change-Id: I4eab30040035e189ce63a06b2445aa2b1780fc79
Vitaliy Tomin [Fri, 27 May 2022 17:51:46 +0000 (01:51 +0800)]
Guard for g12a, g12b and sm1 SOCs
Change-Id: Ic900996019110fe5f05c9865efe04950eac8ae80
Aaron Kling [Thu, 24 Jun 2021 20:08:43 +0000 (15:08 -0500)]
Add makefile to build modules inline
Change-Id: Id1f6e907214b4077f2d7012c0e8ec3edad49b3ff
TreeHugger Robot [Wed, 22 Jun 2022 15:06:16 +0000 (15:06 +0000)]
Merge "h265: CB2 change 265 HDR signal type. [1/1]" into android-tv-deadpool-4.9-android12
kuan.hu [Sat, 18 Jun 2022 09:04:46 +0000 (17:04 +0800)]
h265: CB2 change 265 HDR signal type. [1/1]
SWPL-83432
BUG=
232905331
Problem:
The HDR parameter is read when the
color_description_present_flag is not recognized,
resulting in the wrong parameter being transmitted
when the color_description_present_flag is 0.
Solution:
According to the HDR protocol, adjust
the read logic of related parameters.
Verify:
adt3
Signed-off-by: kuan.hu <kuan.hu@amlogic.com>
Change-Id: I188624329fb3493eb53800ab7914b41f4a30ab35
Hongguang Chen [Sun, 19 Jun 2022 19:15:54 +0000 (19:15 +0000)]
Merge "decoder: Revert "decoder: CB2 hdr information is acquired abnormal [1/1]" into android-tv-deadpool-4.9-android12
Lele Liu [Sat, 18 Jun 2022 03:41:35 +0000 (11:41 +0800)]
decoder: Revert "decoder: CB2 hdr information is acquired abnormal [1/1]
SWPL-83432
BUG=
232905331
Problem:
regression issue.
Solution:
revert commit
91811f324c6f8988861246831420e09b763b4d62.
Verify:
adt3
Change-Id: I7b61fbb463acebde6eee75ae3cf78d511a4e7388
TreeHugger Robot [Fri, 17 Jun 2022 14:37:59 +0000 (14:37 +0000)]
Merge "decoder: CB2 hdr information is acquired abnormally. [1/1]" into android-tv-deadpool-4.9-android12
kuan.hu [Mon, 6 Jun 2022 12:44:07 +0000 (20:44 +0800)]
decoder: CB2 hdr information is acquired abnormally. [1/1]
PD#SWPL-83432
BUG=
232905331
Problem:
The HDR parameter is read when the
color_description_present_flag is not recognized,
resulting in the wrong parameter being transmitted
when the color_description_present_flag is 0.
Solution:
According to the HDR protocol, adjust
the read logic of related parameters.
Verify:
adt3
Signed-off-by: kuan.hu <kuan.hu@amlogic.com>
Change-Id: I5694100d826afc32674074f1e5508ab05f7dadb0
Vitaliy Tomin [Fri, 27 May 2022 17:51:46 +0000 (01:51 +0800)]
Guard for g12a, g12b and sm1 SOCs
Change-Id: Ic900996019110fe5f05c9865efe04950eac8ae80
Hongguang [Tue, 24 May 2022 02:21:03 +0000 (19:21 -0700)]
Fix private modules install path
Bug:
220644706
Test: make and find the private modules in dist.
Change-Id: I6d93347c1617a28e139cd4979ae0b09c960cf684
Hongguang [Mon, 23 May 2022 23:16:58 +0000 (16:16 -0700)]
Private modules should be installed into private
Bug:
220644706
Test: make and find the private modules in dist.
Change-Id: I870ef0ee9ba4a460734b5e2ead23d73f8db7c0f7
Xiaohang Cui [Sun, 1 May 2022 13:45:35 +0000 (21:45 +0800)]
media_modules: CB1 VP9 fix secure stream blurred screen [2/2]
PD#SWPL-80006
b/
229652967
Problem:
VP9 secure stream blurred screen, because prob has been moved
to tee.
Solution:
1.add vp9 prob interfaces, move vp9 prob process to Tee
2.modify debug flow for secure avoid crash.
refer to:
https://scgit.amlogic.com/#/c/165922/
Change-Id: I1e88722b8653ea74b38da96711d7861bbb4f2b0f
Signed-off-by: Xiaohang Cui <xiaohang.cui@amlogic.com>
Aaron Kling [Thu, 24 Jun 2021 20:08:43 +0000 (15:08 -0500)]
Add makefile to build modules inline
Change-Id: Id1f6e907214b4077f2d7012c0e8ec3edad49b3ff
kuan.hu [Fri, 10 Sep 2021 06:06:23 +0000 (14:06 +0800)]
media_module: CB1 vp9 and av1 pts adjustment incorrect. [1/1]
PD#SWPL-59072
Problem:
The logic of adjusting pts is wrong.
Solution:
Modify the logic of adjusting pts.
Verify:
ADT3
Signed-off-by: kuan.hu <kuan.hu@amlogic.com>
Change-Id: Ia5302afc6e309088e0576276545eadf5bd9f0d7e
kuan.hu [Thu, 9 Sep 2021 07:20:53 +0000 (15:20 +0800)]
media_module: CB1 mpeg4 and vp9 resolution switching anomaly. [1/1]
PD#SWPL-59072
Problem:
1.mpeg4:The set resolution was used when
outputting the frame, not the actual resolution.
2.vp9,av1:Since pts has entered the error correction
process,the normal pts information has been modified.
Solution:
1.mpeg4:output the actual decoding resolution.
2.vp9,av1:optimize PTS error detection logic.
Verify:
ADT3
Signed-off-by: kuan.hu <kuan.hu@amlogic.com>
Change-Id: Idb9988e99cfebb7a145c48f871ec7a52b38fe11b
gan.zhang [Thu, 26 Aug 2021 12:04:14 +0000 (20:04 +0800)]
decoder: CB1 fix some crash in peek. [1/1]
PD#SWPL-58570
Problem:
When fifo is abnormal, the back-end peek to the wrong data crash.
Solution:
Check whether the fifo is abnormal and return empty when abnormal.
Verify:
adt3
Change-Id: Ie84d4bae905094790af13271ad7bdee9f94ff254
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
gan.zhang [Wed, 21 Jul 2021 08:36:13 +0000 (16:36 +0800)]
mpeg12: CB2 fix output pts error in AndroidS CTS Test. [1/1]
PD#SWPL-54626
BUG=
199275310
Problem:
The pts information of the decoded B frame is 0, The backend will
calculate the pts of the B frame according to the duration, so that the
calculated pts information will be incorrect and cause the test to fail.
Solution:
The decoded output pts information uses the one provided by
the upper layer.
Verify:
Franklin
Change-Id: I8c273abc3e43b6777fc1bdab81208a769d52b2e5
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
gan.zhang [Tue, 10 Aug 2021 13:30:22 +0000 (21:30 +0800)]
mmpeg4: CB1 mpeg4 crc check fail. [1/2]
PD#SWPL-56277
Problem:
The mPEG4 decoder working buffer is not initialized
before decoding and it may cause the CRC check
to be affected by dirty data.
Solution:
Clear decoder internal working buffer before decoding.
Verify:
ADT3
Change-Id: I5ae0f1951705e332263e17720237936d523cab52
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
Aaron Kling [Thu, 24 Jun 2021 20:08:43 +0000 (15:08 -0500)]
Add makefile to build modules inline
Change-Id: Id1f6e907214b4077f2d7012c0e8ec3edad49b3ff
Hui Zhang [Mon, 14 Jun 2021 09:17:40 +0000 (17:17 +0800)]
h265: CB0 fix some h265 playback issue [1/1]
PD#SWPL-51883
Problem:
some h265 stream playback issue
Solution:
increase dblk_data2 buf size
Verify:
u212
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: I808dc9a5b7dc4171a0596e580a0783dbf5edaed7
Liang Ji [Tue, 15 Jun 2021 04:52:27 +0000 (12:52 +0800)]
adt3-S media_modules source code [1/1]
internal tot CL:
h265: Revert fix special long ref issue [1/1]
SWPL-49771
Problem:
some file playback unsmooth.
Solution:
Revert commit
915cf6061ec37e7f937b6c73d7db10ec1b8db335
Verify:
A311D-W400
Change-Id(I38171dd2c8b5bbc1aafe07185d9c9dfaf6bb88ce)
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Signed-off-by: Liang Ji <liang.ji@amlogic.com>
Change-Id: Id514584bd7ee4de8bda95c75d9e25adf635b8ccc
yuanfa.zhuang [Thu, 14 Jan 2021 12:05:48 +0000 (20:05 +0800)]
vdec: When one of the fields is empty, play the screen [1/1]
PD#SWPL-41227
Problem:
Interlaced stream is recognized as progressive,
when one of the fields is empty, the screen will be played
Solution:
When this happens, only a valid field is output
Verify:
U21BQ-S905X2
Signed-off-by: yuanfa.zhuang <yuanfa.zhuang@amlogic.com>
Change-Id: Ib5dacc09acf45ce2cddfa700b837961e87ffc106
Hui Zhang [Thu, 14 Jan 2021 03:07:56 +0000 (11:07 +0800)]
vdec: change to support vc1 decoder [1/1]
PD#SWPL-39316
Problem:
vdec driver profile report no_single
Solution:
remove no_single in profile,
becuase single mode can be supportted on SC2
Verify:
AH212
Change-Id: Id5bb11a46d5c65e0417c2c25484334fe471346eb
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Peng Yixin [Mon, 11 Jan 2021 02:12:56 +0000 (10:12 +0800)]
media_module: can't get the correct width and height information [1/1]
PD#SWPL-40808
Problem:
When the width and height of the file exceed
the decoding limit, the user layer cannot
read the width and height information correctly.
Solution:
Transmit the width and height information from
the header to solve this issue.
Verify:
AM311
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Change-Id: I036eaa410eeff7391cd571a4e08ee201884e4e83
miaohong chen [Fri, 8 Jan 2021 07:03:12 +0000 (15:03 +0800)]
mpeg2: Optimize frame put strategy [1/1]
PD#SWPL-39398
Problem:
Due to some errors, the frame status is incorrect,
causing the decoder to get stuck.
Solution:
Set it to 0 when the use index is abnormal to avoid getting stuck.
Verify:
AH212
Change-Id: I6048fcf2bed99c39012ebce9339bdd87cf4ae78c
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
gan.zhang [Tue, 8 Dec 2020 12:11:03 +0000 (20:11 +0800)]
decoder: fix a kernel panic [1/1]
PD#SWPL-38642
Problem:
Cause crash when vf in null
Solution:
Check for null pointer.
Verify:
AH212
Change-Id: I41583004e735c40c71e50de6818e6f097a68a6a0
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
Chuangcheng Peng [Mon, 11 Jan 2021 02:02:03 +0000 (10:02 +0800)]
demux: fix switch timeshift program crash [1/1]
PD#SWPL-32565
Problem:
switch timeshift program crash.
Solution:
dvr feed should be clear when free channel.
Verify:
verified at AC215
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Change-Id: Ic29e806a6d90ad3fd1784b9ad59ea97fa4cb8f20
miaohong chen [Fri, 8 Jan 2021 06:10:45 +0000 (14:10 +0800)]
vmh264: Play special stream,enter PIP,video freeze in PIP window [1/1]
PD#SWPL-39853
Problem:
Registers are misused during two-channel playback.
Solution:
Delete register references that will cause misuse
when reset buffer.
Verify:
AH212
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Change-Id: I3fb13e56af77045f094b1fe397cd02dd165b8060
Peng Yixin [Fri, 8 Jan 2021 06:23:28 +0000 (14:23 +0800)]
media_module: h264 and mpeg2 pip playback, h264 show mosaic picture [1/1]
PD#SWPL-40045
Problem:
When the IQIDCT_CONTROL register is not saved
because CSD data is not found at playback start,
next time to decode, the IQIDCT_CONTROL register's
value is wrong, cause this problem.
Solution:
When the IQIDCT_CONTROL register is not saved,
set IQIDCT_CONTROL register the initialized value(0x200).
Verify:
SC2
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Change-Id: I8af14845f953f9e6e95b5f766f4bcec6b513b871
yuanfa.zhuang [Fri, 8 Jan 2021 09:53:05 +0000 (17:53 +0800)]
vdec: secure mustn't check data [1/1]
PD#SWPL-40788
Problem:
Secure access to catch data will crash
Solution:
Add conditions to allow dump data
Verify:
U21BQ-S905X2
Signed-off-by: yuanfa.zhuang <yuanfa.zhuang@amlogic.com>
Change-Id: Ie83985ebeaffd9d9c4ed96f20be7c17e724d657b
peng huang [Mon, 4 Jan 2021 05:27:00 +0000 (13:27 +0800)]
mpeg4 single: Adding the first frame is the keyframe judgment [1/1]
PD#SWPL-40244
Problem:
Some H263 source seek will appear green Mosaic
Solution:
Output the frame P in the last GOP
Verify:
AndroidP
Change-Id: Ib88a6e4ae1849c3eef5e5ed827eb4f9404b6bfeb
Signed-off-by: peng huang <peng.huang@amlogic.com>
xinguang.jiang [Wed, 6 Jan 2021 12:37:40 +0000 (20:37 +0800)]
vdec: fix coverity issues [1/1]
PD#SWPL-19875
Problem:
There are some coverity scanned issues
Solution:
Fix the coverity issues
Verify:
S905X4-AH212
Change-Id: I215a1d1e2350a822c4ac8e11fcdcd122bb43fc49
Signed-off-by: xinguang.jiang <xinguang.jiang@amlogic.com>
Peng Yixin [Tue, 5 Jan 2021 08:48:21 +0000 (16:48 +0800)]
media_module: h265 the first frame is different when play many times [1/1]
PD#SWPL-39208
Problem:
CSD information is discarded mistakenly due to the dirty data found at
the start of playing, cause this problem.
Solution:
When it is found that when the dirty data is more than 1M at start
play, it will not discarded completely, and only half of the data is
discarded to solve this problem.
Verify:
SC2
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Change-Id: Ia498f5b97496a7f392fcd5547d088a5224ff6eb0
miaohong chen [Wed, 6 Jan 2021 09:15:43 +0000 (17:15 +0800)]
decoder: Pip switching channel cause crash probably [1/1]
PD#SWPL-40600
Problem:
When pip switching channel, upper layer call poll by mistake.
Solution:
Disable polling, when not in FCC.
Verify:
AH212
Change-Id: I2d9a86f165f90d4da9a3ceec334181d1b735ba36
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
xinguang.jiang [Tue, 29 Dec 2020 12:20:54 +0000 (20:20 +0800)]
vdec: fix coverity issues [1/1]
PD#SWPL-19875
Problem:
There are some coverity scanned issues
Solution:
Fix the coverity issues
Verify:
S905X4-AH212
Change-Id: Idff1579075b613f8cce1803714b828b879aafe18
Signed-off-by: xinguang.jiang <xinguang.jiang@amlogic.com>
miaohong chen [Mon, 30 Nov 2020 10:53:48 +0000 (18:53 +0800)]
decoder: FCC adds decoder frame drop mode [1/1]
PD#SWPL-35624
Problem:
Make the cutting stage fast and
synchronize audio and video.
Solution:
Decoder adds drop frame mode.
Verify:
AH212
Change-Id: I82737adaa5203d50d02615fbab875ea8442f8688
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
yunmin.chen [Sat, 2 Jan 2021 15:26:43 +0000 (23:26 +0800)]
tsplayer: Synchronization mode settings. [1/1]
PD#SWPL-38521
Problem:
Setting amaste or vmaste is invalid.
Solution:
Remove the mandatory setting to PcrMaster.
Verify:
AH212
Change-Id: Ia361de4ff5d7f4e6ee782429b998dc8552f882f6
Signed-off-by: yunmin.chen <yunmin.chen@amlogic.com>
Lifeng Cao [Mon, 4 Jan 2021 14:56:42 +0000 (22:56 +0800)]
media_sync: save last stc in instance struct [1/1]
PD#SWPL-40259
Problem:
Some stream has different PCR, So need save last stc
in instance struct
Solution:
save last stc in instance struct
Verify:
AH-212
Change-Id: I3ef4e9aa5d052d652b84183c46364e28eedc7e9d
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
Peng Yixin [Fri, 1 Jan 2021 12:04:49 +0000 (20:04 +0800)]
media_module: h264 and mpeg2 pip playback, mpeg2 show mosaic picture [1/1]
PD#SWPL-39683
Problem:
Mult-channel playback, quant data was not recovered each time when
mpeg2 was decoded, cause show mosaic picture.
Solution:
Restore quant data every time when mpeg2 decode to solves this problem.
ucode gerrit id: 138757
ucode commit id: 75a2cf
ucode change id: I2a17b
Verify:
SC2
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Change-Id: I20d54ba16e85fae662f092441d7460779aa1dfad
apollo.ling [Wed, 30 Dec 2020 08:17:21 +0000 (16:17 +0800)]
vdec: avoid config HEVC_MPRED_TILE_SIZE_LCU with width or height 0 [1/1]
PD#SWPL-40159
Problem:
Crafted HEVC File Crashes the Device
Solution:
Avoid config HEVC_MPRED_TILE_SIZE_LCU with width or height 0
Verify:
maxwell
Change-Id: I9c1af070da1286d9c776dc06c8b85d5b39d77c3b
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
Lifeng Cao [Fri, 25 Dec 2020 15:53:04 +0000 (23:53 +0800)]
tsplayer: Update audio anthor time with nowUs [1/1]
PD#SWPL-39181
Problem:
When has stc and update anthor system time use sending
from user space. we need use calculate stc diff to
judge if need update anthor.
Solution:
Update audio anthor time with nowUs
Verify:
AH212
Change-Id: Idf2f4dcae1b1c40ec6176e78d3514bef1784506a
Signed-off-by: Lifeng Cao <lifeng.cao@amlogic.com>
Hui Zhang [Thu, 24 Dec 2020 03:20:55 +0000 (11:20 +0800)]
vp9: fix playback mosiac issue [1/1]
PD#SWPL-39541
Problem:
this is a bug in mpred_co_mv code.
caused playback mosiac
Solution:
add fix code in mpred_co_mv
ucode gerrit id: 137227
ucode commit id: 9dcf21
ucode change id: I33186
Verify:
X301
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: I043bae95be232772e657925e1a3375da498587f5
Peng Yixin [Thu, 12 Nov 2020 06:20:56 +0000 (14:20 +0800)]
h264: stream mode vpts lookup fail [1/1]
PD#SWPL-35520
Problem:
Because the stream will checkin one vpts every three frames, and some
of the frames size is small, it will cause lookup pts is successful
but it doesn't match, resulting playback unsmooth.
Solution:
When lookup fail is detected many times and the frame size is
small, pts is computed using duration to solve the problem.
Verify:
SC2
Change-Id: Ib9319fc46e28006ccca173c87faf88b88288ba66
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
apollo.ling [Thu, 24 Dec 2020 12:15:19 +0000 (20:15 +0800)]
vdec: check the pointer before using it [1/1]
PD#SWPL-38329
Problem:
play special stream,DUT reboot when stream replay
Solution:
Check the pointer before using it
Verify:
ah212
Change-Id: I53a1e2643f00513cae307aa61ed90f32c71bba65
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
miaohong chen [Thu, 17 Dec 2020 05:53:13 +0000 (13:53 +0800)]
mpeg2: pip user data pushing crash [1/1]
PD#SWPL-39533
Problem:
wrong user data over size causes crash.
Solution:
limit user data pushing size
Verify:
AH212
Change-Id: I581429122d39803cbe1b00280575f94b7a71812c
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
nengwen.chen [Mon, 21 Dec 2020 10:27:14 +0000 (18:27 +0800)]
media_modules: remove tuner and demod attach [2/4]
PD#SWPL-39474
Problem:
remove tuner and demod attach.
Solution:
1.remove tuner and demod attach.
2.remove tuner and demod dts property.
3.dvb_extern_register_frontend()/dvb_extern_unregister_frontend().
Verify:
Verified by ac214, ac232, ah212.
Signed-off-by: nengwen.chen <nengwen.chen@amlogic.com>
Change-Id: Ied4db82c8514a1c116aa5425058288eb7a9ec1e0
yuanfa.zhuang [Tue, 22 Dec 2020 09:33:43 +0000 (17:33 +0800)]
vdec: Temporarily save the value of the register [1/1]
PD#SWPL-38043
Problem:
AV_SCRATCH_F register is tampered with by mpeg2
during multi-channel playback, resulting in playback show mosaic
Solution:
Increase the variable to save the value,
read the value directly next time
Verify:
S905X4-AH212
Signed-off-by: yuanfa.zhuang <yuanfa.zhuang@amlogic.com>
Change-Id: If36a83b1965d51045af2cd399934c87740e79616
shihong.zheng [Tue, 22 Dec 2020 07:07:35 +0000 (15:07 +0800)]
vav1: remove header bufsize in ucode work buffer. [1/1]
PD#SWPL-39162
Problem:
fix av1 alloc ucode work buffer failed when create
many instances.
Solution:
reduce used bufsize in workspace. the header
buf is alloc dynamic, so do not need add size
here.
Verify:
ah212
Change-Id: I5b35fcc8a06aaea96a066d610d3991f32cdb3a83
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Peng Yixin [Mon, 21 Dec 2020 11:27:40 +0000 (19:27 +0800)]
media_module: DVB pip playback stuck or show mosaic issue [1/1]
PD#SWPL-39258
Problem:
The MDEC_PIC_DC_CTRL register was modified at the same time,one
channel is decoding, and other channel do initialization operation.
Solution:
This problem was solved by moving the MDEC_PIC_DC_CTRL register
operation of probe to the run function to resolve this problem.
Verify:
SC2
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Change-Id: I95ec497991fe14591086b000a6fbb2b4c68fb738
Song Zhao [Tue, 22 Dec 2020 00:54:00 +0000 (16:54 -0800)]
v4l2: resolve a busy loop [1/1]
PD#SWPL-38455
Problem:
When decoder ES chunk is full, aml_vdec_worker can get next source
buffer but can't not decoder it with vdec_if_decode(). But it will
trigger v4l2_m2m_job_finish() and do another try immediately. This
is a busy loop.
Solution:
Sleep for 50ms when ES chun is full.
Verify:
T5D + TRC
Change-Id: Ide6163242075981c769d6381ecf7edebe7837b4f
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
shihong.zheng [Tue, 8 Dec 2020 02:56:51 +0000 (10:56 +0800)]
amstream: fix crashed after video port init failed. [1/1]
PD#SWPL-38536
Problem:
crash after video port init failed.
Solution:
fix bug when port init failed.
Verify:
ah212
Change-Id: Icc2d40a4899bf7d8a780a50178df782cec3a2da0
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
miaohong chen [Mon, 14 Dec 2020 05:24:09 +0000 (13:24 +0800)]
decoder: Alloc memory optimization [1/1]
PD#SWPL-39007
Problem:
It is not neccessary to using kmalloc.
Solution:
Replace kmalloc with vzalloc.
Verify:
u212
Change-Id: I6e9dc6497f2827feb00af25ef7bd0d4bd23590a1
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
Zhao Yi [Thu, 10 Dec 2020 06:37:20 +0000 (14:37 +0800)]
vvc1: unstable pts support [1/3]
PD#TV-27965
Problem:
pts is unstbale
Solution:
if unstable flag is set to 1,
get a pts value by frame duration.
Verify:
androidP
Change-Id: I7a0de6aaa1071874f8323f3df561286c596b451d
Signed-off-by: Zhao Yi <zhao.yi@amlogic.com>
Chuanzhi Wang [Tue, 15 Dec 2020 06:11:12 +0000 (14:11 +0800)]
tsdemux: use hw_demux spinlock to sync audio and subtitle reset. [2/2]
PD#SWPL-38748
Problem:
Video freeze when switch audio track.
Solution:
Use the hw demux spinlock to sync audio reset.
Verify:
S905X2 U215
Signed-off-by: Chuanzhi Wang <chuanzhi.wang@amlogic.com>
Change-Id: Ie2910ef4c32ccc68c3dc9979cd2a3ae778327500
Hui Zhang [Thu, 3 Dec 2020 08:36:49 +0000 (16:36 +0800)]
vh265: fix h265 playback freeze issue in frame mode with kodi [1/1]
PD#SWPL-37390
Problem:
with Kodi, this stream will send I frame with eos nal in head of
chunk. decode will idscard all frame data once meet eos nal.
it will cause I frame missed
Solution:
in frame mode, decoder will check shiftbytes and decode size when
eos nal meet. if eos nal in the beginning of the chunks. don't skip
the left data, go on decoding
Verify:
AC214
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: I7900df3cfaa70811c5d9d52df0c68fa6616f36d4
Hui Zhang [Wed, 16 Dec 2020 09:02:09 +0000 (17:02 +0800)]
mmpeg4: fix special resolution display issue [1/1]
PD#SWPL-38564
Problem:
the stream is 720x1280, display is adnormal
Solution:
when width < height, change canvas config for
correct display
Verify:
AH212
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: I77df15a7683a74f9e41c8118e19330a39cc85cf6
Song Zhao [Fri, 26 Jun 2020 21:30:17 +0000 (14:30 -0700)]
v4l: add output dump feature [1/1]
PD#SWPL-28515
Problem:
Some App like Cobalt has random garbage, need stream dump to analyze
Solution:
Add dump feature
Verify:
U212
Change-Id: Ifa00f582f4add2ae43f5636dde4bda6a97bfccf6
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
gan.zhang [Tue, 15 Dec 2020 08:02:52 +0000 (16:02 +0800)]
vp9: remove some print information. [1/1]
PD#SWPL-38771
Problem:
Too much unimportant information in serial.
Solution:
Remove some print in default output print.
Verify:
AH212
Change-Id: I4791df13e04fab64cbbc092da8c3e996f659e40c
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
gan.zhang [Thu, 10 Dec 2020 12:13:19 +0000 (20:13 +0800)]
decoder: add low_latency mode in v4l2. [1/1]
PD#SWPL-38312
Problem:
add param in decoder to control low latency mode for multi-inst
Solution:
add parms low_latency_mode for low latency mode.
Verify:
AH212
Change-Id: I9a97d77d3cc585a566246e024d4fcad0fe0c5b92
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
Song Zhao [Mon, 14 Dec 2020 19:31:27 +0000 (11:31 -0800)]
v4l2: fix a decoder release after oom [1/1]
PD#SWPL-39061
Problem:
When oom happens, decoder is leaked.
Solution:
correct error handling
Verify:
T318
Change-Id: I7d0575be2a58aad0bb3589362b45f56fda24e501
Signed-off-by: Song Zhao <song.zhao@amlogic.com>
miaohong chen [Thu, 3 Dec 2020 09:59:20 +0000 (17:59 +0800)]
mvc/vc1: mvc/vc1 support in No-parser mode. [1/1]
PD#SWPL-37951
Problem:
vc1/mvc does not support no-parser mode.
Solution:
Support no-parser mode in mvc/vc1
Verify:
AH212
Change-Id: I37b1705a7f840b9805b66f758da21967ceb03552
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
gan.zhang [Fri, 4 Dec 2020 07:22:36 +0000 (15:22 +0800)]
av1: support V4L2 HDR static setting [1/1]
PD#SWPL-38314
Problem:
Luminance doesn't match display
Application can not set static information to decoder.
Solution:
Luminance match display (*10000)
Interface layer set static information.
Verify:
AH212
Change-Id: Ifcd90a4c88a7fba7c007e54d47155e2edf370584
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
Nanxin Qin [Mon, 2 Nov 2020 08:35:27 +0000 (16:35 +0800)]
media: count buffer size for allocate coherent memory. [2/2]
PD#SWPL-36112
Problem:
CtsMediaTestCases process crash when codec_mm_reserved
Solution:
count buffer size for allocate coherent memory
Verify:
ah212
Change-Id: Ic74cda41faf9d8d6fb50aa6ed4911dfce744a283
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
apollo.ling [Sat, 5 Dec 2020 09:30:16 +0000 (17:30 +0800)]
vdec: remove unnecessory register operation in mpeg12 [1/1]
PD#SWPL-37810
Problem:
Open PIP, switch channels on the EPG interface, OTT restarts automatically
Solution:
Remove unnecessrory register openation in mpeg12
Verify:
ah212
Change-Id: I99aaf6978d7ee496df2c221dbc6acdf670f9abd0
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
peng huang [Thu, 3 Dec 2020 13:26:27 +0000 (21:26 +0800)]
mpeg4: Add VOP header to the mpeg4 native source frame end [1/1]
PD#SWPL-27799
Problem:
Some sources without vop header will cause chunk to be
unable to judge the end of frame
Solution:
Add VOP header to the mpeg4 native source frame end
Verify:
TL1
Change-Id: Ieb5b3fd581eb6ead855f086e8873d24f2c84975f
Signed-off-by: peng huang <peng.huang@amlogic.com>
apollo.ling [Wed, 2 Dec 2020 09:34:37 +0000 (17:34 +0800)]
vdec: add interlace second field secure flag [1/1]
PD#SWPL-38222
Problem:
nagra video was green screen
Solution:
add interlace second field secure flag
Verify:
ah212
Change-Id: I43fa2d624a751570db23a25da2d65e42354dcc72
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
miaohong chen [Wed, 25 Nov 2020 08:28:53 +0000 (16:28 +0800)]
vmh264: Progressive stream is forced to interlace causing jitter. [1/1]
PD#SWPL-35861
Problem:
In order to be compatible with a fake progressive stream,
this normal progressive stream was affected.
Solution:
Restrict the conditions that are compatible
with the abnormal stream.
Verify:
u212
Change-Id: I7e602196738012520af8028d5fe023cfa569322b
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
shihong.zheng [Tue, 24 Nov 2020 09:11:27 +0000 (17:11 +0800)]
hevc: remove first packet offset for hevc. [1/1]
PD#SWPL-37489
Problem:
hevc picture stream offset is not based on
streambuf start. it get from shiftbyte count.
so it's wrong to add first wp.
Solution:
remove first packet offset for hevc.
Verify:
ah212
Change-Id: I51e4fa9a1f8e41fcddfa02531ead11124a9cfccf
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Peng Yixin [Thu, 26 Nov 2020 12:41:57 +0000 (20:41 +0800)]
media_module: mpeg2 discard dirty data [1/1]
PD#SWPL-37142
Problem:
Due to a lot of dirty data sent by demux, the decoder
could not decode and the data was overflowed, cause
out of sync.
Solution:
Adding code to discard dirty data solves this problem
Verify:
SC2
Change-Id: I53c53441afe5768c74239ae8ef0fc7df7f343db0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
apollo.ling [Thu, 19 Nov 2020 06:36:49 +0000 (14:36 +0800)]
media: suppress amstream_do_ioctl error messages [1/1]
PD#SWPL-36931
Problem:
open PIP,serial port has error printing
Solution:
suppress amstream_do_ioctl error messages by increase print level
Verify:
ah212
Change-Id: I55c773ad674491d94daebaad4980ba7c9728a188
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
gan.zhang [Thu, 26 Nov 2020 07:28:02 +0000 (15:28 +0800)]
h265: fix multi-tile stream decoding error. [2/2]
PD#SWPL-36627
Problem:
multi-tile stream decoding error.
Solution:
For chips after TM2 that are not T5 chips, open the
macro LPF_TILEXY_EXPAND, and other chips do not open this macro.
ucode gerrit id:133775
ucode change id:I6b968
ucode commit id:8f1641
PS:This commit contains two ucode commit (133193 and 13375)
Verify:
AM301 and U212
Change-Id: I8d2628ab14b6aa45c9d74bb51f0d0cc72bbf7df8
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
Nanxin Qin [Wed, 28 Oct 2020 03:22:41 +0000 (11:22 +0800)]
vh265: add decode fence for h265. [1/1]
PD#SWPL-35247
Problem:
h265 decoding support decode fence function
Solution:
add decode fence for h265.
Verify:
u221
Change-Id: Icb8b2d54d4cba8fca91301458590d13d4c175443
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
gan.zhang [Mon, 23 Nov 2020 12:25:32 +0000 (20:25 +0800)]
media: fix the display problem with some non-standard dv streams. [1/2]
PD#SWPL-36900
Problem:
For non-standardized dv streams, dv effect is displayed because meta
data is parsed.
Solution:
For non-standardized dv streams, discard_dv_data flag is passed to
the dv module.
Verify:
AH212
Change-Id: Ibb6ace0825a98ceb0e948542489f672f94018d46
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
Hui Zhang [Wed, 11 Nov 2020 01:40:43 +0000 (09:40 +0800)]
h265: some special case video freeze in playback [1/1]
PD#SWPL-36642
Problem:
some h265 stream has more reference, and offset is big,
video playback freeze easily, no buffer vailable to decode
Solution:
change condition to use sps_max_dec_buf to cal max_buf_num
Verify:
S905X3
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: I954e1491b88b695072000574206aa487c6c034a0
Gan Zhang [Mon, 23 Nov 2020 06:34:51 +0000 (22:34 -0800)]
Revert: fix the display problem with some non-standard dv streams. [1/2]
PD#SWPL-36900
Problem:
For non-standardized dv streams, dv effect is displayed because meta
data is parsed.
Solution:
For non-standardized dv streams, discard_dv_data flag is passed to
the dv module.
This reverts commit
cbd6d015ab93f3e6c87b7d4e8a0ce0f15dd7ee8b.
Revert the reason:Since kernel submission has not been merged,
compiling on Q will cause problems.
Verify:
AH212
Change-Id: I4b026cd8c8b8862135326af7e77683dc127f7bbd
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
gan.zhang [Wed, 18 Nov 2020 05:24:40 +0000 (13:24 +0800)]
media: fix the display problem with some non-standard dv streams. [1/2]
PD#SWPL-36900
Problem:
For non-standardized dv streams, dv effect is displayed because meta
data is parsed.
Solution:
For non-standardized dv streams, discard_dv_data flag is passed to
the dv module.
Verify:
AH212
Change-Id: Ie83541cda50d4420f9ff6addb314afe146211173
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
Peng Yixin [Mon, 23 Nov 2020 03:39:12 +0000 (11:39 +0800)]
media_module: avs stuck issue [1/1]
PD#SWPL-37392
Problem:
Due to tiny error in the stream,
the decoder considered the error
and did not output cause playback stuck.
Solution:
Optimize microcode and open display
mosaics flag to solve this problem.
ucode gerrit id: 132816
ucode change id: Ia5282
ucode commit id: 87d645
Verify:
T920L
Change-Id: I00c5f1e412a81d2aa1b5c07a3a57390a36399562
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
miaohong chen [Fri, 20 Nov 2020 06:16:44 +0000 (14:16 +0800)]
h264/mpeg2/mpeg4: parse profile ande level [1/1]
PD#SWPL-36663
Problem:
There is no profile and level which parsed
Solution:
parse profile and level
ucode gerrit:130812
ucode commit id:25534c
Verify:
S905X2
Change-Id: Ia369b647aadf623a4bb022198f8500d846932a72
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
shihong.zheng [Tue, 17 Nov 2020 08:15:47 +0000 (16:15 +0800)]
decoder: no parser stream mode interface improve . [1/1]
PD#SWPL-37019
Problem:
demux first packet data is not start from
stream buf start addr;
tsplayer do not need 2nd filed offset.
Solution:
1.correct decode start wp rp at first packet;
2.set 2nd field offset invalid for tsplayer pts lookup.
Verify:
ah212
Change-Id: Ib9abc1066252da76d5951144af29eb83947c81ba
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
Hui Zhang [Fri, 20 Nov 2020 00:52:27 +0000 (08:52 +0800)]
h265: some nts clip lost colorspace on gxl [1/1]
PD#SWPL-7176
Problem:
with some h265 clips. decoder will lost color space
on gxl
Solution:
change WEIGHTED_MC_WORKAROUND algorithm for fix
ucode gerrit id: 132354
ucode change id: I55825
ucode commit id: d967dd
Verify:
P212
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Change-Id: Id1c2f9ddfd01d72695be7dde0baad67e61ff65fc
shihong.zheng [Tue, 4 Aug 2020 08:59:02 +0000 (16:59 +0800)]
decode: notify backend secure flag. [1/1]
PD#SWPL-31671
Problem:
decode provided the secure flag to backend.
Solution:
fill the req state in vfm notify callback.
Verify:
ab301
Change-Id: I2804f606145445b295ae225ba85dc4cff698cac2
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
yunmin.chen [Wed, 18 Nov 2020 07:40:18 +0000 (15:40 +0800)]
mediasync: Add syncmode settings and get. [1/1]
PD#SWPL-35009
Problem:
Failed to set and get syncmode.
Solution:
Add SET_SYNCMODE and GET_SYNCMODE to mediasync_ioctl.
Verify:
ah212
Change-Id: I57cb452fe91cff81f97479dd1ade6d6e6025938d
Signed-off-by: yunmin.chen <yunmin.chen@amlogic.com>
Zhao Yi [Thu, 24 Sep 2020 13:43:37 +0000 (21:43 +0800)]
amvdec_h265: unstable pts for multi-instance [3/3]
PD#SWPL-32372
Problem:
multi-instance h265 decoder didn't get param unstable-pts
from vdec->sys_info
Solution:
Get unstable-pts from vdec->sys_info
Verify:
AndroidQ
Signed-off-by: Zhao Yi <zhao.yi@amlogic.com>
Change-Id: I7edd73a66901d195ea0141b2d2c134860ee9b28a
Peng Yixin [Thu, 1 Oct 2020 03:27:40 +0000 (11:27 +0800)]
mavs: fixed avs file playback failure problem [1/1]
PD#SWPL-29847
Problem:
using devm_kzalloc funciton cann't allocate
memory(There is no physical continuous memory
of this size), causing playback fail.
Solution:
Use vzalloc to allocate memory to solve this
problem.
Verify:
AH212
Change-Id: If5bb8bf358d8c65bb27699a591477d50f8d1fee5
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Fri, 30 Oct 2020 11:40:32 +0000 (19:40 +0800)]
h265: black screen a few seconds when start playback [1/1]
PD#SWPL-34475
Problem:
HEVC_STREAM_RD_PTR is not updated because
there is a lot of dirty data in front of
the CSD data, resulting in a long black screen
Solution:
When starting playback, all dirty data will
be discarded.
Verify:
AH212
Change-Id: Id653526617e2b362af0baf170f687498f4576453
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
gan.zhang [Wed, 11 Nov 2020 12:22:33 +0000 (20:22 +0800)]
media: fix dec_slt bug. [2/2]
PD#OPS-1197
Problem:
When the first frame is wrong, the test result in dec_slt is pass
Solution:
1.When a comparison crc error occurs, usr_cmp_result is set to -1.
2.Reduces the trigger of dump yuv.
Verify:
AB311
Change-Id: I5b89ad353e08017b182510345e2541de99a92223
Signed-off-by: gan.zhang <gan.zhang@amlogic.com>
haobin.zhu [Fri, 30 Oct 2020 07:38:00 +0000 (15:38 +0800)]
h265: add variable judgment [1/1]
PD#SWPL-35442
Problem:
play special stream,switch channel,DUT reboot
Solution:
add variable judgment
Verify:
S905X4
Change-Id: Ib45d82429a6ef526e26fd227f4624a6968db3955
Signed-off-by: haobin.zhu <haobin.zhu@amlogic.com>
Rain Zhang [Fri, 6 Nov 2020 01:50:26 +0000 (17:50 -0800)]
h265: fix long term ref bug. [1/1]
PD#SWPL-35859
Problem:
Because the poc calculation of the reference frame is wrong,
and the reference error will cause mosaic.
Solution:
When the reference frame is calculated, a long-term rps is added to
ensure that the reference list is calculated correctly.
Verify:
AC214
Change-Id: I3a2d2e18cac87541db5d0d6a7d15e9ea44193c9c
Signed-off-by: Rain Zhang <rain.zhang@amlogic.com>
jintao xu [Thu, 5 Nov 2020 04:06:25 +0000 (12:06 +0800)]
vdec: av1 add sidebind interface for decoder [2/2]
PD#SWPL-34152
Problem:
decoder receive sidebind type id and set to vf
Solution:
add this new feature
Verify:
AH-212
Change-Id: I093f5ae7ac5dce506947d7e92158700f7b774581
Signed-off-by: jintao xu <jintao.xu@amlogic.com>
Song Zhao [Tue, 3 Nov 2020 16:57:55 +0000 (08:57 -0800)]
v4l2: fix h264 playback stuck issue. [1/1]
PD#SWPL-36161
Problem:
Play online video source, seek after the video
screen is stuck, sound normal
Solution:
clear reference buffer status at the reset time
that make sure dpb status is clean.
Verify:
u212
Change-Id: I19c984fc1ab894c45759bf4e2f913b287c44e36d
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Peng Yixin [Tue, 3 Nov 2020 11:37:47 +0000 (19:37 +0800)]
h264: T5 small window playback abnormally [1/1]
PD#SWPL-36213
Problem:
Because 4K 264 used dw0, there is no YUV output buffer,
result this problem.
Solution:
T5 set default double write 3 to resolve this issue
Verify:
T5
Change-Id: I6e8b8de4fc5a1c9089ce0ff270443d014d522df7
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Mon, 26 Oct 2020 11:13:06 +0000 (19:13 +0800)]
h265: T5 picture quality is not good [1/1]
PD#SWPL-35148
Problem:
If the resolution is not greater than 960*540,
use decontour algorithm, compression of the
resolution of the picture will result in poor
display effect.
Solution:
Setting double_write_mode 0x1000, the
decoding is now output as follows:
X >1920*1080, afbc+dw1/4
960*540<=x< 1920*1080, afbc+dw1/2
x<=960*540, dw1
Verify:
T5
Change-Id: I521dc21e4aa4826447174e958edb5e385ee5f17a
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
Peng Yixin [Fri, 30 Oct 2020 10:11:52 +0000 (18:11 +0800)]
mavs: fixed avs file playback stuck issue [1/1]
PD#SWPL-25580
Problem:
vf was not init again at reset,
avs file playback stuck.
Solution:
Reinitializing vf buffer solves this problem.
Verify:
AB311
Change-Id: I3ea47598542dd035616937624cff9034f48317b0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>