commit | 9c8a091436052fb0f3290356abe1ac55b7bae8a2 | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Sun Sep 14 14:52:19 2014 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Sun Sep 14 14:52:19 2014 -0700 |
tree | becf4b546244b1bed7ecb029795757be2e6bb219 | |
parent | 176e4c253a63d581af6b21f3182d71b3026ef516 [diff] [blame] |
Camera3Device: Treat failure to idle as an error Bug: 16899526 Change-Id: Ia995aac6360c9c41ed654af5a7052480f23903d8
diff --git a/services/camera/libcameraservice/device3/Camera3Device.cpp b/services/camera/libcameraservice/device3/Camera3Device.cpp index fafe349..c3e41d3 100644 --- a/services/camera/libcameraservice/device3/Camera3Device.cpp +++ b/services/camera/libcameraservice/device3/Camera3Device.cpp
@@ -1086,6 +1086,10 @@ 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; }