mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
vc1: supports teeload of vc1 for g12a.
PD#161616: supports teeload of vc1 for g12a. Change-Id: I35869ed9aaf0a7d12f63cd3d5a84a531e8afe429 Signed-off-by: Nanxin Qin <nanxin.qin@amlogic.com>
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include <linux/amlogic/media/codec_mm/codec_mm.h>
|
||||
#include <linux/amlogic/media/codec_mm/configs.h>
|
||||
#include "../utils/firmware.h"
|
||||
#include <linux/amlogic/tee.h>
|
||||
|
||||
#define DRIVER_NAME "amvdec_vc1"
|
||||
#define MODULE_NAME "amvdec_vc1"
|
||||
@@ -1058,12 +1059,17 @@ static s32 vvc1_init(void)
|
||||
if (get_cpu_type() >= MESON_CPU_MAJOR_ID_G12A)
|
||||
fw_type = VIDEO_DEC_VC1_G12A;
|
||||
|
||||
size = get_firmware_data(fw_type, buf);
|
||||
if (size < 0) {
|
||||
amvdec_disable();
|
||||
pr_err("get firmware fail.");
|
||||
vfree(buf);
|
||||
return -1;
|
||||
if (get_cpu_type() >= MESON_CPU_MAJOR_ID_G12A && tee_enabled()) {
|
||||
ret = tee_load_video_fw((u32)fw_type, 1);
|
||||
size = 1;
|
||||
} else {
|
||||
size = get_firmware_data(fw_type, buf);
|
||||
if (size < 0) {
|
||||
amvdec_disable();
|
||||
pr_err("get firmware fail.");
|
||||
vfree(buf);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (size == 1)
|
||||
|
||||
Reference in New Issue
Block a user