libipa: Add CameraSensorHelper for OV13858
Extend the CameraSensorHelper factory with support for an OV13858 sensor as found in the Soraka Chromebook. The datasheet states that low 7 bits are fraction bits, so the gain is calculated as gainCode=128*gain. According to the formula, it means m0=1 and c1=128. m1 then has to be 0, and c0=0. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
35e23837fa
commit
bda10cae5e
1 changed files with 10 additions and 0 deletions
|
@ -315,6 +315,16 @@ public:
|
|||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("ov5693", CameraSensorHelperOv5693)
|
||||
|
||||
class CameraSensorHelperOv13858 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
CameraSensorHelperOv13858()
|
||||
{
|
||||
analogueGainConstants_ = { AnalogueGainLinear, 1, 0, 0, 128 };
|
||||
}
|
||||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("ov13858", CameraSensorHelperOv13858)
|
||||
|
||||
#endif /* __DOXYGEN__ */
|
||||
|
||||
} /* namespace ipa */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue