Skip to content

Commit

Permalink
[media] em28xx: use MFE lock for PCTV nanoStick T2 290e
Browse files Browse the repository at this point in the history
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Aug 27, 2011
1 parent eb28dc3 commit e364543
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/media/video/em28xx/em28xx-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ static void unregister_dvb(struct em28xx_dvb *dvb)

static int dvb_init(struct em28xx *dev)
{
int result = 0;
int result = 0, mfe_shared = 0;
struct em28xx_dvb *dvb;

if (!dev->board.has_dvb) {
Expand Down Expand Up @@ -772,6 +772,8 @@ static int dvb_init(struct em28xx *dev)
dvb_frontend_detach(dvb->fe[1]);
/* leave FE 0 still active */
}

mfe_shared = 1;
}
break;
case EM2884_BOARD_TERRATEC_H5:
Expand Down Expand Up @@ -828,6 +830,9 @@ static int dvb_init(struct em28xx *dev)
if (result < 0)
goto out_free;

/* MFE lock */
dvb->adapter.mfe_shared = mfe_shared;

em28xx_info("Successfully loaded em28xx-dvb\n");
ret:
em28xx_set_mode(dev, EM28XX_SUSPEND);
Expand Down

0 comments on commit e364543

Please sign in to comment.