summaryrefslogtreecommitdiff
authorYixin Peng <yixin.peng@amlogic.com>2020-04-04 07:48:18 (GMT)
committer Shen Liu <shen.liu@amlogic.com>2020-04-29 11:42:02 (GMT)
commit9f2f2203e6319eff87ebcf562092af94905f4188 (patch)
treeee747f670f4e6d4855a7fe594654f78ee759f9ea
parent9ec0d633941a7daaf9c16166002d1e35fefee1a1 (diff)
downloadmedia_modules-9f2f2203e6319eff87ebcf562092af94905f4188.zip
media_modules-9f2f2203e6319eff87ebcf562092af94905f4188.tar.gz
media_modules-9f2f2203e6319eff87ebcf562092af94905f4188.tar.bz2
media_module: Fixed h265 playback crash [1/1]
PD#SWPL-23625 Problem: On the GXL, ucode loaded by 4k and 1080p in h265 format is different, but we think that the same ucode is loaded by h265, so the different ucode is not loaded repeatedly, which leads system restart. Solution: This problem is solved by reloading the ucode each time when the decoder instance switch. Verify: u212 Change-Id: I5f4c105a19e72199eee7276813bcad6a6e07a1bd Signed-off-by: Yixin Peng <yixin.peng@amlogic.com>
Diffstat
-rw-r--r--drivers/frame_provider/decoder/utils/vdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/frame_provider/decoder/utils/vdec.c b/drivers/frame_provider/decoder/utils/vdec.c
index 6fa36f1..51dca34 100644
--- a/drivers/frame_provider/decoder/utils/vdec.c
+++ b/drivers/frame_provider/decoder/utils/vdec.c
@@ -86,7 +86,7 @@ static unsigned int clk_config;
&2: always reload firmware.
&4: vdec canvas debug enable
*/
-static unsigned int debug;
+static unsigned int debug = 2;
static int hevc_max_reset_count;
#define MAX_INSTANCE_MUN 9