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:
parent
7bf8dd9506
commit
cf207232cb
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>
|
@ -105,6 +105,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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user