All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] em28xx: use MFE lock for PCTV nanoStick T2 290e
@ 2011-07-28 14:47 Antti Palosaari
  0 siblings, 0 replies; 2+ messages in thread
From: Antti Palosaari @ 2011-07-28 14:47 UTC (permalink / raw)
  To: linux-media

Signed-off-by: Antti Palosaari <crope@iki.fi>
---
  drivers/media/video/em28xx/em28xx-dvb.c |    7 ++++++-
  1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/em28xx/em28xx-dvb.c 
b/drivers/media/video/em28xx/em28xx-dvb.c
index ab8a740..b9cfe93 100644
--- a/drivers/media/video/em28xx/em28xx-dvb.c
+++ b/drivers/media/video/em28xx/em28xx-dvb.c
@@ -604,7 +604,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) {
@@ -767,6 +767,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:
@@ -823,6 +825,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);
-- 
1.7.6

-- 
http://palosaari.fi/

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [PATCH] em28xx: use MFE lock for PCTV nanoStick T2 290e
@ 2011-07-28 21:59 Antti Palosaari
  0 siblings, 0 replies; 2+ messages in thread
From: Antti Palosaari @ 2011-07-28 21:59 UTC (permalink / raw)
  To: linux-media

Signed-off-by: Antti Palosaari <crope@iki.fi>
---
 drivers/media/video/em28xx/em28xx-dvb.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/em28xx/em28xx-dvb.c b/drivers/media/video/em28xx/em28xx-dvb.c
index ab8a740..b9cfe93 100644
--- a/drivers/media/video/em28xx/em28xx-dvb.c
+++ b/drivers/media/video/em28xx/em28xx-dvb.c
@@ -604,7 +604,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) {
@@ -767,6 +767,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:
@@ -823,6 +825,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);
-- 
1.7.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-28 21:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-28 14:47 [PATCH] em28xx: use MFE lock for PCTV nanoStick T2 290e Antti Palosaari
  -- strict thread matches above, loose matches on Subject: below --
2011-07-28 21:59 Antti Palosaari

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.