Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d2a35fb172845fe75c40a3ee9c95656c7c115e48
Commit:     d2a35fb172845fe75c40a3ee9c95656c7c115e48
Parent:     01f1e44fe8455b6c6c557a62119b8622fb99f5f2
Author:     Hans Verkuil <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 22 08:43:34 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:06:42 2007 -0300

    V4L/DVB (6089): ivtv: log in status if framebuffer uses YUV instead of RGB
    
    Signed-off-by: Hans Verkuil <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/ivtv/ivtv-ioctl.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c 
b/drivers/media/video/ivtv/ivtv-ioctl.c
index 0dde82f..bb59634 100644
--- a/drivers/media/video/ivtv/ivtv-ioctl.c
+++ b/drivers/media/video/ivtv/ivtv-ioctl.c
@@ -1270,7 +1270,7 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, 
unsigned int cmd, void
                                "Global and Local"
                        };
                        static const char * const pixel_format[] = {
-                               "Indexed",
+                               "RGB Indexed",
                                "RGB 5:6:5",
                                "ARGB 1:5:5:5",
                                "ARGB 1:4:4:4",
@@ -1278,6 +1278,14 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file 
*filp, unsigned int cmd, void
                                "5",
                                "6",
                                "7",
+                               "YUV Indexed",
+                               "YUV 5:6:5",
+                               "AYUV 1:5:5:5",
+                               "AYUV 1:4:4:4",
+                               "AYUV 8:8:8:8",
+                               "13",
+                               "14",
+                               "15",
                        };
 
                        ivtv_get_output(itv, itv->active_output, &vidout);
@@ -1290,10 +1298,11 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file 
*filp, unsigned int cmd, void
                                mode = OUT_NONE;
                        IVTV_INFO("Output Mode:  %s\n", output_modes[mode]);
                        ivtv_vapi_result(itv, data, CX2341X_OSD_GET_STATE, 0);
+                       data[0] |= (read_reg(0x2a00) >> 7) & 0x40;
                        IVTV_INFO("Overlay:      %s, Alpha: %s, Pixel Format: 
%s\n",
                                data[0] & 1 ? "On" : "Off",
                                alpha_mode[(data[0] >> 1) & 0x3],
-                               pixel_format[(data[0] >> 3) & 0x7]);
+                               pixel_format[(data[0] >> 3) & 0xf]);
                }
                IVTV_INFO("Tuner:  %s\n",
                        test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags) ? "Radio" 
: "TV");
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to