Commit 9b00184d authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

[media] omap3isp: preview: Rename prev_params fields to match userspace API

Rename the blk_adj and rgb2ycbcr fields to blkadj and csc respectively.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7ed5de97
...@@ -837,9 +837,9 @@ __preview_get_ptrs(struct prev_params *params, void **param, ...@@ -837,9 +837,9 @@ __preview_get_ptrs(struct prev_params *params, void **param,
CHKARG(configs, config, dcor) CHKARG(configs, config, dcor)
return sizeof(params->dcor); return sizeof(params->dcor);
case OMAP3ISP_PREV_BLKADJ: case OMAP3ISP_PREV_BLKADJ:
*param = &params->blk_adj; *param = &params->blkadj;
CHKARG(configs, config, blkadj) CHKARG(configs, config, blkadj)
return sizeof(params->blk_adj); return sizeof(params->blkadj);
case OMAP3ISP_PREV_YC_LIMIT: case OMAP3ISP_PREV_YC_LIMIT:
*param = &params->yclimit; *param = &params->yclimit;
CHKARG(configs, config, yclimit) CHKARG(configs, config, yclimit)
...@@ -849,9 +849,9 @@ __preview_get_ptrs(struct prev_params *params, void **param, ...@@ -849,9 +849,9 @@ __preview_get_ptrs(struct prev_params *params, void **param,
CHKARG(configs, config, rgb2rgb) CHKARG(configs, config, rgb2rgb)
return sizeof(params->rgb2rgb); return sizeof(params->rgb2rgb);
case OMAP3ISP_PREV_COLOR_CONV: case OMAP3ISP_PREV_COLOR_CONV:
*param = &params->rgb2ycbcr; *param = &params->csc;
CHKARG(configs, config, csc) CHKARG(configs, config, csc)
return sizeof(params->rgb2ycbcr); return sizeof(params->csc);
case OMAP3ISP_PREV_WB: case OMAP3ISP_PREV_WB:
*param = &params->wbal; *param = &params->wbal;
CHKARG(configs, config, wbal) CHKARG(configs, config, wbal)
...@@ -1285,11 +1285,11 @@ static void preview_init_params(struct isp_prev_device *prev) ...@@ -1285,11 +1285,11 @@ static void preview_init_params(struct isp_prev_device *prev)
params->wbal.coef1 = FLR_WBAL_COEF; params->wbal.coef1 = FLR_WBAL_COEF;
params->wbal.coef2 = FLR_WBAL_COEF; params->wbal.coef2 = FLR_WBAL_COEF;
params->wbal.coef3 = FLR_WBAL_COEF; params->wbal.coef3 = FLR_WBAL_COEF;
params->blk_adj.red = FLR_BLKADJ_RED; params->blkadj.red = FLR_BLKADJ_RED;
params->blk_adj.green = FLR_BLKADJ_GREEN; params->blkadj.green = FLR_BLKADJ_GREEN;
params->blk_adj.blue = FLR_BLKADJ_BLUE; params->blkadj.blue = FLR_BLKADJ_BLUE;
params->rgb2rgb = flr_rgb2rgb; params->rgb2rgb = flr_rgb2rgb;
params->rgb2ycbcr = flr_prev_csc; params->csc = flr_prev_csc;
params->yclimit.minC = ISPPRV_YC_MIN; params->yclimit.minC = ISPPRV_YC_MIN;
params->yclimit.maxC = ISPPRV_YC_MAX; params->yclimit.maxC = ISPPRV_YC_MAX;
params->yclimit.minY = ISPPRV_YC_MIN; params->yclimit.minY = ISPPRV_YC_MIN;
......
...@@ -77,9 +77,9 @@ enum preview_ycpos_mode { ...@@ -77,9 +77,9 @@ enum preview_ycpos_mode {
* @dcor: Noise filter coefficients. * @dcor: Noise filter coefficients.
* @gamma: Gamma coefficients. * @gamma: Gamma coefficients.
* @wbal: White Balance parameters. * @wbal: White Balance parameters.
* @blk_adj: Black adjustment parameters. * @blkadj: Black adjustment parameters.
* @rgb2rgb: RGB blending parameters. * @rgb2rgb: RGB blending parameters.
* @rgb2ycbcr: RGB to ycbcr parameters. * @csc: Color space conversion (RGB to YCbCr) parameters.
* @hmed: Horizontal median filter. * @hmed: Horizontal median filter.
* @yclimit: YC limits parameters. * @yclimit: YC limits parameters.
* @contrast: Contrast. * @contrast: Contrast.
...@@ -94,9 +94,9 @@ struct prev_params { ...@@ -94,9 +94,9 @@ struct prev_params {
struct omap3isp_prev_dcor dcor; struct omap3isp_prev_dcor dcor;
struct omap3isp_prev_gtables gamma; struct omap3isp_prev_gtables gamma;
struct omap3isp_prev_wbal wbal; struct omap3isp_prev_wbal wbal;
struct omap3isp_prev_blkadj blk_adj; struct omap3isp_prev_blkadj blkadj;
struct omap3isp_prev_rgbtorgb rgb2rgb; struct omap3isp_prev_rgbtorgb rgb2rgb;
struct omap3isp_prev_csc rgb2ycbcr; struct omap3isp_prev_csc csc;
struct omap3isp_prev_hmed hmed; struct omap3isp_prev_hmed hmed;
struct omap3isp_prev_yclimit yclimit; struct omap3isp_prev_yclimit yclimit;
u8 contrast; u8 contrast;
......
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