summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShilpa Mamidi <shilpam@codeaurora.org>2015-12-02 13:36:46 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:13:18 -0700
commit793aab693fdb0713f2055ea5e9b7b6aacda3e26d (patch)
treee5401747efcb6a88dce23b64eccc31a0d47ff14f
parentc7cc278f25efb365d9a9e66a8d51c1a8ff4166fb (diff)
msm: cpp: timer used should be set without queue length check
There could be case where send frame is called before frame done in these cases queue length could be more than 1. To fix this issue timer used should be set without queue length check. Change-Id: I2bf15efc36b3a5fb81b97903c323f0ff737eb56b Signed-off-by: Shilpa Mamidi <shilpam@codeaurora.org>
-rw-r--r--drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c
index 2b44058ac98e..3bfb51760c2f 100644
--- a/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c
+++ b/drivers/media/platform/msm/camera_v2/pproc/cpp/msm_cpp.c
@@ -1919,9 +1919,8 @@ static int msm_cpp_send_frame_to_hardware(struct cpp_device *cpp_dev,
queue_len = cpp_dev->processing_q.len;
spin_unlock_irqrestore(&cpp_timer.data.processed_frame_lock,
flags);
- if (queue_len == 1) {
- atomic_set(&cpp_timer.used, 1);
- }
+ atomic_set(&cpp_timer.used, 1);
+
CPP_DBG("Starting timer to fire in %d ms. (jiffies=%lu)\n",
CPP_CMD_TIMEOUT_MS, jiffies);
ret = mod_timer(&cpp_timer.cpp_timer,