.. | .. |
---|
653 | 653 | struct gc2375h *gc2375h = to_gc2375h(sd); |
---|
654 | 654 | const struct gc2375h_mode *mode = gc2375h->cur_mode; |
---|
655 | 655 | |
---|
656 | | - mutex_lock(&gc2375h->mutex); |
---|
657 | 656 | fi->interval = mode->max_fps; |
---|
658 | | - mutex_unlock(&gc2375h->mutex); |
---|
659 | 657 | |
---|
660 | 658 | return 0; |
---|
661 | 659 | } |
---|
.. | .. |
---|
1000 | 998 | if (fie->index >= gc2375h->cfg_num) |
---|
1001 | 999 | return -EINVAL; |
---|
1002 | 1000 | |
---|
1003 | | - if (fie->code != MEDIA_BUS_FMT_SRGGB10_1X10) |
---|
1004 | | - return -EINVAL; |
---|
1005 | | - |
---|
| 1001 | + fie->code = MEDIA_BUS_FMT_SRGGB10_1X10; |
---|
1006 | 1002 | fie->width = supported_modes[fie->index].width; |
---|
1007 | 1003 | fie->height = supported_modes[fie->index].height; |
---|
1008 | 1004 | fie->interval = supported_modes[fie->index].max_fps; |
---|