[Android] TheOddTaco:
Getting an error while compiling on hardware/qcom/media-caf/msm8916 (My device, LG K7, has a msm8909 chip tho)

hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:2068:18: error: use of undeclared identifier 'V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY'; did you mean 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90'?
control.id = V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:655:2: note: 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90' declared here
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90 = 1,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:2069:21: error: use of undeclared identifier 'V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE'
control.value = V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE;
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4505:22: error: use of undeclared identifier 'V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY'; did you mean 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90'?
control.id = V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:655:2: note: 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90' declared here
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_90 = 1,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4507:29: error: use of undeclared identifier 'V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_ENABLE'; did you mean 'V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED'?
control.value = V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_ENABLE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:925:2: note: 'V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED' declared here
V4L2_MPEG_VIDC_VIDEO_VPX_ERROR_RESILIENCE_ENABLED = 1,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4509:29: error: use of undeclared identifier 'V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE'
control.value = V4L2_MPEG_VIDC_VIDEO_PRIORITY_REALTIME_DISABLE;
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:4522:22: error: use of undeclared identifier 'V4L2_CID_MPEG_VIDC_VIDEO_OPERATING_RATE'; did you mean 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE'?
control.id = V4L2_CID_MPEG_VIDC_VIDEO_OPERATING_RATE;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE
out/target/product/ms330/obj/KERNEL_OBJ/usr/include/linux/v4l2-controls.h:654:2: note: 'V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE' declared here
V4L2_CID_MPEG_VIDC_VIDEO_ROTATION_NONE = 0,
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9326:14: error: use of undeclared identifier 'MSM_VIDC_BT709_5'
case MSM_VIDC_BT709_5:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9330:14: error: use of undeclared identifier 'MSM_VIDC_BT470_6_M'
case MSM_VIDC_BT470_6_M:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9333:14: error: use of undeclared identifier 'MSM_VIDC_BT601_6_625'
case MSM_VIDC_BT601_6_625:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9336:14: error: use of undeclared identifier 'MSM_VIDC_BT601_6_525'
case MSM_VIDC_BT601_6_525:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9340:14: error: use of undeclared identifier 'MSM_VIDC_GENERIC_FILM'
case MSM_VIDC_GENERIC_FILM:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9343:14: error: use of undeclared identifier 'MSM_VIDC_BT2020'
case MSM_VIDC_BT2020:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9346:14: error: use of undeclared identifier 'MSM_VIDC_UNSPECIFIED'
case MSM_VIDC_UNSPECIFIED:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9357:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_BT709_5'
case MSM_VIDC_TRANSFER_BT709_5:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9358:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_601_6_525'
case MSM_VIDC_TRANSFER_601_6_525: // case MSM_VIDC_TRANSFER_601_6_625:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9361:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_BT_470_6_M'
case MSM_VIDC_TRANSFER_BT_470_6_M:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9364:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_BT_470_6_BG'
case MSM_VIDC_TRANSFER_BT_470_6_BG:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9367:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_SMPTE_240M'
case MSM_VIDC_TRANSFER_SMPTE_240M:
^
hardware/qcom/media-caf/msm8916/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp:9370:14: error: use of undeclared identifier 'MSM_VIDC_TRANSFER_LINEAR'
case MSM_VIDC_TRANSFER_LINEAR:
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

Heres my device tree:

https://github.com/TheOddTaco/android_device_lge_ms330/tree/cm-14.1

https://github.com/TheOddTaco/android_device_lge_m1-common

Thanks.