History

[media] v4l2: Add standard controls for FM receivers

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

Andrey Smirnov committed 13 years ago

Commit aec330a1 parent af720c72 files · +24 −3Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/v4l2-controls.h+13−0
@@ -59,6 +59,7 @@ · 58 unmodified lines
5959 #define V4L2_CTRL_CLASS_IMAGE_SOURCE 0x009e0000 /* Image source controls */
6060 #define V4L2_CTRL_CLASS_IMAGE_PROC 0x009f0000 /* Image processing controls */
6161 #define V4L2_CTRL_CLASS_DV 0x00a00000 /* Digital Video controls */
62+#define V4L2_CTRL_CLASS_FM_RX 0x00a10000 /* Digital Video controls */
6263
6364 /* User-class control IDs */
6465
@@ -835,4 +836,16 @@ enum v4l2_dv_rgb_range { · 770 unmodified lines
835836 #define V4L2_CID_DV_RX_POWER_PRESENT (V4L2_CID_DV_CLASS_BASE + 100)
836837 #define V4L2_CID_DV_RX_RGB_RANGE (V4L2_CID_DV_CLASS_BASE + 101)
837838
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+
838851 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t