]> Git Repo - linux.git/commitdiff
media: s5p-mfc: Fix display delay control creation
authorMarek Szyprowski <[email protected]>
Fri, 23 Apr 2021 20:44:57 +0000 (22:44 +0200)
committerMauro Carvalho Chehab <[email protected]>
Mon, 28 Jun 2021 13:17:42 +0000 (15:17 +0200)
v4l2_ctrl_new_std() fails if the caller provides no 'step' parameter for
integer control, so define it to fix following error:

s5p_mfc_dec_ctrls_setup:1166: Adding control (1) failed

Fixes: c3042bff918a ("media: s5p-mfc: Use display delay and display enable std controls")
Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c

index a92a9ca6e87ebacd423390c83d4ebd0e06f39fa0..c1d3bda8385b1a98ac8ab3176909bd6d65616a23 100644 (file)
@@ -172,6 +172,7 @@ static struct mfc_control controls[] = {
                .type = V4L2_CTRL_TYPE_INTEGER,
                .minimum = 0,
                .maximum = 16383,
+               .step = 1,
                .default_value = 0,
        },
        {
This page took 0.05835 seconds and 4 git commands to generate.