Commit 6c83c1d8 authored by Andrzej Pietrasiewicz's avatar Andrzej Pietrasiewicz Committed by Mauro Carvalho Chehab

media: s5p-jpeg: fix number of components macro

The value to be processed must be first masked and then shifted,
not the other way round.

Fixes: 6c96dbbc ("[media] s5p-jpeg: add support for 5433")
Signed-off-by: default avatarAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 787d8620
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
#define EXYNOS4_NF_SHIFT 16 #define EXYNOS4_NF_SHIFT 16
#define EXYNOS4_NF_MASK 0xff #define EXYNOS4_NF_MASK 0xff
#define EXYNOS4_NF(x) \ #define EXYNOS4_NF(x) \
(((x) << EXYNOS4_NF_SHIFT) & EXYNOS4_NF_MASK) (((x) & EXYNOS4_NF_MASK) << EXYNOS4_NF_SHIFT)
/* JPEG quantizer table register */ /* JPEG quantizer table register */
#define EXYNOS4_QTBL_CONTENT(n) (0x100 + (n) * 0x40) #define EXYNOS4_QTBL_CONTENT(n) (0x100 + (n) * 0x40)
......
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