summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-02-26 18:31:01 +0100
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-01 17:04:26 +0100
commit77e05ef7d464b319577b072aa6728200d0cdf787 (patch)
tree177899c8cdcb78729a6264677703ed0080da69e4 /drivers/media
parentmedia: vim2m: improve debug messages (diff)
downloadlinux-77e05ef7d464b319577b072aa6728200d0cdf787.tar.xz
linux-77e05ef7d464b319577b072aa6728200d0cdf787.zip
media: vim2m: ensure that width is multiple of two
The copy logic assumes that the data width is multiple of two, as this is needed in order to support YUYV. There's no reason to force it to be 8-pixel aligned, as 2-pixel alignment is enough. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/vim2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c
index 07d7f73b48d4..6bd30ffb0c4a 100644
--- a/drivers/media/platform/vim2m.c
+++ b/drivers/media/platform/vim2m.c
@@ -50,7 +50,7 @@ MODULE_PARM_DESC(default_transtime, "default transaction time in ms");
#define MIN_H 32
#define MAX_W 640
#define MAX_H 480
-#define DIM_ALIGN_MASK 7 /* 8-byte alignment for line length */
+#define DIM_ALIGN_MASK 1 /* 2-byte alignment */
/* Flags that indicate a format can be used for capture/output */
#define MEM2MEM_CAPTURE (1 << 0)