1
0
Fork 0

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: 6c96dbbc2a ("[media] s5p-jpeg: add support for 5433")

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
zero-colors
Andrzej Pietrasiewicz 2017-08-08 07:27:07 -04:00 committed by Mauro Carvalho Chehab
parent 787d862091
commit 6c83c1d8e7
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@
#define EXYNOS4_NF_SHIFT 16
#define EXYNOS4_NF_MASK 0xff
#define EXYNOS4_NF(x) \
(((x) << EXYNOS4_NF_SHIFT) & EXYNOS4_NF_MASK)
(((x) & EXYNOS4_NF_MASK) << EXYNOS4_NF_SHIFT)
/* JPEG quantizer table register */
#define EXYNOS4_QTBL_CONTENT(n) (0x100 + (n) * 0x40)