From: apollo.ling Date: Sat, 5 Dec 2020 09:30:16 +0000 (+0800) Subject: vdec: remove unnecessory register operation in mpeg12 [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfd32d66b60248d151ad55d29a1066ba434faaed;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_media.git 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 --- diff --git a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c index 8359c69..4ac5801 100644 --- a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c +++ b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c @@ -3223,13 +3223,13 @@ void (*callback)(struct vdec_s *, void *), { struct vdec_mpeg12_hw_s *hw = (struct vdec_mpeg12_hw_s *)vdec->private; - int save_reg = READ_VREG(POWER_CTL_VLD); + //int save_reg = READ_VREG(POWER_CTL_VLD); int size, ret; /* reset everything except DOS_TOP[1] and APB_CBUS[0]*/ - WRITE_VREG(DOS_SW_RESET0, 0xfffffff0); - WRITE_VREG(DOS_SW_RESET0, 0); - WRITE_VREG(POWER_CTL_VLD, save_reg); + //WRITE_VREG(DOS_SW_RESET0, 0xfffffff0); + //WRITE_VREG(DOS_SW_RESET0, 0); + //WRITE_VREG(POWER_CTL_VLD, save_reg); hw->run_count++; vdec_reset_core(vdec); hw->vdec_cb_arg = arg;