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

[media] omap3isp: preview: Rename max output sizes defines

The maximum preview engine output size depends on the ISP revision, not
the OMAP revision. Rename the macros accordingly.
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 0d6ac1f8
...@@ -118,9 +118,9 @@ static struct omap3isp_prev_csc flr_prev_csc = { ...@@ -118,9 +118,9 @@ static struct omap3isp_prev_csc flr_prev_csc = {
#define PREV_MIN_OUT_WIDTH 0 #define PREV_MIN_OUT_WIDTH 0
#define PREV_MIN_OUT_HEIGHT 0 #define PREV_MIN_OUT_HEIGHT 0
#define PREV_MAX_OUT_WIDTH 1280 #define PREV_MAX_OUT_WIDTH_REV_1 1280
#define PREV_MAX_OUT_WIDTH_ES2 3300 #define PREV_MAX_OUT_WIDTH_REV_2 3300
#define PREV_MAX_OUT_WIDTH_3630 4096 #define PREV_MAX_OUT_WIDTH_REV_15 4096
/* /*
* Coeficient Tables for the submodules in Preview. * Coeficient Tables for the submodules in Preview.
...@@ -1306,14 +1306,14 @@ static unsigned int preview_max_out_width(struct isp_prev_device *prev) ...@@ -1306,14 +1306,14 @@ static unsigned int preview_max_out_width(struct isp_prev_device *prev)
switch (isp->revision) { switch (isp->revision) {
case ISP_REVISION_1_0: case ISP_REVISION_1_0:
return PREV_MAX_OUT_WIDTH; return PREV_MAX_OUT_WIDTH_REV_1;
case ISP_REVISION_2_0: case ISP_REVISION_2_0:
default: default:
return PREV_MAX_OUT_WIDTH_ES2; return PREV_MAX_OUT_WIDTH_REV_2;
case ISP_REVISION_15_0: case ISP_REVISION_15_0:
return PREV_MAX_OUT_WIDTH_3630; return PREV_MAX_OUT_WIDTH_REV_15;
} }
} }
......
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