msm: camera: common: Fix some compile errors

This change fix unannotated fall-through between switch labels error,
also fix unused label error.

CRs-Fixed: 3247171
Change-Id: Ida29c08eed0cebec05b36e0ebac3d55ce8c6a014
Signed-off-by: zhuo <quic_zhuo@quicinc.com>
This commit is contained in:
zhuo
2022-07-15 18:46:50 +08:00
committed by Camera Software Integration
父節點 39f5c09287
當前提交 a0ca9a026c
共有 8 個文件被更改,包括 15 次插入1 次删除

查看文件

@@ -3518,7 +3518,7 @@ acquire_successful:
return rc;
}
static cam_ife_hw_mgr_is_need_csid_ipp(
static bool cam_ife_hw_mgr_is_need_csid_ipp(
struct cam_ife_hw_mgr_ctx *ife_ctx,
struct cam_isp_in_port_generic_info *in_port)
{

查看文件

@@ -2698,6 +2698,7 @@ static int cam_ife_csid_hw_ver2_config_rx(
case CAM_ISP_IFE_IN_RES_TPG:
csid_hw->rx_cfg.phy_sel = 0;
csid_hw->rx_cfg.tpg_mux_sel = 0;
fallthrough;
case CAM_ISP_IFE_IN_RES_CPHY_TPG_0:
csid_hw->rx_cfg.tpg_mux_sel = 1;
csid_hw->rx_cfg.tpg_num_sel = 1;
@@ -4944,6 +4945,7 @@ static int cam_ife_csid_ver2_top_cfg(
case CAM_IFE_CSID_INPUT_CORE_SFE:
csid_hw->top_cfg.out_ife_en = false;
fallthrough;
case CAM_IFE_CSID_INPUT_CORE_SFE_IFE:
if (top_args->core_idx == 0) {

查看文件

@@ -435,6 +435,7 @@ int cam_sfe_process_cmd(void *hw_priv, uint32_t cmd_type,
core_info->sfe_top->hw_ops.process_cmd(
core_info->sfe_top->top_priv, cmd_type,
cmd_args, arg_size);
fallthrough;
case CAM_ISP_HW_CMD_GET_RES_FOR_MID:
case CAM_ISP_HW_CMD_DUMP_BUS_INFO:
/* propagate to SFE bus wr */

查看文件

@@ -936,6 +936,7 @@ static enum cam_vfe_bus_packer_format
case CAM_FORMAT_NV21:
if ((wm_index == 4) || (wm_index == 6) || (wm_index == 21))
return PACKER_FMT_PLAIN_8_LSB_MSB_10_ODD_EVEN;
fallthrough;
case CAM_FORMAT_NV12:
case CAM_FORMAT_UBWC_NV12:
case CAM_FORMAT_UBWC_NV12_4R:
@@ -976,6 +977,7 @@ static enum cam_vfe_bus_packer_format
default:
return PACKER_FMT_MAX;
}
return PACKER_FMT_MAX;
}
static int cam_vfe_bus_acquire_wm(
@@ -1096,6 +1098,7 @@ static int cam_vfe_bus_acquire_wm(
case CAM_FORMAT_UBWC_NV12:
rsrc_data->en_ubwc = 1;
/* Fall through for NV12 */
fallthrough;
case CAM_FORMAT_NV21:
case CAM_FORMAT_NV12:
case CAM_FORMAT_Y_ONLY:

查看文件

@@ -609,6 +609,7 @@ static enum cam_vfe_bus_ver3_packer_format
case CAM_FORMAT_NV21:
if ((wm_index == 1) || (wm_index == 3) || (wm_index == 5))
return PACKER_FMT_VER3_PLAIN_8_LSB_MSB_10_ODD_EVEN;
fallthrough;
case CAM_FORMAT_NV12:
case CAM_FORMAT_UBWC_NV12:
case CAM_FORMAT_UBWC_NV12_4R:
@@ -637,6 +638,7 @@ static enum cam_vfe_bus_ver3_packer_format
default:
return PACKER_FMT_VER3_MAX;
}
return PACKER_FMT_VER3_MAX;
}
static int cam_vfe_bus_ver3_handle_rup_top_half(uint32_t evt_id,
@@ -1112,6 +1114,7 @@ static int cam_vfe_bus_ver3_acquire_wm(
break;
case CAM_FORMAT_UBWC_NV12:
rsrc_data->en_ubwc = 1;
fallthrough;
/* Fall through for NV12 */
case CAM_FORMAT_NV21:
case CAM_FORMAT_NV12: