Skip to content

Commit

Permalink
staging/media: Remove unneeded geometry restrictions from i.MX CSI dr…
Browse files Browse the repository at this point in the history
…iver

I don't know what minimal image dimensions are, but 32x32 appears to
be ok according to the docs.
This is needed for small sensors like 80x80 thermal imagers.

Signed-off-by: Krzysztof Halasa <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Tested-by: Philipp Zabel <[email protected]>
Acked-by: Steve Longerbeam <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Krzysztof Hałasa authored and sigmaris committed Aug 8, 2020
1 parent 1136ba1 commit c5d1f6b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/media/imx/imx-ic-prp.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
/*
* Min/Max supported width and heights.
*/
#define MIN_W 176
#define MIN_H 144
#define MIN_W 32
#define MIN_H 32
#define MAX_W 4096
#define MAX_H 4096
#define W_ALIGN 4 /* multiple of 16 pixels */
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/media/imx/imx-ic-prpencvf.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* has not requested a planar format, we should allow 8 pixel
* alignment at the source pad.
*/
#define MIN_W_SINK 176
#define MIN_H_SINK 144
#define MIN_W_SINK 32
#define MIN_H_SINK 32
#define MAX_W_SINK 4096
#define MAX_H_SINK 4096
#define W_ALIGN_SINK 3 /* multiple of 8 pixels */
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/media/imx/imx-media-csi.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
* has not requested planar formats, we should allow 8 pixel
* alignment.
*/
#define MIN_W 176
#define MIN_H 144
#define MIN_W 32
#define MIN_H 32
#define MAX_W 4096
#define MAX_H 4096
#define W_ALIGN 1 /* multiple of 2 pixels */
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/media/imx/imx-media-vdic.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ struct vdic_pipeline_ops {
/*
* Min/Max supported width and heights.
*/
#define MIN_W 176
#define MIN_H 144
#define MIN_W 32
#define MIN_H 32
#define MAX_W_VDIC 968
#define MAX_H_VDIC 2048
#define W_ALIGN 4 /* multiple of 16 pixels */
Expand Down

0 comments on commit c5d1f6b

Please sign in to comment.