90cfdc4ebe004c64ba17f80318f11d21751cd5ef
[openwrt/staging/ansuel.git] /
1 From beba81b0b77268f72d717ab8ec98afe11a176ee0 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Mon, 5 Feb 2024 12:12:17 +0000
4 Subject: [PATCH 1271/1295] drivers: media: cfe: Increase default size of
5 embedded buffer
6
7 Increase the size of the default embedded buffer to 16k. This is done to
8 match what is advertised by the IMX219 driver and workaround a problem
9 where the embedded stream is not actually used. Without full streams API
10 support, the media pipeline validation will fail in these circumstances.
11
12 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
13 ---
14 drivers/media/platform/raspberrypi/rp1_cfe/cfe.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 --- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
18 +++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
19 @@ -93,7 +93,7 @@ MODULE_PARM_DESC(verbose_debug, "verbose
20 #define MIN_WIDTH 16
21 #define MIN_HEIGHT 16
22 /* Default size of the embedded buffer */
23 -#define DEFAULT_EMBEDDED_SIZE 8192
24 +#define DEFAULT_EMBEDDED_SIZE 16384
25
26 const struct v4l2_mbus_framefmt cfe_default_format = {
27 .width = 640,
28 @@ -107,7 +107,7 @@ const struct v4l2_mbus_framefmt cfe_defa
29 };
30
31 const struct v4l2_mbus_framefmt cfe_default_meta_format = {
32 - .width = 8192,
33 + .width = DEFAULT_EMBEDDED_SIZE,
34 .height = 1,
35 .code = MEDIA_BUS_FMT_SENSOR_DATA,
36 .field = V4L2_FIELD_NONE,