msm8974-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 Kevin F. Haggerty
parent 7bf8dd9506
commit cf207232cb
No known key found for this signature in database
GPG Key ID: 6D95512933112729
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

@ -105,6 +105,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 \