summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-dv-timings.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-08-15 13:02:40 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-08-24 09:26:05 +0200
commit0216dc2fe666b5cedba54df4c0be6ddc8eb352e1 (patch)
tree3a6c54c2ab4d66ff1ebcb401a7f19c8546e5d3f2 /include/media/v4l2-dv-timings.h
parent[media] ad9389b: change initial register configuration in ad9389b_setup() (diff)
downloadlinux-0216dc2fe666b5cedba54df4c0be6ddc8eb352e1.tar.xz
linux-0216dc2fe666b5cedba54df4c0be6ddc8eb352e1.zip
[media] v4l2-dv-timings: add v4l2_print_dv_timings helper
Drivers often have to log the contents of a dv_timings struct. Adding this helper will make it easier for drivers to do so. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/media/v4l2-dv-timings.h')
-rw-r--r--include/media/v4l2-dv-timings.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/v4l2-dv-timings.h b/include/media/v4l2-dv-timings.h
index 4c7bb5491658..696e5c2fd176 100644
--- a/include/media/v4l2-dv-timings.h
+++ b/include/media/v4l2-dv-timings.h
@@ -76,6 +76,15 @@ bool v4l_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.
+ */
+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
* @frame_height - the total height of the frame (including blanking) in lines.
* @hfreq - the horizontal frequency in Hz.