mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 08:46:46 +00:00
[media] doc-rst: add soc-camera documentation
Convert it to ReST format and add it at media/v4l-drivers book. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
f1668f1d13
commit
c0d0138255
3 changed files with 32 additions and 22 deletions
|
@ -38,4 +38,5 @@ License".
|
|||
si470x
|
||||
si4713
|
||||
si476x
|
||||
soc-camera
|
||||
zr364xx
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
SI476x Driver Readme
|
||||
------------------------------------------------
|
||||
Copyright (C) 2013 Andrey Smirnov <andrew.smirnov@gmail.com>
|
||||
.. include:: <isonum.txt>
|
||||
|
||||
|
||||
The SI476x Driver
|
||||
=================
|
||||
|
||||
Copyright |copy| 2013 Andrey Smirnov <andrew.smirnov@gmail.com>
|
||||
|
||||
TODO for the driver
|
||||
------------------------------
|
||||
-------------------
|
||||
|
||||
- According to the SiLabs' datasheet it is possible to update the
|
||||
firmware of the radio chip in the run-time, thus bringing it to the
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
Soc-Camera Subsystem
|
||||
====================
|
||||
The Soc-Camera Drivers
|
||||
======================
|
||||
|
||||
Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
|
||||
|
||||
Terminology
|
||||
-----------
|
||||
|
@ -45,10 +47,14 @@ Camera host API
|
|||
|
||||
A host camera driver is registered using the
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
soc_camera_host_register(struct soc_camera_host *);
|
||||
|
||||
function. The host object can be initialized as follows:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
struct soc_camera_host *ici;
|
||||
ici->drv_name = DRV_NAME;
|
||||
ici->ops = &camera_host_ops;
|
||||
|
@ -58,6 +64,8 @@ function. The host object can be initialized as follows:
|
|||
|
||||
All camera host methods are passed in a struct soc_camera_host_ops:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
static struct soc_camera_host_ops camera_host_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.add = camera_add_device,
|
||||
|
@ -159,6 +167,3 @@ configure camera drivers to produce the FOURCC format, requested by the user,
|
|||
using the VIDIOC_S_FMT ioctl(). Apart from those standard format conversions,
|
||||
host drivers can also provide their own conversion rules by implementing a
|
||||
.get_formats and, if required, a .put_formats methods.
|
||||
|
||||
--
|
||||
Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
|
||||
|
|
Loading…
Reference in a new issue