From 23caf64033c6fb17b95219f3fd008ab328e06a10 Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Sat, 29 Nov 2003 04:32:22 +0000 Subject: set FE_HAS_LOCK only when all low-order bits are valid --- linux/drivers/media/dvb/frontends/alps_tdmb7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c index a7f11c305..2efad1eee 100644 --- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c +++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c @@ -333,7 +333,7 @@ static int tdmb7_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) if (sync & 0x10) *status |= FE_HAS_SYNC; - if (sync & 0x10) + if (*status == 0x0f) *status |= FE_HAS_LOCK; break; -- cgit v1.2.3