.. | .. |
---|
541 | 541 | struct gc5024 *gc5024 = to_gc5024(sd); |
---|
542 | 542 | const struct gc5024_mode *mode = gc5024->cur_mode; |
---|
543 | 543 | |
---|
544 | | - mutex_lock(&gc5024->mutex); |
---|
545 | 544 | fi->interval = mode->max_fps; |
---|
546 | | - mutex_unlock(&gc5024->mutex); |
---|
547 | 545 | |
---|
548 | 546 | return 0; |
---|
549 | 547 | } |
---|
.. | .. |
---|
901 | 899 | if (fie->index >= gc5024->cfg_num) |
---|
902 | 900 | return -EINVAL; |
---|
903 | 901 | |
---|
904 | | - if (fie->code != MEDIA_BUS_FMT_SBGGR10_1X10) |
---|
905 | | - return -EINVAL; |
---|
906 | | - |
---|
| 902 | + fie->code = MEDIA_BUS_FMT_SBGGR10_1X10; |
---|
907 | 903 | fie->width = supported_modes[fie->index].width; |
---|
908 | 904 | fie->height = supported_modes[fie->index].height; |
---|
909 | 905 | fie->interval = supported_modes[fie->index].max_fps; |
---|