mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
[media] dvb-frontends/cxd2841er: configurable IFAGCNEG
Adds a flag to enable or disable the IFAGCNEG bit in cxd2841er_init_tc(). Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Acked-by: Abylay Ospan <aospan@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
e3943aa6d8
commit
14fd86290d
2 changed files with 4 additions and 2 deletions
|
@ -3783,9 +3783,10 @@ static int cxd2841er_init_tc(struct dvb_frontend *fe)
|
|||
dev_dbg(&priv->i2c->dev, "%s() bandwidth_hz=%d\n",
|
||||
__func__, p->bandwidth_hz);
|
||||
cxd2841er_shutdown_to_sleep_tc(priv);
|
||||
/* SONY_DEMOD_CONFIG_IFAGCNEG = 1 */
|
||||
/* SONY_DEMOD_CONFIG_IFAGCNEG = 1 (0 for NO_AGCNEG */
|
||||
cxd2841er_write_reg(priv, I2C_SLVT, 0x00, 0x10);
|
||||
cxd2841er_set_reg_bits(priv, I2C_SLVT, 0xcb, 0x40, 0x40);
|
||||
cxd2841er_set_reg_bits(priv, I2C_SLVT, 0xcb,
|
||||
((priv->flags & CXD2841ER_NO_AGCNEG) ? 0x00 : 0x40), 0x40);
|
||||
/* SONY_DEMOD_CONFIG_IFAGC_ADC_FS = 0 */
|
||||
cxd2841er_write_reg(priv, I2C_SLVT, 0xcd, 0x50);
|
||||
/* SONY_DEMOD_CONFIG_PARALLEL_SEL = 1 */
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#define CXD2841ER_ASCOT 8 /* bit 3 */
|
||||
#define CXD2841ER_EARLY_TUNE 16 /* bit 4 */
|
||||
#define CXD2841ER_NO_WAIT_LOCK 32 /* bit 5 */
|
||||
#define CXD2841ER_NO_AGCNEG 64 /* bit 6 */
|
||||
|
||||
enum cxd2841er_xtal {
|
||||
SONY_XTAL_20500, /* 20.5 MHz */
|
||||
|
|
Loading…
Reference in a new issue