summaryrefslogtreecommitdiff
path: root/drivers/media/platform/s5p-mfc
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2018-03-19 17:29:58 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-22 14:21:29 +0300
commit740ba614c9727660f99d7d924987dfef8a437698 (patch)
tree5f631c962bded9f7313751bbe8f4fdd896470763 /drivers/media/platform/s5p-mfc
parent11b7090d8088e0ecaec4a48d5477f91b840d585b (diff)
downloadlinux-740ba614c9727660f99d7d924987dfef8a437698.tar.xz
media: s5p-mfc: Amend initial min, max values of HEVC hierarchical coding QP controls
Valid range for those controls is specified in documentation as [0, 51], so initialize the controls to such range rather than [INT_MIN, INT_MAX]. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/s5p-mfc')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_enc.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
index 810dabe2f1b9..7382b41f4f6d 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
@@ -856,56 +856,56 @@ static struct mfc_control controls[] = {
{
.id = V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L0_QP,
.type = V4L2_CTRL_TYPE_INTEGER,
- .minimum = INT_MIN,
- .maximum = INT_MAX,
+ .minimum = 0,
+ .maximum = 51,
.step = 1,
.default_value = 0,
},
{
.id = V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L1_QP,
.type = V4L2_CTRL_TYPE_INTEGER,
- .minimum = INT_MIN,
- .maximum = INT_MAX,
+ .minimum = 0,
+ .maximum = 51,
.step = 1,
.default_value = 0,
},
{
.id = V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L2_QP,
.type = V4L2_CTRL_TYPE_INTEGER,
- .minimum = INT_MIN,
- .maximum = INT_MAX,
+ .minimum = 0,
+ .maximum = 51,
.step = 1,
.default_value = 0,
},
{
.id = V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L3_QP,
.type = V4L2_CTRL_TYPE_INTEGER,
- .minimum = INT_MIN,
- .maximum = INT_MAX,
+ .minimum = 0,
+ .maximum = 51,
.step = 1,
.default_value = 0,
},
{
.id = V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L4_QP,
.type = V4L2_CTRL_TYPE_INTEGER,
- .minimum = INT_MIN,
- .maximum = INT_MAX,
+ .minimum = 0,
+ .maximum = 51,
.step = 1,
.default_value = 0,
},
{
.id = V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L5_QP,
.type = V4L2_CTRL_TYPE_INTEGER,
- .minimum = INT_MIN,
- .maximum = INT_MAX,
+ .minimum = 0,
+ .maximum = 51,
.step = 1,
.default_value = 0,
},
{
.id = V4L2_CID_MPEG_VIDEO_HEVC_HIER_CODING_L6_QP,
.type = V4L2_CTRL_TYPE_INTEGER,
- .minimum = INT_MIN,
- .maximum = INT_MAX,
+ .minimum = 0,
+ .maximum = 51,
.step = 1,
.default_value = 0,
},