Skip to content

Commit 4968b02

Browse files
committed
drivers: media: cfe: Add remap entries for mono formats
The 8-bit and 16-bit mono formats were missing the appropriate remap entries in the format table. Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
1 parent 5b3c219 commit 4968b02

File tree

1 file changed

+2
-0
lines changed
  • drivers/media/platform/raspberrypi/rp1_cfe

1 file changed

+2
-0
lines changed

drivers/media/platform/raspberrypi/rp1_cfe/cfe_fmts.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ static const struct cfe_fmt formats[] = {
256256
.code = MEDIA_BUS_FMT_Y8_1X8,
257257
.depth = 8,
258258
.csi_dt = MIPI_CSI2_DT_RAW8,
259+
.remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
259260
},
260261
{
261262
.fourcc = V4L2_PIX_FMT_Y10P,
@@ -284,6 +285,7 @@ static const struct cfe_fmt formats[] = {
284285
.depth = 16,
285286
.csi_dt = MIPI_CSI2_DT_RAW16,
286287
.flags = CFE_FORMAT_FLAG_FE_OUT,
288+
.remap = { V4L2_PIX_FMT_Y16, V4L2_PIX_FMT_PISP_COMP1_MONO },
287289
},
288290
{
289291
.fourcc = V4L2_PIX_FMT_PISP_COMP1_MONO,

0 commit comments

Comments
 (0)