staging: bcm2835-codec: Correct buffer type check on G_PARM
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Fri, 13 Sep 2019 16:22:08 +0000 (17:22 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:07 +0000 (16:33 +0100)
The output queue buffer type is now OUTPUT_MPLANE.

Fixes: 5e484a3 staging: bcm2835-codec: switch to multi-planar API
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c

index 09d662d..a0d4b0d 100644 (file)
@@ -1438,7 +1438,7 @@ static int vidioc_g_parm(struct file *file, void *priv,
 {
        struct bcm2835_codec_ctx *ctx = file2ctx(file);
 
-       if (parm->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
+       if (parm->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
                return -EINVAL;
 
        parm->parm.output.capability = V4L2_CAP_TIMEPERFRAME;