From d0a33bc1c895166c75eaac17edb2203de9c301f8 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Fri, 29 Oct 2021 12:50:11 +0200 Subject: [PATCH] linux (RPi): temporarily revert video codec callback limit The callback limit can cause stalls in kodi and ffmpeg, revert the commit until a proper solution has been found. Signed-off-by: Matthias Reichl --- ...mp-revert-video-codec-callback-limit.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 packages/linux/patches/raspberrypi/linux-001-temp-revert-video-codec-callback-limit.patch diff --git a/packages/linux/patches/raspberrypi/linux-001-temp-revert-video-codec-callback-limit.patch b/packages/linux/patches/raspberrypi/linux-001-temp-revert-video-codec-callback-limit.patch new file mode 100644 index 0000000000..1d03d4a2f6 --- /dev/null +++ b/packages/linux/patches/raspberrypi/linux-001-temp-revert-video-codec-callback-limit.patch @@ -0,0 +1,32 @@ +From d93bee286143789995aa4ef2ffc195eaaff2d635 Mon Sep 17 00:00:00 2001 +From: Matthias Reichl +Date: Fri, 29 Oct 2021 12:48:42 +0200 +Subject: [PATCH] Revert "media: bcm2835-codec: Limit video callbacks" + +This reverts commit f814bfc5f4d3005eb266a1556be8b7b8770629bd. +--- + .../vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c | 8 -------- + 1 file changed, 8 deletions(-) + +diff --git a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c +index e8452c82d088..6078d6e2ace0 100644 +--- a/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c ++++ b/drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c +@@ -2510,14 +2510,6 @@ static int bcm2835_codec_create_component(struct bcm2835_codec_ctx *ctx) + MMAL_PARAMETER_VIDEO_STOP_ON_PAR_COLOUR_CHANGE, + &enable, + sizeof(enable)); +- +- enable = (unsigned int)-5; +- vchiq_mmal_port_parameter_set(dev->instance, +- &ctx->component->control, +- MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS, +- &enable, +- sizeof(enable)); +- + } else if (dev->role == DEINTERLACE) { + /* Select the default deinterlace algorithm. */ + int half_framerate = 0; +-- +2.30.2 +