diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2009-04-08 17:27:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:20:39 -0400 |
commit | 26b03bc6c2fa72e3aaed19fba125c2f438bf9261 (patch) | |
tree | a7a3f7bb5b65fa6b83b54b07b0a1d7c48a746c7d /drivers/media/dvb/frontends | |
parent | 72982f761526278e1ca7dce0507ed9f33b952fee (diff) |
V4L/DVB (11586): stv090x: switch i/p ADC as well during Power management
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/stv090x.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c index 6aaeda1cf243..4dc723c42646 100644 --- a/drivers/media/dvb/frontends/stv090x.c +++ b/drivers/media/dvb/frontends/stv090x.c | |||
@@ -3494,6 +3494,11 @@ static int stv090x_sleep(struct dvb_frontend *fe) | |||
3494 | if (stv090x_write_reg(state, STV090x_SYNTCTRL, reg) < 0) | 3494 | if (stv090x_write_reg(state, STV090x_SYNTCTRL, reg) < 0) |
3495 | goto err; | 3495 | goto err; |
3496 | 3496 | ||
3497 | reg = stv090x_read_reg(state, STV090x_TSTTNR1); | ||
3498 | STV090x_SETFIELD(reg, ADC1_PON_FIELD, 0); | ||
3499 | if (stv090x_write_reg(state, STV090x_TSTTNR1, reg) < 0) | ||
3500 | goto err; | ||
3501 | |||
3497 | return 0; | 3502 | return 0; |
3498 | err: | 3503 | err: |
3499 | dprintk(FE_ERROR, 1, "I/O error"); | 3504 | dprintk(FE_ERROR, 1, "I/O error"); |
@@ -3513,6 +3518,11 @@ static int stv090x_wakeup(struct dvb_frontend *fe) | |||
3513 | if (stv090x_write_reg(state, STV090x_SYNTCTRL, reg) < 0) | 3518 | if (stv090x_write_reg(state, STV090x_SYNTCTRL, reg) < 0) |
3514 | goto err; | 3519 | goto err; |
3515 | 3520 | ||
3521 | reg = stv090x_read_reg(state, STV090x_TSTTNR1); | ||
3522 | STV090x_SETFIELD(reg, ADC1_PON_FIELD, 1); | ||
3523 | if (stv090x_write_reg(state, STV090x_TSTTNR1, reg) < 0) | ||
3524 | goto err; | ||
3525 | |||
3516 | return 0; | 3526 | return 0; |
3517 | err: | 3527 | err: |
3518 | dprintk(FE_ERROR, 1, "I/O error"); | 3528 | dprintk(FE_ERROR, 1, "I/O error"); |