Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306241
b: refs/heads/master
c: 598e978
h: refs/heads/master
i:
  306239: 1db134b
v: v3
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed May 7, 2012
1 parent 0922ef7 commit 502158a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: d8329f8e17af85c568768fb268e0695dd1fc8148
refs/heads/master: 598e978aadd39e24749e0da5a6cff568570b1d00
10 changes: 6 additions & 4 deletions trunk/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1309,10 +1309,12 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,
struct usb_device *usbdev;
int mindevnum;
int unit_number;
struct pvr2_hdw *hdw;
int *nr_ptr = NULL;
dip->v4lp = vp;

usbdev = pvr2_hdw_get_dev(vp->channel.mc_head->hdw);
hdw = vp->channel.mc_head->hdw;
usbdev = pvr2_hdw_get_dev(hdw);
dip->v4l_type = v4l_type;
switch (v4l_type) {
case VFL_TYPE_GRABBER:
Expand Down Expand Up @@ -1351,13 +1353,13 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,
{
int val;
pvr2_ctrl_get_value(
pvr2_hdw_get_ctrl_by_id(vp->channel.mc_head->hdw,
pvr2_hdw_get_ctrl_by_id(hdw,
PVR2_CID_STDAVAIL), &val);
dip->devbase.tvnorms = (v4l2_std_id)val;
}

mindevnum = -1;
unit_number = pvr2_hdw_get_unit_number(vp->channel.mc_head->hdw);
unit_number = pvr2_hdw_get_unit_number(hdw);
if (nr_ptr && (unit_number >= 0) && (unit_number < PVR_NUM)) {
mindevnum = nr_ptr[unit_number];
}
Expand All @@ -1374,7 +1376,7 @@ static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip,
video_device_node_name(&dip->devbase),
pvr2_config_get_name(dip->config));

pvr2_hdw_v4l_store_minor_number(vp->channel.mc_head->hdw,
pvr2_hdw_v4l_store_minor_number(hdw,
dip->minor_type,dip->devbase.minor);
}

Expand Down

0 comments on commit 502158a

Please sign in to comment.