This commit introduces new class of standard controls V4L2_CTRL_CLASS_FM_RX. This class is intended to all controls pertaining to FM receiver chips. Also, two controls belonging to said class are added as a part of this commit: V4L2_CID_TUNE_DEEMPHASIS and V4L2_CID_RDS_RECEPTION. This patch is based on the code found in the patch by Manjunatha Halli [1] [1] http://lists-archives.com/linux-kernel/27641307-new-control-class-and-features-for-fm-rx.html
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -59,6 +59,7 @@ · 58 unmodified lines | |||
| 59 | #define V4L2_CTRL_CLASS_IMAGE_SOURCE 0x009e0000 /* Image source controls */ | 59 | #define V4L2_CTRL_CLASS_IMAGE_SOURCE 0x009e0000 /* Image source controls */ |
| 60 | #define V4L2_CTRL_CLASS_IMAGE_PROC 0x009f0000 /* Image processing controls */ | 60 | #define V4L2_CTRL_CLASS_IMAGE_PROC 0x009f0000 /* Image processing controls */ |
| 61 | #define V4L2_CTRL_CLASS_DV 0x00a00000 /* Digital Video controls */ | 61 | #define V4L2_CTRL_CLASS_DV 0x00a00000 /* Digital Video controls */ |
| 62 | #define V4L2_CTRL_CLASS_FM_RX 0x00a10000 /* Digital Video controls */ | ||
| 62 | 63 | ||
| 63 | /* User-class control IDs */ | 64 | /* User-class control IDs */ |
| 64 | 65 | ||
| @@ -835,4 +836,16 @@ enum v4l2_dv_rgb_range { · 770 unmodified lines | |||
| 835 | #define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100) | 836 | #define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100) |
| 836 | #define V4L2_CID_DV_RX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 101) | 837 | #define V4L2_CID_DV_RX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 101) |
| 837 | 838 | ||
| 839 | #define V4L2_CID_FM_RX_CLASS_BASE (V4L2_CTRL_CLASS_FM_RX | 0x900) | ||
| 840 | #define V4L2_CID_FM_RX_CLASS (V4L2_CTRL_CLASS_FM_RX | 1) | ||
| 841 | |||
| 842 | #define V4L2_CID_TUNE_DEEMPHASIS (V4L2_CID_FM_RX_CLASS_BASE + 1) | ||
| 843 | enum v4l2_deemphasis { | ||
| 844 | V4L2_DEEMPHASIS_DISABLED = V4L2_PREEMPHASIS_DISABLED, | ||
| 845 | V4L2_DEEMPHASIS_50_uS = V4L2_PREEMPHASIS_50_uS, | ||
| 846 | V4L2_DEEMPHASIS_75_uS = V4L2_PREEMPHASIS_75_uS, | ||
| 847 | }; | ||
| 848 | |||
| 849 | #define V4L2_CID_RDS_RECEPTION (V4L2_CID_FM_RX_CLASS_BASE + 2) | ||
| 850 | |||
| 838 | #endif | 851 | #endif |