Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=db71b7df76dab261cc9f27525765211bd58345b1
Commit:     db71b7df76dab261cc9f27525765211bd58345b1
Parent:     4f393828d1dae28905447fcc9845ba0b5f414c62
Author:     Mike Isely <[EMAIL PROTECTED]>
AuthorDate: Sat Apr 28 20:08:33 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Wed May 9 10:12:33 2007 -0300

    V4L/DVB (5574): Pvrusb2: Improve handling of PAL-60 video standard
    
    This patch originated with Servaas Vandenberghe <[EMAIL PROTECTED]>
    and has been further developed a bit (to preserve saa7115 behavior).
    
    These changes allow for correct operation of PAL-60 video (Servaas
    tested this against a PAL-B/G tuner with the video standard overridden
    as a module option).
    
    Signed-off-by: Mike Isely <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/pvrusb2/pvrusb2-encoder.c |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/drivers/media/video/pvrusb2/pvrusb2-encoder.c 
b/drivers/media/video/pvrusb2/pvrusb2-encoder.c
index 5669c8c..20b6144 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-encoder.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-encoder.c
@@ -391,22 +391,29 @@ static int pvr2_encoder_prep_config(struct pvr2_hdw *hdw)
 int pvr2_encoder_configure(struct pvr2_hdw *hdw)
 {
        int ret;
+       int val;
        pvr2_trace(PVR2_TRACE_ENCODER,"pvr2_encoder_configure"
                   " (cx2341x module)");
        hdw->enc_ctl_state.port = CX2341X_PORT_STREAMING;
        hdw->enc_ctl_state.width = hdw->res_hor_val;
        hdw->enc_ctl_state.height = hdw->res_ver_val;
-       hdw->enc_ctl_state.is_50hz = ((hdw->std_mask_cur &
-                                      (V4L2_STD_NTSC|V4L2_STD_PAL_M)) ?
+       hdw->enc_ctl_state.is_50hz = ((hdw->std_mask_cur & V4L2_STD_525_60) ?
                                      0 : 1);
 
        ret = 0;
 
        ret |= pvr2_encoder_prep_config(hdw);
 
+       /* saa7115: 0xf0 */
+       val = 0xf0;
+       if (hdw->hdw_type == PVR2_HDW_TYPE_24XXX) {
+               /* ivtv cx25840: 0x140 */
+               val = 0x140;
+       }
+
        if (!ret) ret = pvr2_encoder_vcmd(
                hdw,CX2341X_ENC_SET_NUM_VSYNC_LINES, 2,
-               0xf0, 0xf0);
+               val, val);
 
        /* setup firmware to notify us about some events (don't know why...) */
        if (!ret) ret = pvr2_encoder_vcmd(
-
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