msm: vidc: Reduce priority of unwanted logs

Change reduces the priority of unwanted logs
which are coming in kernel logs by default
in video driver. Now these logs will come
only when enabled.

Change-Id: I18a534c7aaf8a2819be1b8812fad9e0710c49bd3
CRs-fixed: 454273
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
This commit is contained in:
Maheshwar Ajja 2013-02-20 16:03:29 +05:30 committed by Iliyan Malchev
parent 8ed6b6247d
commit 2347c7222f
3 changed files with 7 additions and 5 deletions

View file

@ -236,7 +236,6 @@ static u32 ddl_handle_core_recoverable_errors(
case VIDC_1080P_ERROR_MV_RANGE_ERR:
case VIDC_1080P_ERROR_PICTURE_STRUCTURE_ERR:
case VIDC_1080P_ERROR_SLICE_ADDR_INVALID:
case VIDC_1080P_ERROR_NON_FRAME_DATA_RECEIVED:
case VIDC_1080P_ERROR_NALU_HEADER_ERROR:
case VIDC_1080P_ERROR_SPS_PARSE_ERROR:
case VIDC_1080P_ERROR_PPS_PARSE_ERROR:
@ -256,6 +255,9 @@ static u32 ddl_handle_core_recoverable_errors(
(u32)ddl_context->cmd_err_status);
}
break;
case VIDC_1080P_ERROR_NON_FRAME_DATA_RECEIVED:
vcd_status = VCD_ERR_BITSTREAM_ERR;
break;
default:
break;
}
@ -367,7 +369,7 @@ u32 ddl_handle_core_errors(struct ddl_context *ddl_context)
disp_status = ddl_handle_core_warnings(
ddl_context->disp_pic_err_status);
if (!status && !disp_status) {
DDL_MSG_ERROR("ddl_warning:Unknown");
DDL_MSG_HIGH("ddl_warning:Unknown");
status = ddl_handle_hw_fatal_errors(ddl);
if (!status)
status = ddl_handle_core_recoverable_errors(ddl);
@ -397,7 +399,7 @@ static u32 ddl_handle_dec_seq_hdr_fail_error(struct ddl_client_context *ddl)
if ((ddl->cmd_state != DDL_CMD_HEADER_PARSE) ||
(ddl->client_state != DDL_CLIENT_WAIT_FOR_INITCODECDONE)) {
DDL_MSG_ERROR("STATE-CRITICAL-HDDONE");
DDL_MSG_HIGH("STATE-CRITICAL-HDDONE");
return false;
}

View file

@ -995,7 +995,7 @@ static u32 ddl_process_intr_status(struct ddl_context *ddl_context,
ddl_encoder_eos_done(ddl_context);
break;
case VIDC_1080P_RISC2HOST_CMD_ERROR_RET:
DDL_MSG_ERROR("CMD_ERROR_INTR");
DDL_MSG_HIGH("CMD_ERROR_INTR");
return_status = ddl_handle_core_errors(ddl_context);
break;
case VIDC_1080P_RISC2HOST_CMD_INIT_BUFFERS_RET:

View file

@ -2031,7 +2031,7 @@ u32 vcd_handle_input_done(
}
if (VCD_FAILED(status)) {
VCD_MSG_ERROR("INPUT_DONE returned err = 0x%x", status);
VCD_MSG_HIGH("INPUT_DONE returned err = 0x%x", status);
vcd_handle_input_done_failed(cctxt, transc);
} else
cctxt->status.mask |= VCD_FIRST_IP_DONE;