int ave_luma;
int pix_sum;
ulong flags;
+ unsigned int i = 0;
spin_lock_irqsave(&devp->hist_lock, flags);
vdin1_hist.sum = vf->prop.hist.luma_sum;
if (vdin1_hist.ave > 255)
vdin1_hist.ave = 255;
+ for (i = 0; i < 64; i++)
+ vdin1_hist.hist[i] = vf->prop.hist.gamma[i];
+
spin_unlock_irqrestore(&devp->hist_lock, flags);
}
vdin1_hist_temp.width = vdin1_hist.width;
vdin1_hist_temp.height = vdin1_hist.height;
vdin1_hist_temp.ave = vdin1_hist.ave;
+ for (i = 0; i < 64; i++)
+ vdin1_hist_temp.hist[i] = vdin1_hist.hist[i];
spin_unlock_irqrestore(&devp->hist_lock, flags);
if (vdin_dbg_en) {
if (pr_times++ > 10) {
vdin1_hist_temp.height,
vdin1_hist_temp.width,
vdin1_hist_temp.ave);
+ for (i = 0; i < 64; i++)
+ pr_info("-:vdin1 hist[%d]=%d\n",
+ i, vdin1_hist_temp.hist[i]);
}
}