Em 02-09-2010 12:57, raja_m...@ti.com escreveu:
> From: Raja Mani <raja_m...@ti.com>
> 
> Extend V4L2 CID list to support
>    1) FM RX Tuner controls
>    2) FM band
>    3) RSSI Threshold
>    4) Alternative Frequency

Hmm... no DocBooks for RSSI and "Alternative Frequency"... How do you expect me 
to review
new API additions if you aren't properly documenting and justifying the need 
for those
additions?

Cheers,
Mauro
> 
> Signed-off-by: Raja Mani <raja_m...@ti.com>
> Signed-off-by: Pramodh AG <pramodh...@ti.com>
> ---
>  include/linux/videodev2.h |   18 ++++++++++++++++++
>  1 files changed, 18 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
> index 7c99acf..2798137 100644
> --- a/include/linux/videodev2.h
> +++ b/include/linux/videodev2.h
> @@ -964,6 +964,7 @@ struct v4l2_writeback_ioctl_data {
>  #define V4L2_CTRL_CLASS_MPEG 0x00990000      /* MPEG-compression controls */
>  #define V4L2_CTRL_CLASS_CAMERA 0x009a0000    /* Camera class controls */
>  #define V4L2_CTRL_CLASS_FM_TX 0x009b0000     /* FM Modulator control class */
> +#define V4L2_CTRL_CLASS_FM_RX 0x009c0000     /* FM Tuner control class */
>  
>  #define V4L2_CTRL_ID_MASK              (0x0fffffff)
>  #define V4L2_CTRL_ID2CLASS(id)    ((id) & 0x0fff0000UL)
> @@ -1362,6 +1363,23 @@ enum v4l2_preemphasis {
>  #define V4L2_CID_TUNE_POWER_LEVEL            (V4L2_CID_FM_TX_CLASS_BASE + 
> 113)
>  #define V4L2_CID_TUNE_ANTENNA_CAPACITOR              
> (V4L2_CID_FM_TX_CLASS_BASE + 114)
>  
> +/* FM Tuner class control IDs */
> +#define V4L2_CID_FM_RX_CLASS_BASE            (V4L2_CTRL_CLASS_FM_RX | 0x900)
> +#define V4L2_CID_FM_RX_CLASS                 (V4L2_CTRL_CLASS_FM_RX | 1)
> +
> +#define V4L2_CID_FM_BAND                     (V4L2_CID_FM_RX_CLASS_BASE + 1)
> +enum v4l2_fm_band {
> +     V4L2_FM_BAND_OTHER      = 0,
> +     V4L2_FM_BAND_JAPAN      = 1,
> +     V4L2_FM_BAND_OIRT       = 2
> +};
> +#define V4L2_CID_RSSI_THRESHOLD                      
> (V4L2_CID_FM_RX_CLASS_BASE + 2)
> +#define V4L2_CID_TUNE_AF                     (V4L2_CID_FM_RX_CLASS_BASE + 3)
> +enum v4l2_tune_af {
> +     V4L2_FM_AF_OFF          = 0,
> +     V4L2_FM_AF_ON           = 1
> +};
> +
>  /*
>   *   T U N I N G
>   */

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to