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 <jaraidaniel@gmail.com>
This commit is contained in:
Daniel Jarai 2018-09-02 00:34:14 +02:00 committed by Francescodario Cuzzocrea
parent 88de547668
commit 20b981f328
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,15 @@
<ExternalCamera>
<Provider>
<!-- Internal video devices to be ignored by external camera HAL -->
<ignore>
<id>0</id>
<id>1</id>
<id>2</id>
<id>3</id>
<id>32</id>
<id>33</id>
<id>34</id>
<id>35</id>
</ignore>
</Provider>
</ExternalCamera>

View file

@ -128,6 +128,9 @@ PRODUCT_PACKAGES += \
libxml2 \ libxml2 \
Snap Snap
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml
# DRM # DRM
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.drm@1.0-impl \ android.hardware.drm@1.0-impl \