projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6053240
)
V4L/DVB (13744): [Mantis CA] Use Module status to signal Slot events
author
Manu Abraham
<abraham.manu@gmail.com>
Fri, 4 Dec 2009 08:11:41 +0000
(
05:11
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:34 +0000
(11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_ca.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/mantis/mantis_ca.c
b/drivers/media/dvb/mantis/mantis_ca.c
index
4be61ca
..
cd6bed7
100644
(file)
--- a/
drivers/media/dvb/mantis/mantis_ca.c
+++ b/
drivers/media/dvb/mantis/mantis_ca.c
@@
-79,6
+79,11
@@
static int mantis_ts_control(struct dvb_ca_en50221 *en50221, int slot)
static int mantis_slot_status(struct dvb_ca_en50221 *en50221, int slot, int open)
{
+ struct mantis_ca *ca = en50221->data;
+
+ if (ca->slot_state == MODULE_INSERTED)
+ return DVB_CA_EN50221_POLL_CAM_PRESENT | DVB_CA_EN50221_POLL_CAM_READY;
+
return 0;
}