c2: set c2inputsurface to -1
set it the same as cuttlefish, and it helps workaround
after the drop of OMX service.
Refer to the cuttlefish change here:
https://android-review.googlesource.com/c/device/google/cuttlefish/+/1562801
Fixes: f02f9af6b011 ("manifest.xml: Remove OMX from device manifest")
Test: cts -m CtsCameraTestCases -t android.hardware.camera2.cts.RecordingTest
Change-Id: I1063c40fe7a97857468c616ed8809ba71831bc5b
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
diff --git a/device-common.mk b/device-common.mk
index fb3de7e..886f9e5 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -94,3 +94,7 @@
device/linaro/dragonboard/init.common.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(TARGET_HARDWARE).rc \
device/linaro/dragonboard/init.common.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(TARGET_HARDWARE).usb.rc \
frameworks/base/data/keyboards/Generic.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/$(TARGET_HARDWARE).kl
+
+# Workaround for the drop of OMX service
+PRODUCT_VENDOR_PROPERTIES += \
+ debug.stagefright.c2inputsurface=-1