.. | .. |
---|
858 | 858 | { |
---|
859 | 859 | struct gc0329 *gc0329 = to_gc0329(sd); |
---|
860 | 860 | |
---|
861 | | - mutex_lock(&gc0329->lock); |
---|
862 | 861 | fi->interval = gc0329->frame_size->max_fps; |
---|
863 | | - mutex_unlock(&gc0329->lock); |
---|
864 | 862 | |
---|
865 | 863 | return 0; |
---|
866 | 864 | } |
---|
.. | .. |
---|
903 | 901 | if (fie->index >= ARRAY_SIZE(gc0329_framesizes)) |
---|
904 | 902 | return -EINVAL; |
---|
905 | 903 | |
---|
906 | | - if (fie->code != MEDIA_BUS_FMT_YUYV8_2X8) |
---|
907 | | - return -EINVAL; |
---|
908 | | - |
---|
| 904 | + fie->code = MEDIA_BUS_FMT_YUYV8_2X8; |
---|
909 | 905 | fie->width = gc0329_framesizes[fie->index].width; |
---|
910 | 906 | fie->height = gc0329_framesizes[fie->index].height; |
---|
911 | 907 | fie->interval = gc0329_framesizes[fie->index].max_fps; |
---|