Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74810
b: refs/heads/master
c: 33f7771
h: refs/heads/master
v: v3
  • Loading branch information
Hartmut Hackmann authored and Mauro Carvalho Chehab committed Dec 11, 2007
1 parent 16e366c commit 66b88a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: f4b8b3ae13b2246cf7e1b998f0292f3297d03d41
refs/heads/master: 33f7771411c1f815208f6593d8fde8f9a135cea5
14 changes: 7 additions & 7 deletions trunk/drivers/media/dvb/frontends/tda10086.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static int tda10086_init(struct dvb_frontend* fe)
tda10086_write_byte(state, 0x3d, 0x80);

// setup SEC
tda10086_write_byte(state, 0x36, 0x00); // all SEC off
tda10086_write_byte(state, 0x36, 0x80); // all SEC off, no 22k tone
tda10086_write_byte(state, 0x34, (((1<<19) * (22000/1000)) / (SACLK/1000))); // } tone frequency
tda10086_write_byte(state, 0x35, (((1<<19) * (22000/1000)) / (SACLK/1000)) >> 8); // }

Expand All @@ -183,13 +183,13 @@ static int tda10086_set_tone (struct dvb_frontend* fe, fe_sec_tone_mode_t tone)

dprintk ("%s\n", __FUNCTION__);

switch(tone) {
switch (tone) {
case SEC_TONE_OFF:
tda10086_write_byte(state, 0x36, 0x00);
tda10086_write_byte(state, 0x36, 0x80);
break;

case SEC_TONE_ON:
tda10086_write_byte(state, 0x36, 0x01);
tda10086_write_byte(state, 0x36, 0x81);
break;
}

Expand All @@ -212,7 +212,7 @@ static int tda10086_send_master_cmd (struct dvb_frontend* fe,
for(i=0; i< cmd->msg_len; i++) {
tda10086_write_byte(state, 0x48+i, cmd->msg[i]);
}
tda10086_write_byte(state, 0x36, 0x08 | ((cmd->msg_len - 1) << 4));
tda10086_write_byte(state, 0x36, 0x88 | ((cmd->msg_len - 1) << 4));

tda10086_diseqc_wait(state);

Expand All @@ -230,11 +230,11 @@ static int tda10086_send_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t minic

switch(minicmd) {
case SEC_MINI_A:
tda10086_write_byte(state, 0x36, 0x04);
tda10086_write_byte(state, 0x36, 0x84);
break;

case SEC_MINI_B:
tda10086_write_byte(state, 0x36, 0x06);
tda10086_write_byte(state, 0x36, 0x86);
break;
}

Expand Down

0 comments on commit 66b88a3

Please sign in to comment.