summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stv090x.c
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2009-04-09 02:45:43 +0400
committerManu Abraham <manu@linuxtv.org>2009-04-09 02:45:43 +0400
commit5fa5b751c79a00c20a2717b642094fab5945c1b3 (patch)
tree12bd94125b45b10303de2b04440d3369f1c814cc /linux/drivers/media/dvb/frontends/stv090x.c
parente380ca95f7765ba08766f2a412d74c67f77a269a (diff)
downloadmediapointer-dvb-s2-5fa5b751c79a00c20a2717b642094fab5945c1b3.tar.gz
mediapointer-dvb-s2-5fa5b751c79a00c20a2717b642094fab5945c1b3.tar.bz2
Set DiSEqC frequency to 22kHz
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/stv090x.c')
-rw-r--r--linux/drivers/media/dvb/frontends/stv090x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv090x.c b/linux/drivers/media/dvb/frontends/stv090x.c
index 6071b3aab..219b10d0c 100644
--- a/linux/drivers/media/dvb/frontends/stv090x.c
+++ b/linux/drivers/media/dvb/frontends/stv090x.c
@@ -4408,6 +4408,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");