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

Commit 8973dc4b authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (7630): au8522: fix au8522_read_ucblocks for qam



ucblocks are reported in separate registers for vsb & qam

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent ce1719a6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -340,7 +340,10 @@ static int au8522_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{
	struct au8522_state *state = fe->demodulator_priv;

	if (state->current_modulation == VSB_8)
		*ucblocks = au8522_readreg(state, 0x4087);
	else
		*ucblocks = au8522_readreg(state, 0x4543);

	return 0;
}