Commit 3bee8616 authored by Dafna Hirschfeld's avatar Dafna Hirschfeld Committed by Mauro Carvalho Chehab

media: staging: rkisp1: stats: don't set stats flags in rkisp1_stats_send_measurement

The flags that indicate which statistics are read are already
set in the functions that read them so there is no need to
set them in the function rkisp1_stats_send_measurement.
Signed-off-by: default avatarDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: default avatarHelen Koike <helen.koike@collabora.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 445093ff
......@@ -356,26 +356,19 @@ rkisp1_stats_send_measurement(struct rkisp1_stats *stats,
cur_stat_buf =
(struct rkisp1_stat_buffer *)(cur_buf->vaddr[0]);
if (meas_work->isp_ris & RKISP1_CIF_ISP_AWB_DONE) {
if (meas_work->isp_ris & RKISP1_CIF_ISP_AWB_DONE)
rkisp1_stats_get_awb_meas(stats, cur_stat_buf);
cur_stat_buf->meas_type |= RKISP1_CIF_ISP_STAT_AWB;
}
if (meas_work->isp_ris & RKISP1_CIF_ISP_AFM_FIN) {
if (meas_work->isp_ris & RKISP1_CIF_ISP_AFM_FIN)
rkisp1_stats_get_afc_meas(stats, cur_stat_buf);
cur_stat_buf->meas_type |= RKISP1_CIF_ISP_STAT_AFM_FIN;
}
if (meas_work->isp_ris & RKISP1_CIF_ISP_EXP_END) {
rkisp1_stats_get_aec_meas(stats, cur_stat_buf);
rkisp1_stats_get_bls_meas(stats, cur_stat_buf);
cur_stat_buf->meas_type |= RKISP1_CIF_ISP_STAT_AUTOEXP;
}
if (meas_work->isp_ris & RKISP1_CIF_ISP_HIST_MEASURE_RDY) {
if (meas_work->isp_ris & RKISP1_CIF_ISP_HIST_MEASURE_RDY)
rkisp1_stats_get_hst_meas(stats, cur_stat_buf);
cur_stat_buf->meas_type |= RKISP1_CIF_ISP_STAT_HIST;
}
vb2_set_plane_payload(&cur_buf->vb.vb2_buf, 0,
sizeof(struct rkisp1_stat_buffer));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment