Commit 51858d13 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (8036): tda18271: toggle rf agc speed mode on TDA18271HD/C2 only

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 119a7c7e
...@@ -75,8 +75,10 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe, ...@@ -75,8 +75,10 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe,
regs[R_EP3] &= ~0x1f; /* clear std bits */ regs[R_EP3] &= ~0x1f; /* clear std bits */
regs[R_EP3] |= (map->agc_mode << 3) | map->std; regs[R_EP3] |= (map->agc_mode << 3) | map->std;
/* set rfagc to high speed mode */ if (priv->id == TDA18271HDC2) {
regs[R_EP3] &= ~0x04; /* set rfagc to high speed mode */
regs[R_EP3] &= ~0x04;
}
/* set cal mode to normal */ /* set cal mode to normal */
regs[R_EP4] &= ~0x03; regs[R_EP4] &= ~0x03;
...@@ -168,12 +170,14 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe, ...@@ -168,12 +170,14 @@ static int tda18271_channel_configuration(struct dvb_frontend *fe,
msleep(20); msleep(20);
/* set rfagc to normal speed mode */ if (priv->id == TDA18271HDC2) {
if (map->fm_rfn) /* set rfagc to normal speed mode */
regs[R_EP3] &= ~0x04; if (map->fm_rfn)
else regs[R_EP3] &= ~0x04;
regs[R_EP3] |= 0x04; else
ret = tda18271_write_regs(fe, R_EP3, 1); regs[R_EP3] |= 0x04;
ret = tda18271_write_regs(fe, R_EP3, 1);
}
fail: fail:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment