media_module: fix amvdec_ports.ko loading error [1/1]
authorGan Zhang <gan.zhang@amlogic.com>
Wed, 22 Jul 2020 12:17:37 +0000 (20:17 +0800)
committerGan Zhang <gan.zhang@amlogic.com>
Wed, 22 Jul 2020 12:20:23 +0000 (20:20 +0800)
PD#SWPL-29656

Problem:
fix amvdec_ports.ko loading error.

Solution:
export the function.

Verify:
local build

Change-Id: I1df171daa541f468e5cf23f9e6df4d97d0ebb7e2
Signed-off-by: Gan Zhang <gan.zhang@amlogic.com>
drivers/amvdec_ports/decoder/aml_vp9_parser.h

index 4a905570651b8c673b7ba62a1a411a380ac65e75..9f7dfd98620bc3d64ca5c23a018309edacb7f9cd 100644 (file)
@@ -174,11 +174,12 @@ struct vp9_param_sets {
        struct VP9Context ctx;
 };
 
-int vp9_superframe_split_filter(struct vp9_superframe_split *s);
 
 #ifdef CONFIG_AMLOGIC_MEDIA_V4L_SOFTWARE_PARSER
+int vp9_superframe_split_filter(struct vp9_superframe_split *s);
 int vp9_decode_extradata_ps(u8 *data, int size, struct vp9_param_sets *ps);
 #else
+inline int vp9_superframe_split_filter(struct vp9_superframe_split *s) { return -1;}
 inline int vp9_decode_extradata_ps(u8 *data, int size, struct vp9_param_sets *ps) { return -1; }
 #endif