diff options
Diffstat (limited to 'drivers/media/common/tuners/tda18271-common.c')
-rw-r--r-- | drivers/media/common/tuners/tda18271-common.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/media/common/tuners/tda18271-common.c b/drivers/media/common/tuners/tda18271-common.c index 155c93eb75da..e1f678281a58 100644 --- a/drivers/media/common/tuners/tda18271-common.c +++ b/drivers/media/common/tuners/tda18271-common.c | |||
@@ -326,12 +326,24 @@ int tda18271_init_regs(struct dvb_frontend *fe) | |||
326 | regs[R_EB22] = 0x48; | 326 | regs[R_EB22] = 0x48; |
327 | regs[R_EB23] = 0xb0; | 327 | regs[R_EB23] = 0xb0; |
328 | 328 | ||
329 | if (priv->small_i2c) { | 329 | switch (priv->small_i2c) { |
330 | case TDA18271_08_BYTE_CHUNK_INIT: | ||
331 | tda18271_write_regs(fe, 0x00, 0x08); | ||
332 | tda18271_write_regs(fe, 0x08, 0x08); | ||
333 | tda18271_write_regs(fe, 0x10, 0x08); | ||
334 | tda18271_write_regs(fe, 0x18, 0x08); | ||
335 | tda18271_write_regs(fe, 0x20, 0x07); | ||
336 | break; | ||
337 | case TDA18271_16_BYTE_CHUNK_INIT: | ||
330 | tda18271_write_regs(fe, 0x00, 0x10); | 338 | tda18271_write_regs(fe, 0x00, 0x10); |
331 | tda18271_write_regs(fe, 0x10, 0x10); | 339 | tda18271_write_regs(fe, 0x10, 0x10); |
332 | tda18271_write_regs(fe, 0x20, 0x07); | 340 | tda18271_write_regs(fe, 0x20, 0x07); |
333 | } else | 341 | break; |
342 | case TDA18271_39_BYTE_CHUNK_INIT: | ||
343 | default: | ||
334 | tda18271_write_regs(fe, 0x00, TDA18271_NUM_REGS); | 344 | tda18271_write_regs(fe, 0x00, TDA18271_NUM_REGS); |
345 | break; | ||
346 | } | ||
335 | 347 | ||
336 | /* setup agc1 gain */ | 348 | /* setup agc1 gain */ |
337 | regs[R_EB17] = 0x00; | 349 | regs[R_EB17] = 0x00; |