diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-11 18:40:00 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-11 18:40:00 -0300 |
commit | 91b24eda72df7f1320bf3b064515c96039bfca0d (patch) | |
tree | 99e8ea8f19c28758417d4c3398523595359d48c7 /linux/drivers/media/video/saa7134/saa7134-empress.c | |
parent | 2fca1e165c0f13087c2eaed3d0e4a4c4fbb24fe5 (diff) | |
parent | fd4694cdbe15f591792ec5166c3d9791c4b1e34f (diff) | |
download | mediapointer-dvb-s2-91b24eda72df7f1320bf3b064515c96039bfca0d.tar.gz mediapointer-dvb-s2-91b24eda72df7f1320bf3b064515c96039bfca0d.tar.bz2 |
merge: http://linuxtv.org/hg/~dougsland/video4linux
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-empress.c')
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-empress.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-empress.c b/linux/drivers/media/video/saa7134/saa7134-empress.c index dd22a5215..96334a20b 100644 --- a/linux/drivers/media/video/saa7134/saa7134-empress.c +++ b/linux/drivers/media/video/saa7134/saa7134-empress.c @@ -255,6 +255,16 @@ static int empress_s_fmt_vid_cap(struct file *file, void *priv, return 0; } +static int empress_try_fmt_vid_cap(struct file *file, void *priv, + struct v4l2_format *f) +{ + struct saa7134_dev *dev = file->private_data; + + f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; + f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; + + return 0; +} static int empress_reqbufs(struct file *file, void *priv, struct v4l2_requestbuffers *p) @@ -450,6 +460,7 @@ static const struct v4l2_file_operations ts_fops = static const struct v4l2_ioctl_ops ts_ioctl_ops = { .vidioc_querycap = empress_querycap, .vidioc_enum_fmt_vid_cap = empress_enum_fmt_vid_cap, + .vidioc_try_fmt_vid_cap = empress_try_fmt_vid_cap, .vidioc_s_fmt_vid_cap = empress_s_fmt_vid_cap, .vidioc_g_fmt_vid_cap = empress_g_fmt_vid_cap, .vidioc_reqbufs = empress_reqbufs, |