Lines Matching refs:snr
52 u32 snr; /* Result of last SNR calculation */
262 We re-write the snr equation as:
281 static int or51211_read_snr(struct dvb_frontend* fe, u16* snr)
293 pr_warn("error writing snr reg\n");
301 state->snr = calculate_snr(rec_buf[0], 89599047);
302 *snr = (state->snr) >> 16;
304 dprintk("noise = 0x%02x, snr = %d.%02d dB\n", rec_buf[0],
305 state->snr >> 24, (((state->snr>>8) & 0xffff) * 100) >> 16);
316 u16 snr;
319 ret = fe->ops.read_snr(fe, &snr);
322 /* Rather than use the 8.8 value snr, use state->snr which is 8.24 */
324 if (state->snr >= 8960 * 0x10000)
327 *strength = state->snr / 8960;