forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/i2c/gc2375h.c
....@@ -653,9 +653,7 @@
653653 struct gc2375h *gc2375h = to_gc2375h(sd);
654654 const struct gc2375h_mode *mode = gc2375h->cur_mode;
655655
656
- mutex_lock(&gc2375h->mutex);
657656 fi->interval = mode->max_fps;
658
- mutex_unlock(&gc2375h->mutex);
659657
660658 return 0;
661659 }
....@@ -1000,9 +998,7 @@
1000998 if (fie->index >= gc2375h->cfg_num)
1001999 return -EINVAL;
10021000
1003
- if (fie->code != MEDIA_BUS_FMT_SRGGB10_1X10)
1004
- return -EINVAL;
1005
-
1001
+ fie->code = MEDIA_BUS_FMT_SRGGB10_1X10;
10061002 fie->width = supported_modes[fie->index].width;
10071003 fie->height = supported_modes[fie->index].height;
10081004 fie->interval = supported_modes[fie->index].max_fps;