From 424b720a5ac042b07b0b1045f36c915b617ebaf1 Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Fri, 4 Jul 2003 16:28:31 +0000 Subject: fix DMX_GET_STC to get the msb right --- linux/drivers/media/dvb/ttpci/av7110.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux/drivers') 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)); -- cgit v1.2.3