Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37430
b: refs/heads/master
c: 559463b
h: refs/heads/master
v: v3
  • Loading branch information
Patrick Boettcher authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent e9b4322 commit 38a90b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ded38d2806b508b0b0f95581c103958949403daf
refs/heads/master: 559463bba8b91d36b12f6722dc27440567e4f6be
7 changes: 4 additions & 3 deletions trunk/drivers/media/dvb/frontends/dib3000mc.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ static int dib3000mc_set_output_mode(struct dib3000mc_state *state, int mode)
u16 outreg = 0;
u16 outmode = 0;
u16 elecout = 1;
u16 smo_reg = (0 << 6) | (0 << 5) | (0 << 4) | (0 << 3) | (1 << 1) | 0 ; //smo_mode = 1
u16 smo_reg = (0 << 6) | (0 << 5) | (0 << 3) | (1 << 1) | 0 |
(dib3000mc_read_word(state, 206) & 0x0010); /* keep the pid_parse bit */

dprintk("-I- Setting output mode for demod %p to %d\n",
&state->demod, mode);
Expand Down Expand Up @@ -197,7 +198,7 @@ static int dib3000mc_set_output_mode(struct dib3000mc_state *state, int mode)
P_smo_mode [2;2:1] = 11
P_smo_ovf_prot [1;0:0] = 0
*/
smo_reg = (0 << 6) | (0 << 5) | (0 << 4) | (0 << 3) |(3 << 1) | 0;
smo_reg = (0 << 6) | (0 << 5) | (0 << 3) |(3 << 1) | 0;
fifo_threshold = 512;
outmode = 5;
break;
Expand All @@ -212,7 +213,7 @@ static int dib3000mc_set_output_mode(struct dib3000mc_state *state, int mode)
}

if ((state->cfg->output_mpeg2_in_188_bytes))
smo_reg |= (1 << 5) ; //P_smo_rs_discard [1;5:5] = 1
smo_reg |= (1 << 5); // P_smo_rs_discard [1;5:5] = 1

outreg = dib3000mc_read_word(state, 244) & 0x07FF;
outreg |= (outmode << 11);
Expand Down

0 comments on commit 38a90b5

Please sign in to comment.