From: Janne Huttunen Date: Wed, 30 May 2012 08:28:46 +0000 (-0300) Subject: [media] cxd2820r: Fix an incorrect modulation type bitmask X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cba5d0b20e7c75dc06e3a609059f17f11c843d94;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 945404991529..ed3b0ba624de 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;