projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26b03bc
)
V4L/DVB (11587): stv090x: set DiSEqC frequency to 22kHz
author
Manu Abraham
<abraham.manu@gmail.com>
Wed, 8 Apr 2009 22:45:43 +0000
(19:45 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:39 +0000
(18:20 -0300)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv090x.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/stv090x.c
b/drivers/media/dvb/frontends/stv090x.c
index 4dc723c426461a70ef0c214be3cb9aa92373f233..a350364a42f5ebb7c7c873a5352bfa347482cd1f 100644
(file)
--- 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)
state->mclk = stv090x_get_mclk(state);
+ /*Set the DiseqC frequency to 22KHz */
+ div = state->mclk / 704000;
+ if (STV090x_WRITE_DEMOD(state, F22TX, div) < 0)
+ goto err;
+ if (STV090x_WRITE_DEMOD(state, F22RX, div) < 0)
+ goto err;
+
return 0;
err:
dprintk(FE_ERROR, 1, "I/O error");