Lines Matching full:snr
1215 static int lg2160_read_snr(struct dvb_frontend *fe, u16 *snr) in lg2160_read_snr() argument
1221 *snr = 0; in lg2160_read_snr()
1232 *snr = 0; in lg2160_read_snr()
1235 *snr = ((snr1 >> 4) * 100) + ((snr1 & 0x0f) * 10) + (snr2 >> 4); in lg2160_read_snr()
1237 *snr = (snr2 | (snr1 << 8)); in lg2160_read_snr()
1243 static int lg2161_read_snr(struct dvb_frontend *fe, u16 *snr) in lg2161_read_snr() argument
1249 *snr = 0; in lg2161_read_snr()
1260 *snr = 0; in lg2161_read_snr()
1263 *snr = ((snr1 >> 4) * 100) + ((snr1 & 0x0f) * 10) + (snr2 & 0x0f); in lg2161_read_snr()
1274 * Calculate strength from SNR up to 35dB in lg216x_read_signal_strength()
1275 * Even though the SNR can go higher than 35dB, in lg216x_read_signal_strength()
1280 u16 snr; in lg216x_read_signal_strength()
1285 ret = fe->ops.read_snr(fe, &snr); in lg216x_read_signal_strength()
1288 /* Rather than use the 8.8 value snr, use state->snr which is 8.24 */ in lg216x_read_signal_strength()
1290 if (state->snr >= 8960 * 0x10000) in lg216x_read_signal_strength()
1293 *strength = state->snr / 8960; in lg216x_read_signal_strength()