Skip to content

Commit

Permalink
V4L/DVB (13744): [Mantis CA] Use Module status to signal Slot events
Browse files Browse the repository at this point in the history
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Jan 17, 2010
1 parent 6053240 commit 4e9fbee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/dvb/mantis/mantis_ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4e9fbee

Please sign in to comment.