au8522: prevent false-positive lock status From: Steven Toth This decreases scan time in Queens, New York from 28 minutes to 7 minutes, with the exact same services found. Signed-off-by: Michael Krufky --- linux-ubuntu-modules-2.6.24-2.6.24/ubuntu/media/au0828/au8522.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- linux-ubuntu-modules-2.6.24-2.6.24/ubuntu/media/au0828/au8522.c.orig +++ linux-ubuntu-modules-2.6.24-2.6.24/ubuntu/media/au0828/au8522.c @@ -526,10 +526,8 @@ if (state->current_modulation == VSB_8) { dprintk("%s() Checking VSB_8\n", __func__); reg = au8522_readreg(state, 0x4088); - if (reg & 0x01) - *status |= FE_HAS_VITERBI; - if (reg & 0x02) - *status |= FE_HAS_LOCK | FE_HAS_SYNC; + if ((reg & 0x03) == 0x03) + *status |= FE_HAS_LOCK | FE_HAS_SYNC | FE_HAS_VITERBI; } else { dprintk("%s() Checking QAM\n", __func__); reg = au8522_readreg(state, 0x4541);