Merge "msm: camera: jpeg: Add traces to profile jpeg processing time" into camera-kernel.lnx.4.0

This commit is contained in:
Camera Software Integration 2020-10-29 15:37:29 -07:00 • committed by Gerrit - the friendly Code Review server
commit 1d4846d08d
2 changed files with 4 additions and 0 deletions

View file

@ -139,6 +139,9 @@ static int cam_jpeg_process_next_hw_update(void *priv, void *data,
rc = -EINVAL;
goto end_error;
}
CAM_TRACE(CAM_JPEG, "Start JPEG ENC Req %llu", config_args->request_id);
rc = hw_mgr->devices[dev_type][0]->hw_ops.start(
hw_mgr->devices[dev_type][0]->hw_priv, NULL, 0);
if (rc) {

View file

@ -202,6 +202,7 @@ irqreturn_t cam_jpeg_enc_irq(int irq_num, void *data)
if (CAM_JPEG_HW_IRQ_IS_FRAME_DONE(irq_status, hw_info)) {
spin_lock(&jpeg_enc_dev->hw_lock);
if (core_info->core_state == CAM_JPEG_ENC_CORE_READY) {
CAM_TRACE(CAM_JPEG, "FrameDone IRQ");
encoded_size = cam_io_r_mb(mem_base +
core_info->jpeg_enc_hw_info->reg_offset.encode_size);
if (core_info->irq_cb.jpeg_hw_mgr_cb) {