All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	Jonathan Corbet <corbet@lwn.net>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-doc@vger.kernel.org
Subject: [PATCH 24/39] [media] v4l-dv-timings.h: Add to device-drivers DocBook
Date: Sat, 22 Aug 2015 14:28:09 -0300	[thread overview]
Message-ID: <487672e3c1af170996f52dd8228fff685814af83.1440264165.git.mchehab@osg.samsung.com> (raw)
In-Reply-To: <cover.1440264165.git.mchehab@osg.samsung.com>
In-Reply-To: <cover.1440264165.git.mchehab@osg.samsung.com>

There are already markups for documentation at v4l-dv-timings.h,
however, they're not properly formatted.

Convert them to the right format and add this file to
the device-drivers DocBook.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

diff --git a/Documentation/DocBook/device-drivers.tmpl b/Documentation/DocBook/device-drivers.tmpl
index 46e6818b95ce..30ba2cf2735a 100644
--- a/Documentation/DocBook/device-drivers.tmpl
+++ b/Documentation/DocBook/device-drivers.tmpl
@@ -233,8 +233,8 @@ X!Isound/sound_firmware.c
 !Idrivers/media/dvb-core/dvb_ringbuffer.h
 !Iinclude/media/v4l2-ctrls.h
 !Iinclude/media/v4l2-event.h
+!Iinclude/media/v4l2-dv-timings.h
 <!-- FIXME: Removed for now due to document generation inconsistency
-X!Iinclude/media/v4l2-dv-timings.h
 X!Iinclude/media/v4l2-mediabus.h
 X!Iinclude/media/videobuf2-memops.h
 X!Iinclude/media/videobuf2-core.h
diff --git a/include/media/v4l2-dv-timings.h b/include/media/v4l2-dv-timings.h
index e18a653549cd..b6130b50a0f1 100644
--- a/include/media/v4l2-dv-timings.h
+++ b/include/media/v4l2-dv-timings.h
@@ -23,11 +23,14 @@
 
 #include <linux/videodev2.h>
 
-/** v4l2_dv_timings_presets: list of all dv_timings presets.
+/**
+ * v4l2_dv_timings_presets: list of all dv_timings presets.
  */
 extern const struct v4l2_dv_timings v4l2_dv_timings_presets[];
 
-/** v4l2_check_dv_timings_fnc - timings check callback
+/**
+ * v4l2_check_dv_timings_fnc - timings check callback
+ *
  * @t: the v4l2_dv_timings struct.
  * @handle: a handle from the driver.
  *
@@ -35,83 +38,95 @@ extern const struct v4l2_dv_timings v4l2_dv_timings_presets[];
  */
 typedef bool v4l2_check_dv_timings_fnc(const struct v4l2_dv_timings *t, void *handle);
 
-/** v4l2_valid_dv_timings() - are these timings valid?
-  * @t:	  the v4l2_dv_timings struct.
-  * @cap: the v4l2_dv_timings_cap capabilities.
-  * @fnc: callback to check if this timing is OK. May be NULL.
-  * @fnc_handle: a handle that is passed on to @fnc.
-  *
-  * Returns true if the given dv_timings struct is supported by the
-  * hardware capabilities and the callback function (if non-NULL), returns
-  * false otherwise.
-  */
+/**
+ * v4l2_valid_dv_timings() - are these timings valid?
+ *
+ * @t:	  the v4l2_dv_timings struct.
+ * @cap: the v4l2_dv_timings_cap capabilities.
+ * @fnc: callback to check if this timing is OK. May be NULL.
+ * @fnc_handle: a handle that is passed on to @fnc.
+ *
+ * Returns true if the given dv_timings struct is supported by the
+ * hardware capabilities and the callback function (if non-NULL), returns
+ * false otherwise.
+ */
 bool v4l2_valid_dv_timings(const struct v4l2_dv_timings *t,
 			   const struct v4l2_dv_timings_cap *cap,
 			   v4l2_check_dv_timings_fnc fnc,
 			   void *fnc_handle);
 
