media: vicodec: use 3 bits for the number of components
authorDafna Hirschfeld <dafna3@gmail.com>
Mon, 21 Jan 2019 11:46:15 +0000 (09:46 -0200)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 25 Jan 2019 21:03:28 +0000 (19:03 -0200)
Use 3 bits for the number of components mask in the fwht
header flags

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/codec-fwht.h

index 6d230f5..2984dc7 100644 (file)
@@ -78,7 +78,7 @@
 #define FWHT_FL_ALPHA_IS_UNCOMPRESSED  BIT(9)
 
 /* A 4-values flag - the number of components - 1 */
-#define FWHT_FL_COMPONENTS_NUM_MSK     GENMASK(17, 16)
+#define FWHT_FL_COMPONENTS_NUM_MSK     GENMASK(18, 16)
 #define FWHT_FL_COMPONENTS_NUM_OFFSET  16
 
 /*