media: v4l: Fix MPEG-2 slice Intra DC Precision validation
authorJonas Karlman <jonas@kwiboo.se>
Sun, 25 Nov 2018 15:21:42 +0000 (10:21 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 3 Dec 2018 19:40:28 +0000 (14:40 -0500)
commitb04240a6d5ed5b219c1c7626d0e1f4f1acc0e2f5
tree549f2abe3929b12e77479f6344a83be35e575d17
parentaa35dc3c71950e3fec3e230c06c27c0fbd0067f8
media: v4l: Fix MPEG-2 slice Intra DC Precision validation

intra_dc_precision is a 2-bit integer [1]
allow use of all valid options, 8 - 11 bits precision

[1] ISO/IEC 13818-2 Table 6-13

Fixes: c27bb30e7b6d ("media: v4l: Add definitions for MPEG-2 slice format and metadata")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c