]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/pvrusb2/pvrusb2-encoder.c
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[linux-2.6-omap-h63xx.git] / drivers / media / video / pvrusb2 / pvrusb2-encoder.c
index a1252d673b411331e36811dac8cdea5d65e052f4..54ac5349dee2f29d47303269cf07ee99cc26706c 100644 (file)
@@ -347,7 +347,7 @@ static int pvr2_encoder_prep_config(struct pvr2_hdw *hdw)
        int encMisc3Arg = 0;
 
 #if 0
-       /* This inexplicable bit happens in the Hauppage windows
+       /* This inexplicable bit happens in the Hauppauge windows
           driver (for both 24xxx and 29xxx devices).  However I
           currently see no difference in behavior with or without
           this stuff.  Leave this here as a note of its existence,
@@ -402,6 +402,10 @@ static int pvr2_encoder_prep_config(struct pvr2_hdw *hdw)
        ret |= pvr2_encoder_vcmd(hdw, CX2341X_ENC_MISC,4, 0,3,0,0);
        ret |= pvr2_encoder_vcmd(hdw, CX2341X_ENC_MISC,4,15,0,0,0);
 
+       /* prevent the PTSs from slowly drifting away in the generated
+          MPEG stream */
+       ret |= pvr2_encoder_vcmd(hdw, CX2341X_ENC_MISC, 2, 4, 1);
+
        return ret;
 }