[media] xc5000: Add support for DMB-TH and ISDB-T
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jul 2012 17:07:59 +0000 (14:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 5 Jul 2012 17:22:13 +0000 (14:22 -0300)
xc5000 is just a tuner, not a decoder, so both DMB-TH and ISDB-T should
work properly there: it is just a matter of teaching the driver what
saw filter should be used and how to calculate the center frequency.

Requested-by: Choi Wing Chan <chanchoiwing@gmail.com>
Cc: Steven Toth <stoth@linuxtv.org>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/xc5000.c

index dcca42ca57bef312cb84fb059f88a315da385092..bac8009e1d4979680211fddcd8a06e7c71a4e23c 100644 (file)
@@ -717,6 +717,12 @@ static int xc5000_set_params(struct dvb_frontend *fe)
                priv->freq_hz = freq - 1750000;
                priv->video_standard = DTV6;
                break;
+       case SYS_ISDBT:
+               /* All ISDB-T are currently for 6 MHz bw */
+               if (!bw)
+                       bw = 6000000;
+               /* fall to OFDM handling */
+       case SYS_DMBTH:
        case SYS_DVBT:
        case SYS_DVBT2:
                dprintk(1, "%s() OFDM\n", __func__);