public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: CrazyCat <crazycat69@narod.ru>
To: linux-media@vger.kernel.org
Subject: [PATCH] tda18271-fe: Fix dvb-c standard selection
Date: Sat, 02 Nov 2013 23:05:14 +0200	[thread overview]
Message-ID: <5275690A.3080108@narod.ru> (raw)

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");


             reply	other threads:[~2013-11-02 21:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-02 21:05 CrazyCat [this message]
2013-11-02 21:21 ` [PATCH] tda18271-fe: Fix dvb-c standard selection 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5275690A.3080108@narod.ru \
    --to=crazycat69@narod.ru \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox