summaryrefslogtreecommitdiff
authorYixin Peng <yixin.peng@amlogic.com>2020-04-04 07:48:18 (GMT)
committer Hui Zhang <hui.zhang@amlogic.com>2020-04-27 02:08:14 (GMT)
commitdc929430403db3f6048715cc459cfa9463aa02f8 (patch)
tree750626fd95fdfd08e218c37b658ea7df3bc80f3a
parent8fd57504b989a1f932c8c80289c81aeb64773b2e (diff)
downloadmedia_modules-dc929430403db3f6048715cc459cfa9463aa02f8.zip
media_modules-dc929430403db3f6048715cc459cfa9463aa02f8.tar.gz
media_modules-dc929430403db3f6048715cc459cfa9463aa02f8.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 ee17fc4..c1f4037 100644
--- a/drivers/frame_provider/decoder/utils/vdec.c
+++ b/drivers/frame_provider/decoder/utils/vdec.c
@@ -94,7 +94,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;