Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268439
b: refs/heads/master
c: 0bf42c9
h: refs/heads/master
i:
  268437: 301615d
  268435: c9cd8d9
  268431: 4fb572a
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent cf0a7bd commit e892290
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 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: 9eadb1711cd76710efd89b4b801e2180b2938d5f
refs/heads/master: 0bf42c9e4f45b8ec8699d903d3509343de6fe1ca
33 changes: 16 additions & 17 deletions trunk/drivers/staging/cx25821/cx25821-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,26 +830,25 @@ static int video_open(struct file *file)
return -ENODEV;
}

file->private_data = fh;
fh->dev = dev;
fh->type = type;
fh->width = 720;
fh->channel_id = ch_id;

if (dev->tvnorm & V4L2_STD_PAL_BG || dev->tvnorm & V4L2_STD_PAL_DK)
fh->height = 576;
else
fh->height = 480;
file->private_data = fh;
fh->dev = dev;
fh->type = type;
fh->width = 720;
fh->channel_id = ch_id;

if (dev->tvnorm & V4L2_STD_PAL_BG || dev->tvnorm & V4L2_STD_PAL_DK)
fh->height = 576;
else
fh->height = 480;

dev->channel_opened = fh->channel_id;
pix_format =
(dev->channels[ch_id].pixel_formats ==
PIXEL_FRMT_411) ? V4L2_PIX_FMT_Y41P : V4L2_PIX_FMT_YUYV;
fh->fmt = cx25821_format_by_fourcc(pix_format);
dev->channel_opened = fh->channel_id;
pix_format = (dev->channels[ch_id].pixel_formats == PIXEL_FRMT_411) ?
V4L2_PIX_FMT_Y41P : V4L2_PIX_FMT_YUYV;
fh->fmt = cx25821_format_by_fourcc(pix_format);

v4l2_prio_open(&dev->channels[ch_id].prio, &fh->prio);
v4l2_prio_open(&dev->channels[ch_id].prio, &fh->prio);

videobuf_queue_sg_init(&fh->vidq, &cx25821_video_qops,
videobuf_queue_sg_init(&fh->vidq, &cx25821_video_qops,
&dev->pci->dev, &dev->slock,
V4L2_BUF_TYPE_VIDEO_CAPTURE,
V4L2_FIELD_INTERLACED,
Expand Down

0 comments on commit e892290

Please sign in to comment.