diff options
author | Antti Palosaari <crope@iki.fi> | 2013-03-08 06:13:31 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-22 02:05:45 +0400 |
commit | 0c13c54d8527df03decf7c522f35886fb721f282 (patch) | |
tree | 187334ed105984ac4eb9251897bc79617bb6284b /drivers/media/dvb-frontends/af9033.c | |
parent | 086991dd106bda1c43a294a874563322e0d777e4 (diff) | |
download | linux-0c13c54d8527df03decf7c522f35886fb721f282.tar.xz |
[media] af9033: sleep on attach()
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-frontends/af9033.c')
-rw-r--r-- | drivers/media/dvb-frontends/af9033.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/media/dvb-frontends/af9033.c b/drivers/media/dvb-frontends/af9033.c index 8e3a99d2b4bf..2dba516d5680 100644 --- a/drivers/media/dvb-frontends/af9033.c +++ b/drivers/media/dvb-frontends/af9033.c @@ -985,10 +985,17 @@ struct dvb_frontend *af9033_attach(const struct af9033_config *config, "OFDM=%d.%d.%d.%d\n", KBUILD_MODNAME, buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); - - /* FIXME: Do not abuse adc_multiplier for detecting IT9135 */ - if (state->cfg.adc_multiplier != AF9033_ADC_MULTIPLIER_2X) { - /* sleep */ + /* sleep */ + switch (state->cfg.tuner) { + case AF9033_TUNER_IT9135_38: + case AF9033_TUNER_IT9135_51: + case AF9033_TUNER_IT9135_52: + case AF9033_TUNER_IT9135_60: + case AF9033_TUNER_IT9135_61: + case AF9033_TUNER_IT9135_62: + /* IT9135 did not like to sleep at that early */ + break; + default: ret = af9033_wr_reg(state, 0x80004c, 1); if (ret < 0) goto err; |