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

Commit 56d98ba8 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

Camera: supports new HIDL camera device 3.6

Test: webcam HAL with device 3.6
Bug: 135142453
Change-Id: I6cd80380608eb7ea72bc958aae870a8573bce631
parent 7d381e52
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -761,6 +761,7 @@ Status CameraService::makeClient(const sp<CameraService>& cameraService,
          case CAMERA_DEVICE_API_VERSION_3_3:
          case CAMERA_DEVICE_API_VERSION_3_4:
          case CAMERA_DEVICE_API_VERSION_3_5:
          case CAMERA_DEVICE_API_VERSION_3_6:
            if (effectiveApiLevel == API_1) { // Camera1 API route
                sp<ICameraClient> tmp = static_cast<ICameraClient*>(cameraCb.get());
                *client = new Camera2Client(cameraService, tmp, packageName, featureId,
@@ -2093,6 +2094,7 @@ Status CameraService::supportsCameraApi(const String16& cameraId, int apiVersion
        case CAMERA_DEVICE_API_VERSION_3_3:
        case CAMERA_DEVICE_API_VERSION_3_4:
        case CAMERA_DEVICE_API_VERSION_3_5:
        case CAMERA_DEVICE_API_VERSION_3_6:
            ALOGV("%s: Camera id %s uses HAL3.2 or newer, supports api1/api2 directly",
                    __FUNCTION__, id.string());
            *isSupported = true;