Lines Matching defs:srate
454 static int cx24123_set_symbolrate(struct cx24123_state *state, u32 srate)
461 if ((srate > state->frontend.ops.info.symbol_rate_max) ||
462 (srate < state->frontend.ops.info.symbol_rate_min))
467 if (srate < (XTAL*2)/2)
469 else if (srate < (XTAL*3)/2)
471 else if (srate < (XTAL*4)/2)
473 else if (srate < (XTAL*5)/2)
475 else if (srate < (XTAL*6)/2)
477 else if (srate < (XTAL*7)/2)
479 else if (srate < (XTAL*8)/2)
487 /* SYSSymbolRate[21:0] = (srate << 23) / sample_rate */
489 tmp = ((u64)srate) << 23;
500 sample_gain = cx24123_int_log2(sample_rate, srate);
504 dprintk("srate=%d, ratio=0x%08x, sample_rate=%i sample_gain=%d\n",
505 srate, ratio, sample_rate, sample_gain);