summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/mantis/mantis_ca.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_ca.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_ca.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb/mantis/mantis_ca.c b/drivers/media/dvb/mantis/mantis_ca.c
index 4be61ca02c20..cd6bed737296 100644
--- 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;
}