Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38255
b: refs/heads/master
c: ba7e6f3
h: refs/heads/master
i:
  38253: 50c9dcb
  38251: 964f2af
  38247: 321ca5e
  38239: 51adcc7
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 3, 2006
1 parent 54108ca commit bbb751e
Show file tree
Hide file tree
Showing 3 changed files with 12 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: 43e0602222e861957c82a7ddc7c4c2062c1aebbb
refs/heads/master: ba7e6f3e3e639de2597afffaae3fda75f6e6082d
10 changes: 10 additions & 0 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,13 @@ static int dvb_frontend_open(struct inode *inode, struct file *file)
if ((ret = dvb_generic_open (inode, file)) < 0)
return ret;

if (fe->ops.ts_bus_ctrl) {
if ((ret = fe->ops.ts_bus_ctrl (fe, 1)) < 0) {
dvb_generic_release (inode, file);
return ret;
}
}

if ((file->f_flags & O_ACCMODE) != O_RDONLY) {

/* normal tune mode when opened R/W */
Expand Down Expand Up @@ -1043,6 +1050,9 @@ static int dvb_frontend_release(struct inode *inode, struct file *file)
if ((file->f_flags & O_ACCMODE) != O_RDONLY)
fepriv->release_jiffies = jiffies;

if (fe->ops.ts_bus_ctrl)
fe->ops.ts_bus_ctrl (fe, 0);

return dvb_generic_release (inode, file);
}

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/dvb/dvb-core/dvb_frontend.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ struct dvb_frontend_ops {
int (*enable_high_lnb_voltage)(struct dvb_frontend* fe, long arg);
int (*dishnetwork_send_legacy_command)(struct dvb_frontend* fe, unsigned long cmd);
int (*i2c_gate_ctrl)(struct dvb_frontend* fe, int enable);
int (*ts_bus_ctrl)(struct dvb_frontend* fe, int acquire);

struct dvb_tuner_ops tuner_ops;
};
Expand Down

0 comments on commit bbb751e

Please sign in to comment.