Skip to content

Commit

Permalink
drivers: media: cfe: Increase default size of embedded buffer
Browse files Browse the repository at this point in the history
Increase the size of the default embedded buffer to 16k. This is done to
match what is advertised by the IMX219 driver and workaround a problem
where the embedded stream is not actually used. Without full streams API
support, the media pipeline validation will fail in these circumstances.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir authored and popcornmix committed Feb 23, 2024
1 parent 7dec51b commit b4b9b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ MODULE_PARM_DESC(verbose_debug, "verbose debugging messages");
#define MIN_WIDTH 16
#define MIN_HEIGHT 16
/* Default size of the embedded buffer */
#define DEFAULT_EMBEDDED_SIZE 8192
#define DEFAULT_EMBEDDED_SIZE 16384

const struct v4l2_mbus_framefmt cfe_default_format = {
.width = 640,
Expand All @@ -107,7 +107,7 @@ const struct v4l2_mbus_framefmt cfe_default_format = {
};

const struct v4l2_mbus_framefmt cfe_default_meta_format = {
.width = 8192,
.width = DEFAULT_EMBEDDED_SIZE,
.height = 1,
.code = MEDIA_BUS_FMT_SENSOR_DATA,
.field = V4L2_FIELD_NONE,
Expand Down

0 comments on commit b4b9b91

Please sign in to comment.