Skip to content

Commit 80aaa96

Browse files
6by9pelwell
authored andcommitted
vc04_services: bcm2835-codec: Allow encoder_cmd on ISP and deinterlace
ISP and deinterlace also need a mechanism for passing effectively an EOS through the pipeline to signal when all buffers have been processed. VIDIOC_ENCODER_CMD does exactly this for encoders, so reuse the same function for ISP and deinterlace. (VIDIOC_DECODER_CMD is slightly different in that it also passes details of when and how to stop, so is not as relevant). Signed-off-by: Dave Stevenson <[email protected]>
1 parent a63d514 commit 80aaa96

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3639,8 +3639,6 @@ static int bcm2835_codec_create(struct bcm2835_codec_driver *drv,
36393639
video_nr = encode_video_nr;
36403640
break;
36413641
case ISP:
3642-
v4l2_disable_ioctl(vfd, VIDIOC_ENCODER_CMD);
3643-
v4l2_disable_ioctl(vfd, VIDIOC_TRY_ENCODER_CMD);
36443642
v4l2_disable_ioctl(vfd, VIDIOC_DECODER_CMD);
36453643
v4l2_disable_ioctl(vfd, VIDIOC_TRY_DECODER_CMD);
36463644
v4l2_disable_ioctl(vfd, VIDIOC_S_PARM);
@@ -3649,8 +3647,6 @@ static int bcm2835_codec_create(struct bcm2835_codec_driver *drv,
36493647
video_nr = isp_video_nr;
36503648
break;
36513649
case DEINTERLACE:
3652-
v4l2_disable_ioctl(vfd, VIDIOC_ENCODER_CMD);
3653-
v4l2_disable_ioctl(vfd, VIDIOC_TRY_ENCODER_CMD);
36543650
v4l2_disable_ioctl(vfd, VIDIOC_DECODER_CMD);
36553651
v4l2_disable_ioctl(vfd, VIDIOC_TRY_DECODER_CMD);
36563652
v4l2_disable_ioctl(vfd, VIDIOC_S_PARM);

0 commit comments

Comments
 (0)