Commit 60bcfc08 authored by Jorge Zapata's avatar Jorge Zapata

Make the v4l2_input struct be compatible between kernel and user space

For some reason the v4l2_input struct had different sizes on user space and
kernel space, adding this attribute makes the struct to have the same size
on both userspace and kernel and will make the ioctl to have the same number
now.
parent d0079996
...@@ -806,7 +806,7 @@ struct v4l2_input ...@@ -806,7 +806,7 @@ struct v4l2_input
v4l2_std_id std; v4l2_std_id std;
__u32 status; __u32 status;
__u32 reserved[4]; __u32 reserved[4];
}; } __attribute__((__packed__));
/* Values for the 'type' field */ /* Values for the 'type' field */
#define V4L2_INPUT_TYPE_TUNER 1 #define V4L2_INPUT_TYPE_TUNER 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment