summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2003-07-04 16:28:31 +0000
committerJohannes Stezenbach <devnull@localhost>2003-07-04 16:28:31 +0000
commit424b720a5ac042b07b0b1045f36c915b617ebaf1 (patch)
treee7bb10b269fe930e27b9b81353a41db3dbe67c64 /linux
parentbc302f567b32f3a28044ac0eb5cb54624ff145ee (diff)
downloadmediapointer-dvb-s2-424b720a5ac042b07b0b1045f36c915b617ebaf1.tar.gz
mediapointer-dvb-s2-424b720a5ac042b07b0b1045f36c915b617ebaf1.tar.bz2
fix DMX_GET_STC to get the msb right
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 887415ea4..941ea7c78 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -3258,8 +3258,8 @@ static int dvb_get_stc(struct dmx_demux *demux, unsigned int num,
DEB_EE(("av7110: fwstc = %04hx %04hx %04hx %04hx\n",
fwstc[0], fwstc[1], fwstc[2], fwstc[3]));
- *stc = (((uint64_t)fwstc[2] & 1) << 32) |
- (((uint64_t)fwstc[1]) << 16) | ((uint64_t)fwstc[0]);
+ *stc = (((uint64_t)(~fwstc[2]) & 1) << 32) |
+ (((uint64_t) fwstc[1]) << 16) | ((uint64_t)fwstc[0]);
*base = 1;
DEB_EE(("av7110: stc = %lu\n", (unsigned long)*stc));