mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
V4L/DVB (12543): v4l: introduce string control support.
The upcoming RDS encoder needs support for string controls. This patch implements the core implementation. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
a138ebcf82
commit
6b5a9492ca
4 changed files with 57 additions and 26 deletions
|
@ -167,6 +167,7 @@ enum v4l2_ctrl_type {
|
|||
V4L2_CTRL_TYPE_BUTTON = 4,
|
||||
V4L2_CTRL_TYPE_INTEGER64 = 5,
|
||||
V4L2_CTRL_TYPE_CTRL_CLASS = 6,
|
||||
V4L2_CTRL_TYPE_STRING = 7,
|
||||
};
|
||||
|
||||
enum v4l2_tuner_type {
|
||||
|
@ -795,11 +796,12 @@ struct v4l2_control {
|
|||
|
||||
struct v4l2_ext_control {
|
||||
__u32 id;
|
||||
__u32 reserved2[2];
|
||||
__u32 size;
|
||||
__u32 reserved2[1];
|
||||
union {
|
||||
__s32 value;
|
||||
__s64 value64;
|
||||
void *reserved;
|
||||
char *string;
|
||||
};
|
||||
} __attribute__ ((packed));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue