Fix dvb-c standard selection - qam8 for ANNEX_AC

Signed-off-by: Evgeny Plehov <evgenyple...@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");

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to