forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/i2c/gc5024.c
....@@ -541,9 +541,7 @@
541541 struct gc5024 *gc5024 = to_gc5024(sd);
542542 const struct gc5024_mode *mode = gc5024->cur_mode;
543543
544
- mutex_lock(&gc5024->mutex);
545544 fi->interval = mode->max_fps;
546
- mutex_unlock(&gc5024->mutex);
547545
548546 return 0;
549547 }
....@@ -901,9 +899,7 @@
901899 if (fie->index >= gc5024->cfg_num)
902900 return -EINVAL;
903901
904
- if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10)
905
- return -EINVAL;
906
-
902
+ fie->code = MEDIA_BUS_FMT_SBGGR10_1X10;
907903 fie->width = supported_modes[fie->index].width;
908904 fie->height = supported_modes[fie->index].height;
909905 fie->interval = supported_modes[fie->index].max_fps;