Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285497
b: refs/heads/master
c: eeacf14
h: refs/heads/master
i:
  285495: 54ce632
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Dec 31, 2011
1 parent 0a1c9c5 commit 937f58f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14d24d148c7521b2b88b396652e36f55d061e195
refs/heads/master: eeacf1477b4460e2dbc37c9164bb46a65ab8f084
13 changes: 13 additions & 0 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,6 +1252,19 @@ static void dtv_set_default_delivery_caps(const struct dvb_frontend *fe, struct
const struct dvb_frontend_info *info = &fe->ops.info;
u32 ncaps = 0;

/*
* If the frontend explicitly sets a list, use it, instead of
* filling based on the info->type
*/
if (fe->ops.delsys[ncaps]) {
while (fe->ops.delsys[ncaps] && ncaps < MAX_DELSYS) {
p->u.buffer.data[ncaps] = fe->ops.delsys[ncaps];
ncaps++;
}
p->u.buffer.len = ncaps;
return;
}

switch (info->type) {
case FE_QPSK:
p->u.buffer.data[ncaps++] = SYS_DVBS;
Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@

#include "dvbdev.h"

/*
* Maximum number of Delivery systems per frontend. It
* should be smaller or equal to 32
*/
#define MAX_DELSYS 8

struct dvb_frontend_tune_settings {
int min_delay_ms;
int step_size;
Expand Down Expand Up @@ -254,6 +260,8 @@ struct dvb_frontend_ops {

struct dvb_frontend_info info;

u8 delsys[MAX_DELSYS];

void (*release)(struct dvb_frontend* fe);
void (*release_sec)(struct dvb_frontend* fe);

Expand Down

0 comments on commit 937f58f

Please sign in to comment.