Skip to content

Commit

Permalink
V4L/DVB (8962): zr36067: VIDIOC_S_FMT returns the colorspace value
Browse files Browse the repository at this point in the history
Ioctl VIDIOC_S_FMT is supposed to fill the colorspace value in the
returned buffer.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Oct 12, 2008
1 parent 4c522e7 commit 8ca4dae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/video/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2917,6 +2917,8 @@ zoran_do_ioctl (struct inode *inode,
fmt->fmt.pix.bytesperline = 0;
fmt->fmt.pix.sizeimage =
fh->jpg_buffers.buffer_size;
fmt->fmt.pix.colorspace =
V4L2_COLORSPACE_SMPTE170M;

/* we hereby abuse this variable to show that
* we're gonna do mjpeg capture */
Expand Down Expand Up @@ -2976,6 +2978,8 @@ zoran_do_ioctl (struct inode *inode,
fmt->fmt.pix.sizeimage =
fh->v4l_settings.height *
fh->v4l_settings.bytesperline;
fmt->fmt.pix.colorspace =
fh->v4l_settings.format->colorspace;
if (BUZ_MAX_HEIGHT <
(fh->v4l_settings.height * 2))
fmt->fmt.pix.field =
Expand Down

0 comments on commit 8ca4dae

Please sign in to comment.