public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tda18271-fe: Fix dvb-c standard selection
@ 2013-11-02 21:05 CrazyCat
  2013-11-02 21:21 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 4+ messages in thread
From: CrazyCat @ 2013-11-02 21:05 UTC (permalink / raw)
  To: linux-media

Fix dvb-c standard selection - qam8 for ANNEX_AC

Signed-off-by: Evgeny Plehov <EvgenyPlehov@ukr.net>
diff --git a/drivers/media/tuners/tda18271-fe.c b/drivers/media/tuners/tda18271-fe.c
index 4995b89..6a385c8 100644
--- a/drivers/media/tuners/tda18271-fe.c
+++ b/drivers/media/tuners/tda18271-fe.c
@@ -960,16 +960,12 @@ static int tda18271_set_params(struct dvb_frontend *fe)
  		break;
  	case SYS_DVBC_ANNEX_B:
  		bw = 6000000;
-		/* falltrough */
+		map = &std_map->qam_6;
+		break;
  	case SYS_DVBC_ANNEX_A:
  	case SYS_DVBC_ANNEX_C:
-		if (bw <= 6000000) {
-			map = &std_map->qam_6;
-		} else if (bw <= 7000000) {
-			map = &std_map->qam_7;
-		} else {
-			map = &std_map->qam_8;
-		}
+		bw = 8000000;
+		map = &std_map->qam_8;
  		break;
  	default:
  		tda_warn("modulation type not supported!\n");


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH] tda18271-fe: Fix dvb-c standard selection
@ 2013-11-01 19:31 CrazyCat
  0 siblings, 0 replies; 4+ messages in thread
From: CrazyCat @ 2013-11-01 19:31 UTC (permalink / raw)
  To: linux-media

Fix dvb-c standard selection - qam8 for ANNEX_AC

Signed-off-by: Evgeny Plehov <EvgenyPlehov@ukr.net>
diff --git a/drivers/media/tuners/tda18271-fe.c 
b/drivers/media/tuners/tda18271-fe.c
index 4995b89..6a385c8 100644
--- a/drivers/media/tuners/tda18271-fe.c
+++ b/drivers/media/tuners/tda18271-fe.c
@@ -960,16 +960,12 @@ static int tda18271_set_params(struct dvb_frontend 
*fe)
          break;
      case SYS_DVBC_ANNEX_B:
          bw = 6000000;
-        /* falltrough */
+        map = &std_map->qam_6;
+        break;
      case SYS_DVBC_ANNEX_A:
      case SYS_DVBC_ANNEX_C:
-        if (bw <= 6000000) {
-            map = &std_map->qam_6;
-        } else if (bw <= 7000000) {
-            map = &std_map->qam_7;
-        } else {
-            map = &std_map->qam_8;
-        }
+        bw = 8000000;
+        map = &std_map->qam_8;
          break;
      default:
          tda_warn("modulation type not supported!\n");


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

end of thread, other threads:[~2013-11-03  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-02 21:05 [PATCH] tda18271-fe: Fix dvb-c standard selection CrazyCat
2013-11-02 21:21 ` Mauro Carvalho Chehab
     [not found]   ` <52756F4E.3030805@narod.ru>
2013-11-03  0:19     ` Mauro Carvalho Chehab
  -- strict thread matches above, loose matches on Subject: below --
2013-11-01 19:31 CrazyCat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox