Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1631
b: refs/heads/master
c: 86360a3
h: refs/heads/master
i:
  1629: 75e79a1
  1627: 03e2f6e
  1623: bf08656
  1615: e726c0e
  1599: 0c9bf76
v: v3
  • Loading branch information
Manu Abraham authored and Linus Torvalds committed May 28, 2005
1 parent a4261ec commit ebd34a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 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: 8f6da8f166228c1720d16216a9d82d630c58de57
refs/heads/master: 86360a3edeb6b7b6230dc13ef6835d2851409502
27 changes: 9 additions & 18 deletions trunk/drivers/media/dvb/bt8xx/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,12 +907,7 @@ static int dst_tone_power_cmd(struct dst_state* state)
return 0;

paket[4] = state->tx_tuna[4];

if (state->tone == SEC_TONE_ON)
paket[2] = 0x02;
else
paket[2] = 0;

paket[2] = state->tx_tuna[2];
paket[3] = state->tx_tuna[3];
paket[7] = dst_check_sum (paket, 7);
dst_command(state, paket, 8);
Expand Down Expand Up @@ -1094,28 +1089,24 @@ static int dst_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage)

static int dst_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
{
u8 *val;
struct dst_state* state = fe->demodulator_priv;

state->tone = tone;

if (state->dst_type == DST_TYPE_IS_TERR)
return 0;

val = &state->tx_tuna[0];

val[8] &= ~0x1;

switch (tone) {
case SEC_TONE_OFF:
break;
case SEC_TONE_OFF:
state->tx_tuna[2] = 0xff;
break;

case SEC_TONE_ON:
val[8] |= 1;
break;
case SEC_TONE_ON:
state->tx_tuna[2] = 0x02;
break;

default:
return -EINVAL;
default:
return -EINVAL;
}
dst_tone_power_cmd(state);

Expand Down

0 comments on commit ebd34a5

Please sign in to comment.