From: Boris Dores Date: Sun, 19 Oct 2008 20:00:30 +0000 (-0300) Subject: V4L/DVB (9301): pvrusb2: Keep MPEG PTSs from drifting away X-Git-Tag: v2.6.28-rc1~37^2~31 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3f93d1adca658201c64251c43a147cc79d468c3f;p=linux-2.6-omap-h63xx.git V4L/DVB (9301): pvrusb2: Keep MPEG PTSs from drifting away (Mike Isely) This change was empirically figured out by Boris Dores after empirically comparing against behavior in the Windows driver. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/pvrusb2/pvrusb2-encoder.c b/drivers/media/video/pvrusb2/pvrusb2-encoder.c index a1252d673b4..273d2a1aa22 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-encoder.c +++ b/drivers/media/video/pvrusb2/pvrusb2-encoder.c @@ -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; }