aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/videobuf-dvb.h
diff options
context:
space:
mode:
authorDarron Broad <darron@kewl.org>2008-10-11 10:44:05 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-17 16:24:15 -0400
commit59b1842da1c6f33ad2e8da82d3dfb3445751d964 (patch)
tree9a57bcf44df5d76ad845995dcfd5f49e20c68240 /include/media/videobuf-dvb.h
parent2f3af9e64de44743a860fd1eee966222a7accc54 (diff)
V4L/DVB (9227): MFE: Add multi-frontend mutual exclusion
This add frontend R/W mutual exclusion. Prior to this point in time it was possible to open both frontends simultaneously which an MFE card cannot support. In order to stop this, a delayed open is performed which has the following function: - Return EBUSY after a configurable amount of time if a frontend is unavailable due to the other being in use. - Only allow opening of a frontend if the kernel thread of the other has stopped. This solution was chosen to allow switching between frontends to work as seamlessly as possible. When both frontends are actually opened simultaneously then one will only open, but if quick switching is performed between one of many then the new open will succeed in a clean fashion rather than interrupting a kernel thread. Signed-off-by: Darron Broad <darron@kewl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/videobuf-dvb.h')
-rw-r--r--include/media/videobuf-dvb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/media/videobuf-dvb.h b/include/media/videobuf-dvb.h
index 47bc2c5e7ba9..1a401f7320b9 100644
--- a/include/media/videobuf-dvb.h
+++ b/include/media/videobuf-dvb.h
@@ -43,7 +43,8 @@ int videobuf_dvb_register_bus(struct videobuf_dvb_frontends *f,
43 struct module *module, 43 struct module *module,
44 void *adapter_priv, 44 void *adapter_priv,
45 struct device *device, 45 struct device *device,
46 short *adapter_nr); //NEW 46 short *adapter_nr,
47 int mfe_shared);
47 48
48void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f); 49void videobuf_dvb_unregister_bus(struct videobuf_dvb_frontends *f);
49 50
@@ -52,7 +53,8 @@ int videobuf_dvb_register_adapter(struct videobuf_dvb_frontends *f,
52 void *adapter_priv, 53 void *adapter_priv,
53 struct device *device, 54 struct device *device,
54 char *adapter_name, 55 char *adapter_name,
55 short *adapter_nr); //NEW 56 short *adapter_nr,
57 int mfe_shared);
56 58
57int videobuf_dvb_register_frontend(struct dvb_adapter *adapter, struct videobuf_dvb *dvb); 59int videobuf_dvb_register_frontend(struct dvb_adapter *adapter, struct videobuf_dvb *dvb);
58 60