forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/media/i2c/ov7750.c
....@@ -941,9 +941,7 @@
941941 if (fie->index >= ARRAY_SIZE(supported_modes))
942942 return -EINVAL;
943943
944
- if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10)
945
- return -EINVAL;
946
-
944
+ fie->code = MEDIA_BUS_FMT_SBGGR10_1X10;
947945 fie->width = supported_modes[fie->index].width;
948946 fie->height = supported_modes[fie->index].height;
949947 fie->interval = supported_modes[fie->index].max_fps;