staging: bcm2835-codec: Fix up for 6.8 - use ignore_cap_streaming

Drops downstream patch to v4l2_mem2mem, and uses the new mainline
flag to achieve the same functionality

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
Dave Stevenson
2024-02-05 11:22:55 +00:00
committed by Naushir Patuck
parent 4c35b3a2ad
commit d8467deca1

View File

@@ -3523,6 +3523,8 @@ static int bcm2835_codec_open(struct file *file)
v4l2_m2m_set_src_buffered(ctx->fh.m2m_ctx, true); v4l2_m2m_set_src_buffered(ctx->fh.m2m_ctx, true);
v4l2_m2m_set_dst_buffered(ctx->fh.m2m_ctx, true); v4l2_m2m_set_dst_buffered(ctx->fh.m2m_ctx, true);
ctx->fh.m2m_ctx->ignore_cap_streaming = true;
v4l2_fh_add(&ctx->fh); v4l2_fh_add(&ctx->fh);
atomic_inc(&dev->num_inst); atomic_inc(&dev->num_inst);