2. Revert the commition of using 8 buffers for all chips
When we fix bug 128904(commit id:d723223bc) by using 8 buffers, but afterward, we
found it caused mosaic for some videos, So i revert it. I also revert the associated
ucode commition for it. This change is fit for all chips, not only G12A.
Change-Id: Idc5d2f96ca9f38208039e23da54e39f3c852e74e
Signed-off-by: Rong Zhang <rong.zhang@amlogic.com>
PD#164394: h265_uninit_done_sema should be inited for multi-h265
Change-Id: I8e5fd16070cf859e83a0a81a0a3e503533efc048
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#159750
mutex_lock is called in (hevc)vdec_source_changed, so use
schedule_work to avoid crash in timer. all format changed.
Change-Id: Ib7e2cb3674ced63e7a2f786da734f48427f96be2
Signed-off-by: shihong.zheng <shihong.zheng@amlogic.com>
PD#164394:1) fix crash for exit h265 player
2) fix tsdemux rrelease bug which may cause system crash
Change-Id: Ibe30376cefae4d973ea906c8b0b698c9ac14e846
PD#163674: fix avs && h265 vts timeout issue
1.remove some print info
2.use sema instead of sleep 20ms to save time in vmh265_stop
Change-Id: I17d0a23da75933a02e20500b26d783255761d9a6
Signed-off-by: Yao.Liu <yao.liu@amlogic.com>
PD#162854: fixes an issue of the media clock set
Change-Id: I8b788589c46becbfa53b83ff876c9a7570512322
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#162467: amports: mutex lock/unlock in create and destroy user data manager struct
PD#161160: mpeg2: correct write point to zero for cc buffer recycle
Change-Id: I2e3208623aae2073591256e3d2fb36e7875166ba
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#161077: fixes an issue that using semaphore could cause crash
Change-Id: I5ea95042a92030e298bcc026aeed48f436cf739e
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#162854: this problem is caused by the display order error
Change-Id: I81902828c32aa667e22136eb1edfcdf0639f2256
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
1.add encoder support for Oreo
2.change ucode load mode for h264 encoder
Change-Id: Ia407a4c205f17ecee6be1e6a741acf2bdadc04e5
Signed-off-by: Jiacheng Mei <jiacheng.mei@amlogic.com>
PD#161244: the aiu fifo short address is 0x1400
Change-Id: I48b58db933b72e384e20995d10622feb8ff5c950
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#161606:
1. fixes an issue that the mutex lock could sleeping on isr context.
2. update the video_ucode.bin
Change-Id: I14d73e210d64de46d20396cf8edc33c397bbc1ec
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#161606: notes
1. fix avs2 bringup bug: config dblk_data2 and
config HEVC_SAO_CTRL0 with lcu_size_log2
2. vdec: merge debug code from kernel 3.14,
support step and schedule profile (multi-instance only)
echo 0x100 > /sys/module/decoder_common/parameters/step_mode
3. decoder: fixed a bug of the vdec_profile event.
the ISA register base has changeed to 0x3c00
on the txlx, g12a platforms
4. decoder: modify the value of the hevc reg HEVC_DBLK_STS1
G12A changes
#define HEVC_DBLK_STS0 0x350f
#define HEVC_DBLK_STS1 0x3510
5. stream_input: add a feature of check efuse status [2/2].
6. media_clock: adds media clk nodes
echo 1 > /sys/module/media_clock/parameters/set_frq_enable
echo 667 > /sys/module/media_clock/parameters/vdec_frq
echo 667 > /sys/module/media_clock/parameters/hevc_frq
echo 667 > /sys/module/media_clock/parameters/hevcb_frq
7. media_modules: revised dolby vision macro control for g12a
8. ucode: update the video_ucode.bin
Change-Id: Icf781a1e5f8095bd1b14a2b21e525683ad0cc22d
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#161180:
1) adjust timeout trigger threshold to prevent an instance not
being in a deadloop when decoding error happened
2) add check to a invalid display_q len
Change-Id: I9a8fcc2891aca5b03b75c54b5a9cf2514ed28ca7
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#160726
for longtime run, some stream error might cause pic_dc hardware in wrong state, it can't be recovery,
so this hardware module need to be reset at beginning of decoding slice. mosaic issue will be gone
Change-Id: I850ecfc08b45a66e15ce9a41dbf1d550fe55f640
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
PD#157273
1. format code as kernel's format.
2. add kernel's format scripts to this script dir.
Change-Id: Id45c0919d0476b2cd990b027e80bbe7fed3a90be
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
PD#155696
1) replace msleep with sema in h265
2) decrease scatter mem cache size for non-4k h265
3) set vdec thread to higher priority
4) zz:set vdec work to higher priority
5) zz:don't reload mc code when on instance.
6) zz:del config SCALELUT_WR_ADDR for each frame.
7) zz:profile add some paras for debug.
Change-Id: Ie4be769269c8a485755f5610d3739df26d34cf17
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
PD#156498: add mutex lock to avoid concurrency events.
usage:
cat sys/class/firmware_codec/reload
echo 1 > sys/class/firmware_codec/reload
echo 2 > sys/class/firmware_codec/reload
set 1 means that the fw is forced to update
set 2 means that the fw is try to reload
Change-Id: I99d629a8862cd13d394566fd31c788d01a302019
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
Revert "firmware: adds a reload node to avoid the fw load fail [1/1]"
This reverts commit c3a2d6233635072a5d5c34498f990dafbc70261b.
Change-Id: I030809b913133cb3ac9a680cfec98fbcde97d40d
PD#156498: adds a reload node to avoid the fw load fail
usage:
cat sys/class/firmware_codec/reload
echo 1 > sys/class/firmware_codec/reload
echo 2 > sys/class/firmware_codec/reload
set 1 means that the fw is forced to update
set 2 means that the fw is try to reload
Change-Id: Id453860386cb3eb9dbd21c0ae7238c34655ab1ed
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
PD#154260: add a item of firmware cfg for the txlx.
Change-Id: I0ce62cdc96b8e9a09a7abaff1c8258b858607285
Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>