Camera v4l2 driver set default format on jetson xavier

Hi ,

I’m devoloping to port my customer camera base on ov5693.c in jetson xavier.My camera output format is MEDIA_BUS_FMT_UYVY8_2X8,it’s different with ov5693.But I don’t know where to change this parameter in ov5693.c.Could you kindly tell me how do I modify this parameter? Thanks a lot!

hello CalmCar,

since we don’t have reference sensor drives with YUV sensor formats.
suggest you refer to Topic 972192 and Topic 982245 to extend format supports.

Hi JerryChang,

You do not understand me.Before R32.1,Some macro definition in top of ov593.c

#define OV5693_DEFAULT_WIDTH	2592
#define OV5693_DEFAULT_HEIGHT	1944

Since R32.1,there is no macro definition any more

Now,I want to modify OV5693_DEFAULT_DATAFMT to MEDIA_BUS_FMT_UYVY8_2X8.So could you tell me where to modify default data format?

hello CalmCar,

please refer to below kernel source for the functions related to color format.


please also check L4T R32.1 Sensor Driver Programming Guide for details. thanks