diff --git a/techpack/camera/Makefile b/techpack/camera/Makefile index 2568ff61c873..81116b28ebb3 100644 --- a/techpack/camera/Makefile +++ b/techpack/camera/Makefile @@ -94,6 +94,11 @@ endif endif +ifeq ($(CONFIG_IBIZA_DTB), y) +LINUXINCLUDE += \ + -include $(srctree)/techpack/camera/config/legacycameraconf.h +endif + ifneq (,$(filter $(CONFIG_SPECTRA_CAMERA), y m)) # Use USERINCLUDE when you must reference the UAPI directories only. USERINCLUDE += \ diff --git a/techpack/camera/config/legacycameraconf.h b/techpack/camera/config/legacycameraconf.h new file mode 100644 index 000000000000..6a17cb1ff12f --- /dev/null +++ b/techpack/camera/config/legacycameraconf.h @@ -0,0 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2020, The Linux Foundation. All rights reserved. + */ + +#define CONFIG_SPECTRA_CAMERA_LEGACY 1 diff --git a/techpack/camera/include/uapi/camera/media/cam_ope.h b/techpack/camera/include/uapi/camera/media/cam_ope.h index b6a9a41d8dfe..ee6c3423860f 100644 --- a/techpack/camera/include/uapi/camera/media/cam_ope.h +++ b/techpack/camera/include/uapi/camera/media/cam_ope.h @@ -73,7 +73,11 @@ #define OPE_MAX_IO_BUFS (OPE_OUT_RES_MAX + OPE_IN_RES_MAX) #define OPE_MAX_PASS 1 #define OPE_MAX_PLANES 2 +#ifdef CONFIG_SPECTRA_CAMERA_LEGACY +#define OPE_MAX_STRIPES 48 +#else #define OPE_MAX_STRIPES 64 +#endif #define OPE_MAX_BATCH_SIZE 16 /**