Mark McClelland wrote:

> - A way to query signal strength (is v4l2_tuner.signal boolean, like
> v4l2_input.signal?) and demodulator status (PLL lock, EQU lock,
> etc...). Important since ATSC terrestrial reception is so flaky :)

Just had a thought on this... since v4l2_input.signal already appears to
be boolean, why not make it a bitfield? Rename it to "status", and add
some flags like:

/* General */
#define V4L2_IN_ST_NO_POWER    0x00000001  /* Attached device is off */
#define V4L2_IN_ST_NO_SIGNAL   0x00000002
#define V4L2_IN_ST_NO_COLOR    0x00000004

/* Analog */
#define V4L2_IN_ST_NO_H_LOCK   0x00000100  /* No horizontal sync lock */
#define V4L2_IN_ST_COLOR_KILL  0x00000200  /* Color killer is active */

/* Digital */
#define V4L2_IN_ST_NO_SYNC     0x00010000  /* No synchronization lock */
#define V4L2_IN_ST_NO_EQU      0x00020000  /* No equalizer lock */
#define V4L2_IN_ST_NO_CARRIER  0x00040000  /* Carrier recovery failed */

/* VCR and set-top box */
#define V4L2_IN_ST_MACROVISION 0x01000000  /* Macrovision detected */
#define V4L2_IN_ST_NO_ACCESS   0x02000000  /* Conditional access denied */
#define V4L2_IN_ST_VTR         0x04000000  /* VTR time constant */

Why are some of them inverted? So that the driver doesn't have to lie
about the status in cases where it can't tell one way or the other.
Plus, a status of zero would generally mean that everyting is OK.

--
Mark McClelland
[EMAIL PROTECTED]








_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to