]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] cinergyT2-fe: Fix bandwdith settings
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 23 Jan 2012 15:15:22 +0000 (13:15 -0200)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 23 Jan 2012 15:15:22 +0000 (13:15 -0200)
Changeset 7830bbaff9f mangled the bandwidth field for CinergyT2.
Properly fill it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/cinergyT2-fe.c

index 8a57ed8272dec10adfbbd989f81442ed6cc48ef9..1efc028a76c9c5bb937f6c8979d672ec68104596 100644 (file)
@@ -276,14 +276,15 @@ static int cinergyt2_fe_set_frontend(struct dvb_frontend *fe)
        param.flags = 0;
 
        switch (fep->bandwidth_hz) {
+       default:
        case 8000000:
-               param.bandwidth = 0;
+               param.bandwidth = 8;
                break;
        case 7000000:
-               param.bandwidth = 1;
+               param.bandwidth = 7;
                break;
        case 6000000:
-               param.bandwidth = 2;
+               param.bandwidth = 6;
                break;
        }