-/** v4l2_enum_dv_timings_cap() - Helper function to enumerate possible DV timings based on capabilities
-  * @t:	  the v4l2_enum_dv_timings struct.
-  * @cap: the v4l2_dv_timings_cap capabilities.
-  * @fnc: callback to check if this timing is OK. May be NULL.
-  * @fnc_handle: a handle that is passed on to @fnc.
-  *
-  * This enumerates dv_timings using the full list of possible CEA-861 and DMT
-  * timings, filtering out any timings that are not supported based on the
-  * hardware capabilities and the callback function (if non-NULL).
-  *
-  * If a valid timing for the given index is found, it will fill in @t and
-  * return 0, otherwise it returns -EINVAL.
-  */
+/**
+ * v4l2_enum_dv_timings_cap() - Helper function to enumerate possible DV
+ *	 timings based on capabilities
+ *
+ * @t:	  the v4l2_enum_dv_timings struct.
+ * @cap: the v4l2_dv_timings_cap capabilities.
+ * @fnc: callback to check if this timing is OK. May be NULL.
+ * @fnc_handle: a handle that is passed on to @fnc.
+ *
+ * This enumerates dv_timings using the full list of possible CEA-861 and DMT
+ * timings, filtering out any timings that are not supported based on the
+ * hardware capabilities and the callback function (if non-NULL).
+ *
+ * If a valid timing for the given index is found, it will fill in @t and
+ * return 0, otherwise it returns -EINVAL.
+ */
 int v4l2_enum_dv_timings_cap(struct v4l2_enum_dv_timings *t,
 			     const struct v4l2_dv_timings_cap *cap,
 			     v4l2_check_dv_timings_fnc fnc,
 			     void *fnc_handle);
 
-/** v4l2_find_dv_timings_cap() - Find the closest timings struct
-  * @t:	  the v4l2_enum_dv_timings struct.
-  * @cap: the v4l2_dv_timings_cap capabilities.
-  * @pclock_delta: maximum delta between t->pixelclock and the timing struct
-  *		under consideration.
-  * @fnc: callback to check if a given timings struct is OK. May be NULL.
-  * @fnc_handle: a handle that is passed on to @fnc.
-  *
-  * This function tries to map the given timings to an entry in the
-  * full list of possible CEA-861 and DMT timings, filtering out any timings
-  * that are not supported based on the hardware capabilities and the callback
-  * function (if non-NULL).
-  *
-  * On success it will fill in @t with the found timings and it returns true.
-  * On failure it will return false.
-  */
+/**
+ * v4l2_find_dv_timings_cap() - Find the closest timings struct
+ *
+ * @t:	  the v4l2_enum_dv_timings struct.
+ * @cap: the v4l2_dv_timings_cap capabilities.
+ * @pclock_delta: maximum delta between t->pixelclock and the timing struct
+ *		under consideration.
+ * @fnc: callback to check if a given timings struct is OK. May be NULL.
+ * @fnc_handle: a handle that is passed on to @fnc.
+ *
+ * This function tries to map the given timings to an entry in the
+ * full list of possible CEA-861 and DMT timings, filtering out any timings
+ * that are not supported based on the hardware capabilities and the callback
+ * function (if non-NULL).
+ *
+ * On success it will fill in @t with the found timings and it returns true.
+ * On failure it will return false.
+ */
 bool v4l2_find_dv_timings_cap(struct v4l2_dv_timings *t,
 			      const struct v4l2_dv_timings_cap *cap,
 			      unsigned pclock_delta,
 			      v4l2_check_dv_timings_fnc fnc,
 			      void *fnc_handle);
 
-/** v4l2_match_dv_timings() - do two timings match?
-  * @measured:	  the measured timings data.
-  * @standard:	  the timings according to the standard.
-  * @pclock_delta: maximum delta in Hz between standard->pixelclock and
-  * 		the measured timings.
-  *
-  * Returns true if the two timings match, returns false otherwise.
-  */
+/**
+ * v4l2_match_dv_timings() - do two timings match?
+ *
+ * @measured:	  the measured timings data.
+ * @standard:	  the timings according to the standard.
+ * @pclock_delta: maximum delta in Hz between standard->pixelclock and
+ * 		the measured timings.
+ *
+ * Returns true if the two timings match, returns false otherwise.
+ */
 bool v4l2_match_dv_timings(const struct v4l2_dv_timings *measured,
 			   const struct v4l2_dv_timings *standard,
 			   unsigned pclock_delta);
 
-/** v4l2_print_dv_timings() - log the contents of a dv_timings struct
-  * @dev_prefix:device prefix for each log line.
-  * @prefix:	additional prefix for each log line, may be NULL.
-  * @t:		the timings data.
-  * @detailed:	if true, give a detailed log.
-  */
+/**
+ * v4l2_print_dv_timings() - log the contents of a dv_timings struct
+ * @dev_prefix:device prefix for each log line.
+ * @prefix:	additional prefix for each log line, may be NULL.
+ * @t:		the timings data.
+ * @detailed:	if true, give a detailed log.
+ */
 void v4l2_print_dv_timings(const char *dev_prefix, const char *prefix,
 			   const struct v4l2_dv_timings *t, bool detailed);
 
