Commit:     35378434e739ac869d0146a47133a0f9d6fd2ee8
Parent:     0180bf32793f9fadf3b541ebb43d770e5c9d0274
Author:     Trent Piepho <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 22 17:44:54 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Sun Nov 4 21:41:16 2007 -0200

    V4L/DVB (6391): bttv: SPICT ioctl doesn't work with vlc
    The bttv driver instists that the depth specified in the call to VIDIOCSPICT
    match the pixel format specified in the same call.
    vlc doesn't set the depth field, which makes the SPICT ioctl always fail.
    The V4L1 standard is not clear on how most operation are supposed to work, 
    this is no exception.  The depth field would appear to be entirely 
    as the pixel format specifies a specific depth.  It could be that this field
    was only meant for output from the *G*PICT ioctl and should be ignored in
    *S*PICT.  This is in fact what the v4l1-compat wrapper does.
    Signed-off-by: Trent Piepho <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/video/bt8xx/bttv-driver.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/media/video/bt8xx/bttv-driver.c 
index 9feeb63..56e4350 100644
--- a/drivers/media/video/bt8xx/bttv-driver.c
+++ b/drivers/media/video/bt8xx/bttv-driver.c
@@ -2881,10 +2881,6 @@ static int bttv_do_ioctl(struct inode *inode, struct 
file *file,
                if (NULL == fmt)
                        return -EINVAL;
-               if (fmt->depth != pic->depth) {
-                       retval = -EINVAL;
-                       goto fh_unlock_and_return;
-               }
                if (fmt->flags & FORMAT_FLAGS_RAW) {
                        /* VIDIOCMCAPTURE uses gbufsize, not RAW_BPL *
                           RAW_LINES * 2. F1 is stored at offset 0, F2
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to