aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/dvb
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-04-09 15:36:49 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-14 17:29:48 -0400
commit4c12adad26f059fa207d6b07aa61f39bc459211b (patch)
treef903c40f998af698447faa89ff3a39b6da50d7e0 /include/uapi/linux/dvb
parent24d795d361b2cd5cb6a6915ad4df61db7a2a9bef (diff)
[media] dvb: Document FE_SCALE_DECIBEL units consistently
In comments and in the documentation, the units of properties marked with the FE_SCALE_DECIBEL scale are specified in terms of 1/1000 dB or 0.0001 dB. This is inconsistent, however, as 1/1000 is 0.001, not 0.0001. Note that the v4l-utils divide the value by 1000 for the signal strength suggesting that the 1/1000 is correct. Settle on millidecibels, ie. 1/1000dB or 0.001dB. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/uapi/linux/dvb')
-rw-r--r--include/uapi/linux/dvb/frontend.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/dvb/frontend.h b/include/uapi/linux/dvb/frontend.h
index c56d77c496a5..466f56997272 100644
--- a/include/uapi/linux/dvb/frontend.h
+++ b/include/uapi/linux/dvb/frontend.h
@@ -467,7 +467,7 @@ struct dtv_cmds_h {
467 * @FE_SCALE_NOT_AVAILABLE: That QoS measure is not available. That 467 * @FE_SCALE_NOT_AVAILABLE: That QoS measure is not available. That
468 * could indicate a temporary or a permanent 468 * could indicate a temporary or a permanent
469 * condition. 469 * condition.
470 * @FE_SCALE_DECIBEL: The scale is measured in 0.0001 dB steps, typically 470 * @FE_SCALE_DECIBEL: The scale is measured in 0.001 dB steps, typically
471 * used on signal measures. 471 * used on signal measures.
472 * @FE_SCALE_RELATIVE: The scale is a relative percentual measure, 472 * @FE_SCALE_RELATIVE: The scale is a relative percentual measure,
473 * ranging from 0 (0%) to 0xffff (100%). 473 * ranging from 0 (0%) to 0xffff (100%).
@@ -516,7 +516,7 @@ struct dtv_stats {
516 __u8 scale; /* enum fecap_scale_params type */ 516 __u8 scale; /* enum fecap_scale_params type */
517 union { 517 union {
518 __u64 uvalue; /* for counters and relative scales */ 518 __u64 uvalue; /* for counters and relative scales */
519 __s64 svalue; /* for 0.0001 dB measures */ 519 __s64 svalue; /* for 0.001 dB measures */
520 }; 520 };
521} __attribute__ ((packed)); 521} __attribute__ ((packed));
522 522