From: Janne Huttunen Date: Wed, 30 May 2012 08:28:46 +0000 (-0300) Subject: [media] cxd2820r: Fix an incorrect modulation type bitmask X-Git-Tag: v3.5-rc5~26^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cba5d0b20e7c75dc06e3a609059f17f11c843d94;p=platform%2Fkernel%2Flinux-3.10.git [media] cxd2820r: Fix an incorrect modulation type bitmask Fix an incorrect modulation type bitmask. This allows QAM256 also to be correctly reported. Signed-off-by: Janne Huttunen Acked-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/cxd2820r_c.c b/drivers/media/dvb/frontends/cxd2820r_c.c index 9454049..ed3b0ba6 100644 --- a/drivers/media/dvb/frontends/cxd2820r_c.c +++ b/drivers/media/dvb/frontends/cxd2820r_c.c @@ -121,7 +121,7 @@ int cxd2820r_get_frontend_c(struct dvb_frontend *fe) if (ret) goto error; - switch ((buf[0] >> 0) & 0x03) { + switch ((buf[0] >> 0) & 0x07) { case 0: c->modulation = QAM_16; break;