diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-12-09 17:18:42 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-12-09 17:18:42 +0100 |
| commit | 579629258530818e42f5e36b830d07cbd98c794a (patch) | |
| tree | 3bfb0a23d6fb0ec608ebf2a762e2bc7cc29224b5 | |
| parent | e55ab0459b648eac96344e9ec84bcc7905d7c79b (diff) | |
patch: add needed camera patch (prevents camera to loop when taking pics/vids)
| -rw-r--r-- | patches/frameworks/0002-CameraClient-MTK-Support.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/frameworks/0002-CameraClient-MTK-Support.patch b/patches/frameworks/0002-CameraClient-MTK-Support.patch new file mode 100644 index 0000000..1d17eb9 --- /dev/null +++ b/patches/frameworks/0002-CameraClient-MTK-Support.patch @@ -0,0 +1,30 @@ +From c6d89066b1faf271626144e26ea57614ebbba999 Mon Sep 17 00:00:00 2001 +From: Ricardo Cerqueira <ricardo@cyngn.com> +Date: Wed, 16 Mar 2016 20:02:38 +0000 +Subject: [PATCH] CameraClient: MTK Support + +Return on MTK hardware, the HAL does this internally and duplicating it +here causes an infinite loop. + +Change-Id: I5bdb925ddb49980747b58dfae4543f812cef4c7d +--- + services/camera/libcameraservice/api1/CameraClient.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/services/camera/libcameraservice/api1/CameraClient.cpp b/services/camera/libcameraservice/api1/CameraClient.cpp +index 0d764b1f4..0df04d71e 100644 +--- a/services/camera/libcameraservice/api1/CameraClient.cpp ++++ b/services/camera/libcameraservice/api1/CameraClient.cpp +@@ -780,6 +780,9 @@ void CameraClient::disableMsgType(int32_t msgType) { + + #define CHECK_MESSAGE_INTERVAL 10 // 10ms + bool CameraClient::lockIfMessageWanted(int32_t msgType) { ++#ifdef MTK_HARDWARE ++ return true; ++#endif + int sleepCount = 0; + while (mMsgEnabled & msgType) { + if (mLock.tryLock() == NO_ERROR) { +-- +2.11.0 + |
