Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e946c8a authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (6904): tda18271: divider byte 1, bit 7 is always 0



Bit 7 of both Main Divider byte 1 and Cal Divider byte 1 is always zero.

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 994fc28b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -424,7 +424,7 @@ static int tda18271_tune(struct dvb_frontend *fe,
	regs[R_CPD]   = pd;

	div =  ((d * (N / 1000)) << 7) / 125;
	regs[R_CD1]   = 0xff & (div >> 16);
	regs[R_CD1]   = 0x7f & (div >> 16);
	regs[R_CD2]   = 0xff & (div >> 8);
	regs[R_CD3]   = 0xff & div;

@@ -453,7 +453,7 @@ static int tda18271_tune(struct dvb_frontend *fe,
	}

	div =  ((d * (N / 1000)) << 7) / 125;
	regs[R_MD1]   = 0xff & (div >> 16);
	regs[R_MD1]   = 0x7f & (div >> 16);
	regs[R_MD2]   = 0xff & (div >> 8);
	regs[R_MD3]   = 0xff & div;

@@ -567,7 +567,7 @@ static int tda18271_tune(struct dvb_frontend *fe,
	}

	div =  ((d * (N / 1000)) << 7) / 125;
	regs[R_MD1]   = 0xff & (div >> 16);
	regs[R_MD1]   = 0x7f & (div >> 16);
	regs[R_MD2]   = 0xff & (div >> 8);
	regs[R_MD3]   = 0xff & div;