mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
media_module: fix vmh264 mosaic issue
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>
This commit is contained in:
@@ -4357,6 +4357,9 @@ static int vh264_hw_ctx_restore(struct vdec_h264_hw_s *hw)
|
||||
SET_VREG_MASK(MDEC_PIC_DC_CTRL, 1<<17);
|
||||
#endif
|
||||
|
||||
SET_VREG_MASK(MDEC_PIC_DC_CTRL, 0xbf << 24);
|
||||
CLEAR_VREG_MASK(MDEC_PIC_DC_CTRL, 0xbf << 24);
|
||||
|
||||
#if 1 /* #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON8 */
|
||||
/* pr_info("vh264 meson8 prot init\n"); */
|
||||
WRITE_VREG(MDEC_PIC_DC_THRESH, 0x404038aa);
|
||||
|
||||
Reference in New Issue
Block a user