From 20b981f328bcd9cad6a3b669db9aeac359919b96 Mon Sep 17 00:00:00 2001 From: Daniel Jarai Date: Sun, 2 Sep 2018 00:34:14 +0200 Subject: [PATCH] msm8226-common: Make the external camera provider ignore internal cameras * The external camera provider occupies our camera v4l2 nodes, potentially crashing the kernel driver and blocking the camera HAL. Unfortunately, there's no easy way to just disable it, so let's just tell it to ignore the internal video devices. Change-Id: I00c67de1b94a1f7eca1bf458d1d0e4de3507aa81 Signed-off-by: Daniel Jarai --- configs/external_camera_config.xml | 15 +++++++++++++++ msm8226.mk | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 configs/external_camera_config.xml diff --git a/configs/external_camera_config.xml b/configs/external_camera_config.xml new file mode 100644 index 0000000..57d0faa --- /dev/null +++ b/configs/external_camera_config.xml @@ -0,0 +1,15 @@ + + + + + 0 + 1 + 2 + 3 + 32 + 33 + 34 + 35 + + + diff --git a/msm8226.mk b/msm8226.mk index 1834cdd..2d4341c 100644 --- a/msm8226.mk +++ b/msm8226.mk @@ -128,6 +128,9 @@ PRODUCT_PACKAGES += \ libxml2 \ Snap +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml + # DRM PRODUCT_PACKAGES += \ android.hardware.drm@1.0-impl \