diff options
author | Manu Abraham <devnull@localhost> | 2005-05-26 20:20:10 +0000 |
---|---|---|
committer | Manu Abraham <devnull@localhost> | 2005-05-26 20:20:10 +0000 |
commit | 1b8b9bfb2b55a7c900fbab41ceee7733c0b7ddef (patch) | |
tree | d70091dbdac3bc18d770e77625c381d099f919eb /linux | |
parent | 14a73bc1c9eef4432f4e8b1ad62c8557a65835e4 (diff) | |
download | mediapointer-dvb-s2-1b8b9bfb2b55a7c900fbab41ceee7733c0b7ddef.tar.gz mediapointer-dvb-s2-1b8b9bfb2b55a7c900fbab41ceee7733c0b7ddef.tar.bz2 |
Fix 22k tone control bug
Signed-off-by: Manu Abraham <manu@kromtek.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dst.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dst.c b/linux/drivers/media/dvb/bt8xx/dst.c index 33cca69d6..8104240a2 100644 --- a/linux/drivers/media/dvb/bt8xx/dst.c +++ b/linux/drivers/media/dvb/bt8xx/dst.c @@ -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); @@ -1094,7 +1089,6 @@ 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; @@ -1102,20 +1096,17 @@ static int dst_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t 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); |