Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92755
b: refs/heads/master
c: bde316a
h: refs/heads/master
i:
  92753: 26b9f33
  92751: afdcc26
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent cb7297d commit 0f578c1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 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: bb8ce9d9143c0fe2b5cdf65fa41250446805a4be
refs/heads/master: bde316a4f1094f9a3da402c44f7315e1a94fb332
20 changes: 19 additions & 1 deletion trunk/drivers/media/video/pvrusb2/pvrusb2-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,31 @@ static int pvr2_dvb_adapter_exit(struct pvr2_dvb_adapter *adap)

static int pvr2_dvb_frontend_init(struct pvr2_dvb_adapter *adap)
{
struct pvr2_dvb_props *dvb_props = adap->pvr->hdw->hdw_desc->dvb_props;
struct pvr2_hdw *hdw = adap->pvr->hdw;
struct pvr2_dvb_props *dvb_props = hdw->hdw_desc->dvb_props;
int ret;

if (dvb_props == NULL) {
err("fe_props not defined!");
return -EINVAL;
}

/* FIXME: This code should be moved into the core,
* and should only be called if we don't already have
* control of the bus.
*
* We can't call "pvr2_dvb_bus_ctrl(adap->fe, 1)" from here,
* because adap->fe isn't defined yet.
*/
ret = pvr2_ctrl_set_value(pvr2_hdw_get_ctrl_by_id(hdw,
PVR2_CID_INPUT),
PVR2_CVAL_INPUT_DTV);
if (ret != 0)
return ret;

pvr2_hdw_commit_ctl(hdw);


if (dvb_props->frontend_attach == NULL) {
err("frontend_attach not defined!");
return -EINVAL;
Expand Down

0 comments on commit 0f578c1

Please sign in to comment.