Skip to content

Commit

Permalink
daisy: camera: Always set bDualCamera as 0
Browse files Browse the repository at this point in the history
* Sometimes, magisk modules set this as 1. This can break the camera as the OSS camera HAL doesn't expose the AUX camera correctly (for now)

Change-Id: If97ec461d3600bfe75f94557997214410d36040a

Signed-off-by: LinkBoi00 <[email protected]>
  • Loading branch information
ItsVixano authored and proxer05 committed Oct 15, 2021
1 parent 83046c8 commit 18a3ecc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions camera/QCamera2/QCamera2Factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,8 @@ QCamera2Factory::QCamera2Factory()

// Signifies whether system has to enable dual camera mode
snprintf(propDefault, PROPERTY_VALUE_MAX, "%d", isDualCamAvailable(isHAL3Enabled));
property_get("persist.vendor.camera.dual.camera", prop, propDefault);
bDualCamera = atoi(prop);
LOGH("dualCamera:%d ", bDualCamera);
#ifndef QCAMERA_HAL1_SUPPORT
bDualCamera = 0;
#endif
LOGH("dualCamera:%d ", bDualCamera);

if(bDualCamera) {
LOGI("Enabling QCamera Muxer");
Expand Down

0 comments on commit 18a3ecc

Please sign in to comment.