diff options
author | Mike Isely <isely@pobox.com> | 2008-10-19 15:00:30 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2008-10-19 15:00:30 -0500 |
commit | ee5a0d9291be9e4a6074a71eada4bf40cb9dd506 (patch) | |
tree | 016ff80d5746103f1630f07786e1c9f04eff45df /linux/drivers/media | |
parent | fb62eda9894fa969ba3b15cce9f32fd74bdc42e7 (diff) | |
download | mediapointer-dvb-s2-ee5a0d9291be9e4a6074a71eada4bf40cb9dd506.tar.gz mediapointer-dvb-s2-ee5a0d9291be9e4a6074a71eada4bf40cb9dd506.tar.bz2 |
pvrusb2: Keep MPEG PTSs from drifting away
From: Boris Dores <babal@via.ecp.fr>
(Mike Isely) This change was empirically figured out by Boris Dores
after empirically comparing against behavior in the Windows driver.
Priority: normal
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c b/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c index da5b5a7e9..744bc192c 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-encoder.c @@ -435,6 +435,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; } |