From 64086b4569586f78da8e9a1b4356ceec65346055 Mon Sep 17 00:00:00 2001 From: "shihong.zheng" Date: Sun, 4 Aug 2019 14:54:05 +0800 Subject: [PATCH] amstream: add dec crc interface in amstream. [1/3] PD#OPS-679 Problem: add decoder slt test code. Solution: add crc check interlace in amstream. Verify: x301 Change-Id: Ie7c82140bc4e1fa4c470d0e133a12afee14d9ca8 Signed-off-by: shihong.zheng --- include/linux/amlogic/media/utils/amstream.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/linux/amlogic/media/utils/amstream.h b/include/linux/amlogic/media/utils/amstream.h index faf1328..4e17d2f 100644 --- a/include/linux/amlogic/media/utils/amstream.h +++ b/include/linux/amlogic/media/utils/amstream.h @@ -225,6 +225,9 @@ #define AMSTREAM_IOC_GET_AVINFO _IOR((_A_M), 0xc7, struct av_param_info_t) #define AMSTREAM_IOC_GET_QOSINFO _IOR((_A_M), 0xc8, struct av_param_qosinfo_t) +#define AMSTREAM_IOC_SET_CRC _IOW((_A_M), 0xc9, struct usr_crc_info_t) +#define AMSTREAM_IOC_GET_CRC_CMP_RESULT _IOWR((_A_M), 0xca, int) + #define TRICKMODE_NONE 0x00 #define TRICKMODE_I 0x01 @@ -518,7 +521,12 @@ struct userdata_param_t { struct userdata_meta_info_t meta_info; /*output*/ }; - +struct usr_crc_info_t { + u32 id; + u32 pic_num; + u32 y_crc; + u32 uv_crc; +}; /******************************************************************* * 0x100~~0x1FF : set cmd -- 2.7.4