Commit e3645437 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab

[media] em28xx: use MFE lock for PCTV nanoStick T2 290e

Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent eb28dc39
...@@ -609,7 +609,7 @@ static void unregister_dvb(struct em28xx_dvb *dvb) ...@@ -609,7 +609,7 @@ static void unregister_dvb(struct em28xx_dvb *dvb)
static int dvb_init(struct em28xx *dev) static int dvb_init(struct em28xx *dev)
{ {
int result = 0; int result = 0, mfe_shared = 0;
struct em28xx_dvb *dvb; struct em28xx_dvb *dvb;
if (!dev->board.has_dvb) { if (!dev->board.has_dvb) {
...@@ -772,6 +772,8 @@ static int dvb_init(struct em28xx *dev) ...@@ -772,6 +772,8 @@ static int dvb_init(struct em28xx *dev)
dvb_frontend_detach(dvb->fe[1]); dvb_frontend_detach(dvb->fe[1]);
/* leave FE 0 still active */ /* leave FE 0 still active */
} }
mfe_shared = 1;
} }
break; break;
case EM2884_BOARD_TERRATEC_H5: case EM2884_BOARD_TERRATEC_H5:
...@@ -828,6 +830,9 @@ static int dvb_init(struct em28xx *dev) ...@@ -828,6 +830,9 @@ static int dvb_init(struct em28xx *dev)
if (result < 0) if (result < 0)
goto out_free; goto out_free;
/* MFE lock */
dvb->adapter.mfe_shared = mfe_shared;
em28xx_info("Successfully loaded em28xx-dvb\n"); em28xx_info("Successfully loaded em28xx-dvb\n");
ret: ret:
em28xx_set_mode(dev, EM28XX_SUSPEND); em28xx_set_mode(dev, EM28XX_SUSPEND);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment