MLK-22206-2 VPU Decoder: modify vpu log print method
authorShijie Qin <shijie.qin@nxp.com>
Mon, 19 Aug 2019 02:27:29 +0000 (10:27 +0800)
committerShijie Qin <shijie.qin@nxp.com>
Mon, 19 Aug 2019 11:19:34 +0000 (19:19 +0800)
Move LVL_WARN/LVL_EVENT/LVL_INFO one bit to the left to convenient for
adjust log level, and leave 4th position to reserved.

Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
Reviewed-by: ming_qian <ming.qian@nxp.com>
drivers/mxc/vpu_malone/vpu_b0.c
drivers/mxc/vpu_malone/vpu_b0.h

index 29ededf..9958905 100644 (file)
@@ -4176,17 +4176,28 @@ static void vpu_api_event_handler(struct vpu_ctx *ctx, u_int32 uStrIdx, u_int32
 
                calculate_frame_size(ctx);
                parse_frame_interval_from_seqinfo(ctx, &ctx->seqinfo);
-               vpu_dbg(LVL_BIT_FLOW, "ctx[%d] SEQINFO GET: uHorRes:%d uVerRes:%d uHorDecodeRes:%d uVerDecodeRes:%d uNumDPBFrms:%d, num:%d, uNumRefFrms:%d, uNumDFEAreas:%d\n",
-                               ctx->str_index,
-                               ctx->seqinfo.uHorRes, ctx->seqinfo.uVerRes,
-                               ctx->seqinfo.uHorDecodeRes, ctx->seqinfo.uVerDecodeRes,
-                               ctx->seqinfo.uNumDPBFrms, num, ctx->seqinfo.uNumRefFrms, ctx->seqinfo.uNumDFEAreas);
-               vpu_dbg(LVL_BIT_FLOW, "uColorDesc = %d, uTransferChars = %d, uMatrixCoeffs = %d, uVideoFullRangeFlag = %d, uVUIPresent = %d\n",
-                               ctx->seqinfo.uColorDesc,
-                               ctx->seqinfo.uTransferChars,
-                               ctx->seqinfo.uMatrixCoeffs,
-                               ctx->seqinfo.uVideoFullRangeFlag,
-                               ctx->seqinfo.uVUIPresent);
+               vpu_dbg(LVL_BIT_FLOW,
+                       "ctx[%d] SEQINFO GET: uHorRes:%d uVerRes:%d uHorDecodeRes:%d uVerDecodeRes:%d\n",
+                       ctx->str_index,
+                       ctx->seqinfo.uHorRes,
+                       ctx->seqinfo.uVerRes,
+                       ctx->seqinfo.uHorDecodeRes,
+                       ctx->seqinfo.uVerDecodeRes);
+               vpu_dbg(LVL_BIT_FLOW,
+                       "ctx[%d] SEQINFO GET: uNumDPBFrms:%d, num:%d, uNumRefFrms:%d, uNumDFEAreas:%d, scan lines: %s\n",
+                       ctx->str_index,
+                       ctx->seqinfo.uNumDPBFrms,
+                       num,
+                       ctx->seqinfo.uNumRefFrms,
+                       ctx->seqinfo.uNumDFEAreas,
+                       ctx->seqinfo.uProgressive ? "progressive" : "interlaced");
+               vpu_dbg(LVL_BIT_FLOW,
+                       "uColorDesc = %d, uTransferChars = %d, uMatrixCoeffs = %d, uVideoFullRangeFlag = %d, uVUIPresent = %d\n",
+                       ctx->seqinfo.uColorDesc,
+                       ctx->seqinfo.uTransferChars,
+                       ctx->seqinfo.uMatrixCoeffs,
+                       ctx->seqinfo.uVideoFullRangeFlag,
+                       ctx->seqinfo.uVUIPresent);
                ctx->mbi_size = get_mbi_size(&ctx->q_data[V4L2_DST]);
                if (ctx->b_firstseq) {
                        down(&ctx->q_data[V4L2_DST].drv_q_lock);
index 1e47240..8e6acb2 100644 (file)
@@ -408,9 +408,9 @@ struct vpu_ctx {
        u_int64 last_ready_time;
 };
 
-#define LVL_WARN               (1 << 1)
-#define LVL_EVENT              (1 << 2)
-#define LVL_INFO               (1 << 3)
+#define LVL_WARN               (1 << 0)
+#define LVL_EVENT              (1 << 1)
+#define LVL_INFO               (1 << 2)
 #define LVL_BIT_CMD            (1 << 4)
 #define LVL_BIT_EVT            (1 << 5)
 #define LVL_BIT_TS             (1 << 6)