aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda1004x.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2007-04-27 11:31:15 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-04-27 14:43:36 -0400
commit68717583557341874b2eea4dea36635256e932b6 (patch)
tree1a6d49b3e94ac29929a0cba79e96404643782d37 /drivers/media/dvb/frontends/tda1004x.c
parent06be3035f96d73cf64dc20a8ee37c902d7a2ff2d (diff)
V4L/DVB (5319): Set tda827x to sleep mode after attach
This change sets the tda827x to sleep mode right after attach in dvb mode. It is just to save power. For the same reason, the ADC of the tda10046 gets turned off in sleep mode. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/tda1004x.c')
-rw-r--r--drivers/media/dvb/frontends/tda1004x.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda1004x.c b/drivers/media/dvb/frontends/tda1004x.c
index dbfc94a9c3f7..3de729b3b4bf 100644
--- a/drivers/media/dvb/frontends/tda1004x.c
+++ b/drivers/media/dvb/frontends/tda1004x.c
@@ -503,6 +503,7 @@ static int tda10046_fwupload(struct dvb_frontend* fe)
503 503
504 /* The PLLs need to be reprogrammed after sleep */ 504 /* The PLLs need to be reprogrammed after sleep */
505 tda10046_init_plls(fe); 505 tda10046_init_plls(fe);
506 tda1004x_write_mask(state, TDA1004X_CONFADC2, 0xc0, 0);
506 507
507 /* don't re-upload unless necessary */ 508 /* don't re-upload unless necessary */
508 if (tda1004x_check_upload_ok(state) == 0) 509 if (tda1004x_check_upload_ok(state) == 0)
@@ -1170,6 +1171,7 @@ static int tda1004x_sleep(struct dvb_frontend* fe)
1170 tda1004x_write_mask(state, TDA10046H_CONF_POLARITY, 0x0f, 1171 tda1004x_write_mask(state, TDA10046H_CONF_POLARITY, 0x0f,
1171 (gpio_conf & 0x0f) ^ 0x0a); 1172 (gpio_conf & 0x0f) ^ 0x0a);
1172 1173
1174 tda1004x_write_mask(state, TDA1004X_CONFADC2, 0xc0, 0xc0);
1173 tda1004x_write_mask(state, TDA1004X_CONFC4, 1, 1); 1175 tda1004x_write_mask(state, TDA1004X_CONFC4, 1, 1);
1174 break; 1176 break;
1175 } 1177 }