Skip to content

Commit

Permalink
V4L/DVB (9040): TTUSB-DEC DVB-S: claim to have lock
Browse files Browse the repository at this point in the history
As reported by BOUWSMA Barry the readout of the signal status doesn't work
on dec3000-s models. Since we don't know how to do it better, revert back
to the old behaviour and always report a signal lock.

Reported by Barry Bouwsma

Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Peter Beutner authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent bdc203e commit 4d2858c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions drivers/media/dvb/ttusb-dec/ttusbdecfe.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,17 @@ struct ttusbdecfe_state {
};


static int ttusbdecfe_read_status(struct dvb_frontend* fe, fe_status_t* status)
static int ttusbdecfe_dvbs_read_status(struct dvb_frontend *fe,
fe_status_t *status)
{
*status = FE_HAS_SIGNAL | FE_HAS_VITERBI |
FE_HAS_SYNC | FE_HAS_CARRIER | FE_HAS_LOCK;
return 0;
}


static int ttusbdecfe_dvbt_read_status(struct dvb_frontend *fe,
fe_status_t *status)
{
struct ttusbdecfe_state* state = fe->demodulator_priv;
u8 b[] = { 0x00, 0x00, 0x00, 0x00,
Expand Down Expand Up @@ -251,7 +261,7 @@ static struct dvb_frontend_ops ttusbdecfe_dvbt_ops = {

.get_tune_settings = ttusbdecfe_dvbt_get_tune_settings,

.read_status = ttusbdecfe_read_status,
.read_status = ttusbdecfe_dvbt_read_status,
};

static struct dvb_frontend_ops ttusbdecfe_dvbs_ops = {
Expand All @@ -273,7 +283,7 @@ static struct dvb_frontend_ops ttusbdecfe_dvbs_ops = {

.set_frontend = ttusbdecfe_dvbs_set_frontend,

.read_status = ttusbdecfe_read_status,
.read_status = ttusbdecfe_dvbs_read_status,

.diseqc_send_master_cmd = ttusbdecfe_dvbs_diseqc_send_master_cmd,
.set_voltage = ttusbdecfe_dvbs_set_voltage,
Expand Down

0 comments on commit 4d2858c

Please sign in to comment.