37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From d91b92d5da6dcd0c23d9f2721a8d4e93768104f8 Mon Sep 17 00:00:00 2001
|
|
From: Manu Abraham <abraham.manu@gmail.com>
|
|
Date: Fri, 4 Dec 2009 05:11:41 -0300
|
|
Subject: [PATCH 046/120] V4L/DVB (13744): [Mantis CA] Use Module status to signal Slot events
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
(cherry picked from commit 4e9fbeeedc22d287b5d05e32bbc647cd2dc8c663)
|
|
|
|
Signed-off-by: Bjørn Mork <bjorn@mork.no>
|
|
---
|
|
drivers/media/dvb/mantis/mantis_ca.c | 5 +++++
|
|
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 4be61ca..cd6bed7 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;
|
|
}
|
|
|
|
--
|
|
1.7.1
|
|
|