OSDN Git Service

Camera3Device: Treat failure to idle as an error
authorEino-Ville Talvala <etalvala@google.com>
Sun, 14 Sep 2014 21:52:19 +0000 (14:52 -0700)
committerEino-Ville Talvala <etalvala@google.com>
Sun, 14 Sep 2014 21:52:19 +0000 (14:52 -0700)
Bug: 16899526
Change-Id: Ia995aac6360c9c41ed654af5a7052480f23903d8

services/camera/libcameraservice/device3/Camera3Device.cpp

index fafe349..c3e41d3 100644 (file)
@@ -1086,6 +1086,10 @@ status_t Camera3Device::waitUntilDrainedLocked() {
 
     ALOGV("%s: Camera %d: Waiting until idle", __FUNCTION__, mId);
     status_t res = waitUntilStateThenRelock(/*active*/ false, kShutdownTimeout);
+    if (res != OK) {
+        SET_ERR_L("Error waiting for HAL to drain: %s (%d)", strerror(-res),
+                res);
+    }
     return res;
 }