aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stv090x.c
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-04-08 18:45:43 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-06-16 17:20:39 -0400
commit94a809143a47343b45c73e84f7f26e3087c2fd62 (patch)
tree5f5dd1eec3296ee78d993f0cc82a55062f9efb7f /drivers/media/dvb/frontends/stv090x.c
parent26b03bc6c2fa72e3aaed19fba125c2f438bf9261 (diff)
V4L/DVB (11587): stv090x: set DiSEqC frequency to 22kHz
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stv090x.c')
-rw-r--r--drivers/media/dvb/frontends/stv090x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c
index 4dc723c42646..a350364a42f5 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -3623,6 +3623,13 @@ static int stv090x_set_mclk(struct stv090x_state *state, u32 mclk, u32 clk)
3623 3623
3624 state->mclk = stv090x_get_mclk(state); 3624 state->mclk = stv090x_get_mclk(state);
3625 3625
3626 /*Set the DiseqC frequency to 22KHz */
3627 div = state->mclk / 704000;
3628 if (STV090x_WRITE_DEMOD(state, F22TX, div) < 0)
3629 goto err;
3630 if (STV090x_WRITE_DEMOD(state, F22RX, div) < 0)
3631 goto err;
3632
3626 return 0; 3633 return 0;
3627err: 3634err:
3628 dprintk(FE_ERROR, 1, "I/O error"); 3635 dprintk(FE_ERROR, 1, "I/O error");