-/** v4l2_detect_cvt - detect if the given timings follow the CVT standard
+/**
+ * v4l2_detect_cvt - detect if the given timings follow the CVT standard
+ *
  * @frame_height - the total height of the frame (including blanking) in lines.
  * @hfreq - the horizontal frequency in Hz.
  * @vsync - the height of the vertical sync in lines.
@@ -131,7 +146,9 @@ bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync,
 		unsigned active_width, u32 polarities, bool interlaced,
 		struct v4l2_dv_timings *fmt);
 
-/** v4l2_detect_gtf - detect if the given timings follow the GTF standard
+/**
+ * v4l2_detect_gtf - detect if the given timings follow the GTF standard
+ *
  * @frame_height - the total height of the frame (including blanking) in lines.
  * @hfreq - the horizontal frequency in Hz.
  * @vsync - the height of the vertical sync in lines.
@@ -153,8 +170,10 @@ bool v4l2_detect_gtf(unsigned frame_height, unsigned hfreq, unsigned vsync,
 		u32 polarities, bool interlaced, struct v4l2_fract aspect,
 		struct v4l2_dv_timings *fmt);
 
-/** v4l2_calc_aspect_ratio - calculate the aspect ratio based on bytes
+/**
+ * v4l2_calc_aspect_ratio - calculate the aspect ratio based on bytes
  *	0x15 and 0x16 from the EDID.
+ *
  * @hor_landscape - byte 0x15 from the EDID.
  * @vert_portrait - byte 0x16 from the EDID.
  *
-- 
2.4.3


  parent reply	other threads:[~2015-08-22 17:28 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-22 17:27 [PATCH 00/39] Document the kABI for the media subsystem Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 01/39] [media] DocBook: fix an unbalanced <para> tag Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 02/39] [media] DocBook/device-drivers: Add drivers/media core stuff Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 03/39] [media] Docbook: Fix description of struct media_devnode Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 04/39] [media] DocBook/media/Makefile: Avoid make htmldocs to fail Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 05/39] [media] Docbook: Fix comments at v4l2-async.h Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 06/39] [media] Docbook: Fix s_rx_carrier_range parameter description Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 07/39] [media] Docbook: fix comments at v4l2-flash-led-class.h Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 08/39] [media] Docbook: Fix comments at v4l2-mem2mem.h Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 09/39] [media] v4l2-subdev: convert documentation to the right format Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 10/39] [media] v4l2-subdev: Add description for core ioctl handlers Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 11/39] [media] v4l2-subdev: Add description for radio " Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 12/39] [media] v4l2-subdev: reorder the v4l2_subdev_video_ops comments Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 13/39] [media] v4l2_subdev: describe ioctl parms at v4l2_subdev_video_ops Mauro Carvalho Chehab
2015-08-22 17:27 ` [PATCH 14/39] [media] v4l2_subdev: describe ioctl parms at the remaining structs Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 15/39] [media] v4l2-subdev: add remaining argument descriptions Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 16/39] [media] DocBook: add dvb_ca_en50221.h to documentation Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 17/39] [media] DocBook: add dvb_frontend.h " Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 18/39] [media] DocBook: add dvb_math.h " Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 19/39] [media] DocBook: add dvb_ringbuffer.h " Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 20/39] [media] v4l2-ctrls.h: add to device-drivers DocBook Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 21/39] [media] v4l2-ctls: don't document v4l2_ctrl_fill() Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 22/39] [media] v4l2-ctrls.h: Document a few missing arguments Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 23/39] [media] v4l2-event.h: fix comments and add to DocBook Mauro Carvalho Chehab
2015-08-22 17:28 ` Mauro Carvalho Chehab [this message]
2015-08-22 17:28 ` [PATCH 25/39] [media] videobuf2-core: Add it to device-drivers DocBook Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 26/39] [media] videobuf2-memops.h: add " Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 27/39] [media] v4l2-mediabus: Add to DocBook Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 28/39] [media] DocBook: Better organize media devices Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 29/39] [media] dvb_frontend: document dvb_frontend_tune_settings Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 30/39] [media] add documentation for struct dvb_tuner_info Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 31/39] [media] dvb_frontend.h: get rid of dvbfe_modcod Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 32/39] [media] Docbook: Document struct analog_parameters Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 33/39] fixup: dvb_tuner_info Mauro Carvalho Chehab
2015-08-22 17:52   ` Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 34/39] [media] dvb_frontend.h: Document struct dvb_tuner_ops Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 35/39] [media] dvb_frontend.h: document struct analog_demod_ops Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 36/39] [media] dvb: Use DVBFE_ALGO_HW where applicable Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 37/39] [media] dvb-frontend.h: document struct dvb_frontend_ops Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 38/39] [media] dvb-frontend.h: document struct dtv_frontend_properties Mauro Carvalho Chehab
2015-08-22 17:28 ` [PATCH 39/39] [media] dvb_frontend.h: document the struct dvb_frontend Mauro Carvalho Chehab
2015-08-23  9:43 ` [PATCH 00/39] Document the kABI for the media subsystem Jonathan Corbet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=487672e3c1af170996f52dd8228fff685814af83.1440264165.git.mchehab@osg.samsung.com \
    --to=mchehab@osg.samsung.com \
    --cc=corbet@lwn.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.