[linux-dvb] Common carrier_width

Igor M. Liplianin liplianin at tut.by
Fri Sep 26 19:07:09 CEST 2008


Would it be a common thing to implement calculation of carrier width?

static u32 carrier_width(u32 symbol_rate, fe_rolloff_t rolloff)
{
	u32 rlf;

	switch(rolloff) {
	case ROLLOFF_20:
		rlf = 20;
		break;
	case ROLLOFF_25:
		rlf = 25;
		break;
	default:
		rlf = 35;
		break;
	}

	return (symbol_rate  + (symbol_rate * rlf) / 100);
}


Igor



More information about the linux-dvb mailing list