Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250320
b: refs/heads/master
c: e23d9ae
h: refs/heads/master
v: v3
  • Loading branch information
Andreas Oberritter authored and Mauro Carvalho Chehab committed May 20, 2011
1 parent e0fbcca commit 2782451
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 15cc2bb385ced95be35d13895a67bfe52066778c
refs/heads/master: e23d9ae343f9d196382ab213612d76126f9c99af
16 changes: 8 additions & 8 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,14 +1196,7 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
struct dtv_property *tvp,
struct file *file)
{
int r = 0;

/* Allow the frontend to validate incoming properties */
if (fe->ops.get_property)
r = fe->ops.get_property(fe, tvp);

if (r < 0)
return r;
int r;

switch(tvp->cmd) {
case DTV_FREQUENCY:
Expand Down Expand Up @@ -1323,6 +1316,13 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
return -EINVAL;
}

/* Allow the frontend to override outgoing properties */
if (fe->ops.get_property) {
r = fe->ops.get_property(fe, tvp);
if (r < 0)
return r;
}

dtv_property_dump(tvp);

return 0;
Expand Down

0 comments on commit 2782451

Please sign in to comment.