/* PiSP Compressed Mode 1 */
{
.fourcc = V4L2_PIX_FMT_PISP_COMP1_RGGB,
- .code = MEDIA_BUS_FMT_PISP_COMP1_RGGB,
+ .code = MEDIA_BUS_FMT_SRGGB16_1X16,
.depth = 8,
.flags = CFE_FORMAT_FLAG_FE_OUT,
},
{
.fourcc = V4L2_PIX_FMT_PISP_COMP1_BGGR,
- .code = MEDIA_BUS_FMT_PISP_COMP1_BGGR,
+ .code = MEDIA_BUS_FMT_SBGGR16_1X16,
.depth = 8,
.flags = CFE_FORMAT_FLAG_FE_OUT,
},
{
.fourcc = V4L2_PIX_FMT_PISP_COMP1_GBRG,
- .code = MEDIA_BUS_FMT_PISP_COMP1_GBRG,
+ .code = MEDIA_BUS_FMT_SGBRG16_1X16,
.depth = 8,
.flags = CFE_FORMAT_FLAG_FE_OUT,
},
{
.fourcc = V4L2_PIX_FMT_PISP_COMP1_GRBG,
- .code = MEDIA_BUS_FMT_PISP_COMP1_GRBG,
+ .code = MEDIA_BUS_FMT_SGRBG16_1X16,
.depth = 8,
.flags = CFE_FORMAT_FLAG_FE_OUT,
},
/* Frontend formats */
{
.fourcc = V4L2_META_FMT_RPI_FE_CFG,
+ .code = MEDIA_BUS_FMT_FIXED,
.flags = CFE_FORMAT_FLAG_META_OUT,
},
{
.fourcc = V4L2_META_FMT_RPI_FE_STATS,
+ .code = MEDIA_BUS_FMT_FIXED,
.flags = CFE_FORMAT_FLAG_META_CAP,
},
};
fmt = v4l2_subdev_get_pad_format(sd, state, FE_CONFIG_PAD);
*fmt = cfe_default_meta_format;
- fmt->code = MEDIA_BUS_FMT_PISP_FE_CONFIG;
+ fmt->code = MEDIA_BUS_FMT_FIXED;
fmt = v4l2_subdev_get_pad_format(sd, state, FE_OUTPUT0_PAD);
*fmt = cfe_default_format;
fmt = v4l2_subdev_get_pad_format(sd, state, FE_STATS_PAD);
*fmt = cfe_default_meta_format;
- fmt->code = MEDIA_BUS_FMT_PISP_FE_STATS;
+ fmt->code = MEDIA_BUS_FMT_FIXED;
return 0;
}
break;
- case FE_CONFIG_PAD:
- format->format.code = MEDIA_BUS_FMT_PISP_FE_CONFIG;
- break;
-
case FE_STATS_PAD:
- format->format.code = MEDIA_BUS_FMT_PISP_FE_STATS;
+ case FE_CONFIG_PAD:
+ format->format.code = MEDIA_BUS_FMT_FIXED;
break;
}
/* Sensor ancillary metadata formats - next is 0x7002 */
#define MEDIA_BUS_FMT_SENSOR_DATA 0x7002
-/* PiSP Formats */
-#define MEDIA_BUS_FMT_PISP_COMP1_RGGB 0x8001
-#define MEDIA_BUS_FMT_PISP_COMP1_GRBG 0x8002
-#define MEDIA_BUS_FMT_PISP_COMP1_GBRG 0x8003
-#define MEDIA_BUS_FMT_PISP_COMP1_BGGR 0x8004
-#define MEDIA_BUS_FMT_PISP_COMP2_RGGB 0x8005
-#define MEDIA_BUS_FMT_PISP_COMP2_GRBG 0x8006
-#define MEDIA_BUS_FMT_PISP_COMP2_GBRG 0x8007
-#define MEDIA_BUS_FMT_PISP_COMP2_BGGR 0x8008
-
-#define MEDIA_BUS_FMT_PISP_FE_CONFIG 0x8100
-#define MEDIA_BUS_FMT_PISP_FE_STATS 0x8101
-#define MEDIA_BUS_FMT_PISP_BE_CONFIG 0x8200
-
#endif /* __LINUX_MEDIA_BUS_FORMAT_H */