[COMMON] media: mfc: DRV4.0: update prefix [ROI]
authorAyoung Sim <a.sim@samsung.com>
Fri, 15 Jun 2018 07:40:29 +0000 (16:40 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 06:18:32 +0000 (15:18 +0900)
Change-Id: I29b23d18f1ce0d45f9e2ce4aa9d08b3b63654b5a
Signed-off-by: Ayoung Sim <a.sim@samsung.com>
drivers/media/platform/exynos/mfc/s5p_mfc_buf.c
drivers/media/platform/exynos/mfc/s5p_mfc_enc.c
drivers/media/platform/exynos/mfc/s5p_mfc_enc_ops.c
drivers/media/platform/exynos/mfc/s5p_mfc_enc_param.c

index 0770d0efb895e6bd2aa6022e688c1827d2877a65..22ed207bb4ac0a3c1bd953b7652f11ee5ad84d49 100644 (file)
@@ -489,10 +489,10 @@ static int mfc_alloc_enc_roi_buffer(struct s5p_mfc_ctx *ctx, struct s5p_mfc_spec
        roi_buf->buftype = MFCBUF_NORMAL;
        roi_buf->size = buf_size->shared_buf;
        if (s5p_mfc_mem_ion_alloc(dev, roi_buf)) {
-               mfc_err_ctx("Allocating ROI buffer failed\n");
+               mfc_err_ctx("[ROI] Allocating ROI buffer failed\n");
                return -ENOMEM;
        }
-       mfc_debug(2, "roi_buf.daddr = 0x%08llx, vaddr = 0x%p\n",
+       mfc_debug(2, "[ROI] roi_buf.daddr = 0x%08llx, vaddr = 0x%p\n",
                        roi_buf->daddr, roi_buf->vaddr);
 
        memset(roi_buf->vaddr, 0, buf_size->shared_buf);
@@ -508,7 +508,7 @@ int s5p_mfc_alloc_enc_roi_buffer(struct s5p_mfc_ctx *ctx)
 
        for (i = 0; i < MFC_MAX_EXTRA_BUF; i++) {
                if (mfc_alloc_enc_roi_buffer(ctx, &enc->roi_buf[i]) < 0) {
-                       mfc_err_dev("Remapping shared mem buffer failed.\n");
+                       mfc_err_dev("[ROI] Allocating remapping buffer[%d] failed\n", i);
                        return -ENOMEM;
                }
        }
index 4cc695cbf05242154759cb27188b23dba2d769d1..dff796d84238548dc0243eec5ae7e6055c98826d 100644 (file)
@@ -341,7 +341,7 @@ static int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv,
 
        ret = s5p_mfc_alloc_enc_roi_buffer(ctx);
        if (ret) {
-               mfc_err_ctx("Failed to allocate ROI buffers.\n");
+               mfc_err_ctx("[ROI] Failed to allocate ROI buffers\n");
                s5p_mfc_release_instance_context(ctx);
                return -ENOMEM;
        }
index b958a590fe51ea9929a42c0e95da83d53605d9ed..cc34ea73fc16c6e1e1a85f9f534ff51baece642a 100644 (file)
@@ -928,14 +928,14 @@ static int s5p_mfc_enc_to_buf_ctrls(struct s5p_mfc_ctx *ctx, struct list_head *h
                                                reg |= (enc->roi_info[index].lower_qp << 8);
                                                reg &= ~(0xFFFF << 16);
                                                reg |= (enc->roi_info[index].upper_qp << 16);
-                                               mfc_debug(3, "ROI: [%d] en %d, "\
+                                               mfc_debug(3, "[ROI] buffer[%d] en %d, "\
                                                                "QP lower %d upper %d reg %#x\n",
                                                                index, enc->roi_info[index].enable,
                                                                enc->roi_info[index].lower_qp,
                                                                enc->roi_info[index].upper_qp,
                                                                reg);
                                        } else {
-                                               mfc_debug(3, "ROI: [%d] not enabled\n", index);
+                                               mfc_debug(3, "[ROI] buffer[%d] is not enabled\n", index);
                                        }
                                        buf_ctrl->val = reg;
                                        buf_ctrl->old_val2 = index;
@@ -1167,7 +1167,7 @@ static void mfc_enc_set_buf_ctrls_exception(struct s5p_mfc_ctx *ctx,
        if (buf_ctrl->id == V4L2_CID_MPEG_VIDEO_ROI_CONTROL) {
                MFC_WRITEL(enc->roi_buf[buf_ctrl->old_val2].daddr,
                                S5P_FIMV_E_ROI_BUFFER_ADDR);
-               mfc_debug(3, "ROI: buffer[%d] addr %#llx, QP val: %#x\n",
+               mfc_debug(3, "[ROI] buffer[%d] addr %#llx, QP val: %#x\n",
                                buf_ctrl->old_val2,
                                enc->roi_buf[buf_ctrl->old_val2].daddr,
                                buf_ctrl->val);
@@ -1458,7 +1458,7 @@ static int s5p_mfc_enc_set_buf_ctrls_val_nal_q_enc(struct s5p_mfc_ctx *ctx,
                        pInStr->RcRoiCtrl |=
                                (buf_ctrl->val & buf_ctrl->mask) << buf_ctrl->shft;
                        pInStr->RoiBufferAddr = enc->roi_buf[buf_ctrl->old_val2].daddr;
-                       mfc_debug(3, "NAL-Q: ROI: buffer[%d] addr %#llx, QP val: %#x\n",
+                       mfc_debug(3, "NAL-Q:[ROI] buffer[%d] addr %#llx, QP val: %#x\n",
                                        buf_ctrl->old_val2,
                                        enc->roi_buf[buf_ctrl->old_val2].daddr,
                                        buf_ctrl->val);
index 52de357a2a430cdf9282c6040a613395c2a413a4..81c07f8f5b995f06f3226c09d17dfb8b68a714b0 100644 (file)
@@ -1292,7 +1292,7 @@ void s5p_mfc_set_enc_params_hevc(struct s5p_mfc_ctx *ctx)
        reg &= ~(0x1);
        reg |= (p->roi_enable);
        MFC_WRITEL(reg, S5P_FIMV_E_RC_ROI_CTRL);
-       mfc_debug(3, "ROI: HEVC ROI enable\n");
+       mfc_debug(3, "[ROI] HEVC ROI enable\n");
 
        if (MFC_FEATURE_SUPPORT(dev, dev->pdata->color_aspect_enc) && p->check_color_range) {
                reg = MFC_READL(S5P_FIMV_E_VIDEO_SIGNAL_TYPE);