Commit 899eb84c authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] go7007: drop struct go7007_file

Remove struct go7007_file: all fields contained in that struct are moved to
the go7007 struct since they are really global values. The lock has just
been deleted (what's the point of a per-fh lock??).
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b95dd82c
...@@ -141,14 +141,6 @@ struct go7007_buffer { ...@@ -141,14 +141,6 @@ struct go7007_buffer {
int mapped; int mapped;
}; };
struct go7007_file {
struct v4l2_fh fh;
struct go7007 *go;
struct mutex lock;
int buf_count;
struct go7007_buffer *bufs;
};
#define GO7007_RATIO_1_1 0 #define GO7007_RATIO_1_1 0
#define GO7007_RATIO_4_3 1 #define GO7007_RATIO_4_3 1
#define GO7007_RATIO_16_9 2 #define GO7007_RATIO_16_9 2
...@@ -242,6 +234,9 @@ struct go7007 { ...@@ -242,6 +234,9 @@ struct go7007 {
u32 next_seq; u32 next_seq;
struct list_head stream; struct list_head stream;
wait_queue_head_t frame_waitq; wait_queue_head_t frame_waitq;
int buf_count;
struct go7007_buffer *bufs;
struct v4l2_fh *bufs_owner;
/* Audio streaming */ /* Audio streaming */
void (*audio_deliver)(struct go7007 *go, u8 *buf, int length); void (*audio_deliver)(struct go7007 *go, u8 *buf, int length);
......
This diff is collapsed.
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