Skip to content
Commit 90ab0400 authored by David Plowman's avatar David Plowman Committed by popcornmix
Browse files

media: ov5647: Add basic support for multiple sensor modes.



Specifically:

Added a structure ov5647_mode and a list of supported_modes (though no
actual new modes as yet). The state object points to the "current mode".

ov5647_enum_mbus_code, ov5647_enum_frame_size, ov5647_set_fmt and
ov5647_get_fmt all needed upgrading to cope with multiple modes.

__sensor_init (which writes all the registers) is now called by
ov5647_stream_on (once the mode is known) rather than by
ov5647_sensor_power.

Signed-off-by: default avatarDavid Plowman <david.plowman@raspberrypi.com>
Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
parent a5ce683f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment