mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
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:
parent
88de547668
commit
20b981f328
2 changed files with 18 additions and 0 deletions
15
configs/external_camera_config.xml
Normal file
15
configs/external_camera_config.xml
Normal 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>
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue