Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113998
b: refs/heads/master
c: 4d2858c
h: refs/heads/master
v: v3
  • Loading branch information
Peter Beutner authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 5fe0dec commit 08e0f6d
Show file tree
Hide file tree
Showing 2 changed files with 14 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: bdc203e156ce938e12d957912bd29ca53d160540
refs/heads/master: 4d2858c65bbd9a98d109b3548b4742d7fd74dcb0
16 changes: 13 additions & 3 deletions trunk/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 08e0f6d

Please sign in to comment.