.. | .. |
---|
1166 | 1166 | { |
---|
1167 | 1167 | struct gc2035 *gc2035 = to_gc2035(sd); |
---|
1168 | 1168 | |
---|
1169 | | - mutex_lock(&gc2035->lock); |
---|
1170 | 1169 | fi->interval = gc2035->frame_size->max_fps; |
---|
1171 | | - mutex_unlock(&gc2035->lock); |
---|
1172 | 1170 | |
---|
1173 | 1171 | return 0; |
---|
1174 | 1172 | } |
---|
.. | .. |
---|
1294 | 1292 | if (fie->index >= ARRAY_SIZE(gc2035_framesizes)) |
---|
1295 | 1293 | return -EINVAL; |
---|
1296 | 1294 | |
---|
1297 | | - if (fie->code != MEDIA_BUS_FMT_UYVY8_2X8) |
---|
1298 | | - return -EINVAL; |
---|
1299 | | - |
---|
| 1295 | + fie->code = MEDIA_BUS_FMT_UYVY8_2X8; |
---|
1300 | 1296 | fie->width = gc2035_framesizes[fie->index].width; |
---|
1301 | 1297 | fie->height = gc2035_framesizes[fie->index].height; |
---|
1302 | 1298 | fie->interval = gc2035_framesizes[fie->index].max_fps; |
---|