ov5670.c (ef1c4a6fa91bbbe9b09f770d28eba31a9edf770c) | ov5670.c (d2dc57b10ae2bd2e2e92ce26f2aaf24bcee17c53) |
---|---|
1/* 2 * Copyright (c) 2017 Intel Corporation. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License version 6 * 2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 2216 unchanged lines hidden (view full) --- 2225 const struct ov5670_mode *mode; 2226 s32 vblank_def; 2227 s32 h_blank; 2228 2229 mutex_lock(&ov5670->mutex); 2230 2231 fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10; 2232 | 1/* 2 * Copyright (c) 2017 Intel Corporation. 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License version 6 * 2 as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 2216 unchanged lines hidden (view full) --- 2225 const struct ov5670_mode *mode; 2226 s32 vblank_def; 2227 s32 h_blank; 2228 2229 mutex_lock(&ov5670->mutex); 2230 2231 fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10; 2232 |
2233 mode = v4l2_find_nearest_size(supported_modes, width, height, | 2233 mode = v4l2_find_nearest_size(supported_modes, 2234 ARRAY_SIZE(supported_modes), 2235 width, height, |
2234 fmt->format.width, fmt->format.height); 2235 ov5670_update_pad_format(mode, fmt); 2236 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { 2237 *v4l2_subdev_get_try_format(sd, cfg, fmt->pad) = fmt->format; 2238 } else { 2239 ov5670->cur_mode = mode; 2240 __v4l2_ctrl_s_ctrl(ov5670->link_freq, mode->link_freq_index); 2241 __v4l2_ctrl_s_ctrl_int64( --- 347 unchanged lines hidden --- | 2236 fmt->format.width, fmt->format.height); 2237 ov5670_update_pad_format(mode, fmt); 2238 if (fmt->which == V4L2_SUBDEV_FORMAT_TRY) { 2239 *v4l2_subdev_get_try_format(sd, cfg, fmt->pad) = fmt->format; 2240 } else { 2241 ov5670->cur_mode = mode; 2242 __v4l2_ctrl_s_ctrl(ov5670->link_freq, mode->link_freq_index); 2243 __v4l2_ctrl_s_ctrl_int64( --- 347 unchanged lines hidden --- |