[media] tda18271: add DVB-C support
authorAntti Palosaari <crope@iki.fi>
Thu, 7 Apr 2011 18:45:38 +0000 (15:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:30:05 +0000 (09:30 -0300)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18271-fe.c

index d884f5eee73ca09b547bc168776fe1b89bac0650..57022e88e338adcc6e998c834b91f6bc63c4ef70 100644 (file)
@@ -976,6 +976,10 @@ static int tda18271_set_params(struct dvb_frontend *fe,
                        tda_warn("bandwidth not set!\n");
                        return -EINVAL;
                }
+       } else if (fe->ops.info.type == FE_QAM) {
+               /* DVB-C */
+               map = &std_map->qam_8;
+               bw = 8000000;
        } else {
                tda_warn("modulation type not supported!\n");
                return -EINVAL;