Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45071
b: refs/heads/master
c: 2485eb0
h: refs/heads/master
i:
  45069: 1d647f0
  45067: d610861
  45063: 83b7ca6
  45055: dc1301f
v: v3
  • Loading branch information
audetto@tiscali.it authored and Mauro Carvalho Chehab committed Dec 27, 2006
1 parent 4bdab3f commit c6a9107
Show file tree
Hide file tree
Showing 4 changed files with 6 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: c6268461473e1c62e31afde657069c050ee8dea7
refs/heads/master: 2485eb0a553f2ac8c73267ce48fcdee8a9728d43
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/meye.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ static int meye_do_ioctl(struct inode *inode, struct file *file,
struct video_picture *p = arg;
if (p->depth != 16)
return -EINVAL;
if (p->palette != VIDEO_PALETTE_YUV422)
if (p->palette != VIDEO_PALETTE_YUV422 && p->palette != VIDEO_PALETTE_YUYV)
return -EINVAL;
mutex_lock(&meye.lock);
sonypi_camera_command(SONYPI_COMMAND_SETCAMERABRIGHTNESS,
Expand Down Expand Up @@ -978,7 +978,7 @@ static int meye_do_ioctl(struct inode *inode, struct file *file,

if (vm->frame >= gbuffers || vm->frame < 0)
return -EINVAL;
if (vm->format != VIDEO_PALETTE_YUV422)
if (vm->format != VIDEO_PALETTE_YUV422 && vm->format != VIDEO_PALETTE_YUYV)
return -EINVAL;
if (vm->height * vm->width * 2 > gbufsize)
return -EINVAL;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/video/w9966.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ static int w9966_v4l_do_ioctl(struct inode *inode, struct file *file,
case VIDIOCSPICT:
{
struct video_picture *vpic = arg;
if (vpic->depth != 16 || vpic->palette != VIDEO_PALETTE_YUV422)
if (vpic->depth != 16 || (vpic->palette != VIDEO_PALETTE_YUV422 && vpic->palette != VIDEO_PALETTE_YUYV))
return -EINVAL;

cam->brightness = vpic->brightness >> 8;
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/media/video/zoran_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ zr36057_set_vfe (struct zoran *zr,
reg |= (HorDcm << ZR36057_VFESPFR_HorDcm);
reg |= (VerDcm << ZR36057_VFESPFR_VerDcm);
reg |= (DispMode << ZR36057_VFESPFR_DispMode);
if (format->palette != VIDEO_PALETTE_YUV422)
if (format->palette != VIDEO_PALETTE_YUV422 && format->palette != VIDEO_PALETTE_YUYV)
reg |= ZR36057_VFESPFR_LittleEndian;
/* RJ: I don't know, why the following has to be the opposite
* of the corresponding ZR36060 setting, but only this way
Expand All @@ -441,6 +441,7 @@ zr36057_set_vfe (struct zoran *zr,
reg |= ZR36057_VFESPFR_TopField;
switch (format->palette) {

case VIDEO_PALETTE_YUYV:
case VIDEO_PALETTE_YUV422:
reg |= ZR36057_VFESPFR_YUV422;
break;
Expand Down

0 comments on commit c6a9107

Please sign in to comment.