Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e202048 authored by TARKZiM's avatar TARKZiM Committed by Bernhard Thoben
Browse files

kitakami-common: camera: Directly open camera3 device

* Open camera2 device causing errors.
parent dfb227b0
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -80,14 +80,7 @@ static int camera_device_open(const hw_module_t* module, const char* name,
    if (name != NULL) {
        if (check_vendor_module())
            return -EINVAL;

        if (isHAL3Enabled) {
            ALOGV("%s: using HAL3", __FUNCTION__);
        rv = camera3_device_open(module, name, device);
        } else {
            ALOGV("%s: using HAL2", __FUNCTION__);
            rv = camera2_device_open(module, name, device);
        }
    }

    ALOGV("%s: rv = %d", __FUNCTION__, rv);