val[7] = 0; val[8] = 0; } else if (state->dst_type == DST_TYPE_IS_CABLE) { /* guess till will get one */ freq = freq / 1000; val = &state->tx_tuna[0]; val[2] = (freq >> 16) & 0xff; val[3] = (freq >> 8) & 0xff; val[4] = (u8) freq; 
static int dst_set_freq(struct dst_state *state, u32 freq){	u8 *val;	state->frequency = freq;	if (debug > 4)		dprintk("%s: set Frequency %u\n", __FUNCTION__, freq);	if (state->dst_type == DST_TYPE_IS_SAT) {		freq = freq / 1000;		if (freq < 950 || freq > 2150)			return -EINVAL;		val = &state->tx_tuna[0];		val[2] = (freq >> 8) & 0x7f;		val[3] = (u8) freq;		val[4] = 1;		val[8] &= ~4;		if (freq < 1531)			val[8] |= 4;	} else if (state->dst_type == DST_TYPE_IS_TERR) {		freq = freq / 1000;		if (freq < 137000 || freq > 858000)			return -EINVAL;		val = &state->tx_tuna[0];		val[2] = (freq >> 16) & 0xff;		val[3] = (freq >> 8) & 0xff;		val[4] = (u8) freq;		val[5] = 0;		switch (state->bandwidth) {		case BANDWIDTH_6_MHZ:			val[6] = 6;			break;		case BANDWIDTH_7_MHZ:		case BANDWIDTH_AUTO:			val[6] = 7;			break;		case BANDWIDTH_8_MHZ:			val[6] = 8;			break;		}		val[7] = 0;		val[8] = 0;	} else if (state->dst_type == DST_TYPE_IS_CABLE) {		/* guess till will get one */		freq = freq / 1000;		val = &state->tx_tuna[0];		val[2] = (freq >> 16) & 0xff;		val[3] = (freq >> 8) & 0xff;		val[4] = (u8) freq;	} else		return -EINVAL;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/7d53421c6adce47d067b834c605daeafe1ff9356/dst.c/clean/drivers/media/dvb/bt8xx/dst.c