summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-07-24 13:14:52 +0200
committerDaniel Hillenbrand <daniel.hillenbrand@codeworkx.de>2012-07-24 13:14:52 +0200
commit96ccf48167aaa97a81331d7e0802ac52fcff09c3 (patch)
treef3ea378091d2613a957ce21fc2a5b6e82c2dfa83
parent32cbb95ee72a07d0e14efc3449d9d5f39ae1ded7 (diff)
downloaddevice_samsung_i9300-96ccf48167aaa97a81331d7e0802ac52fcff09c3.zip
device_samsung_i9300-96ccf48167aaa97a81331d7e0802ac52fcff09c3.tar.gz
device_samsung_i9300-96ccf48167aaa97a81331d7e0802ac52fcff09c3.tar.bz2
camera: fix lockups
-rw-r--r--camerawrapper/CameraWrapper.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/camerawrapper/CameraWrapper.cpp b/camerawrapper/CameraWrapper.cpp
index 97f7e43..f91604a 100644
--- a/camerawrapper/CameraWrapper.cpp
+++ b/camerawrapper/CameraWrapper.cpp
@@ -400,7 +400,10 @@ int camera_send_command(struct camera_device * device,
if(!device)
return -EINVAL;
- return VENDOR_CALL(device, send_command, cmd, arg1, arg2);
+ /* send_command causes the camera hal do to unexpected things like lockups.
+ * don't pass any command to the vendor hal to prevent this */
+ return 0;
+ //return VENDOR_CALL(device, send_command, cmd, arg1, arg2);
}
void camera_release(struct camera_device * device)