static int dst_get_tuna(struct dst_state* state){	int retval;	if ((state->diseq_flags & ATTEMPT_TUNE) == 0)		return 0;	state->diseq_flags &= ~(HAS_LOCK);	if (!dst_wait_dst_ready(state, NO_DELAY))		return 0;	if (state->type_flags & DST_TYPE_HAS_NEWTUNE) {		/* how to get variable length reply ???? */		retval = read_dst(state, state->rx_tuna, 10);	} else {		retval = read_dst(state, &state->rx_tuna[2], FIXED_COMM);	}	if (retval < 0) {		dprintk("%s: read not successful\n", __FUNCTION__);		return 0;	}	if (state->type_flags & DST_TYPE_HAS_NEWTUNE) {		if (state->rx_tuna[9] != dst_check_sum(&state->rx_tuna[0], 9)) {			dprintk("%s: checksum failure?\n", __FUNCTION__);			return 0;		}	} else {		if (state->rx_tuna[9] != dst_check_sum(&state->rx_tuna[2], 7)) {			dprintk("%s: checksum failure?\n", __FUNCTION__);			return 0;		}	}	if (state->rx_tuna[2] == 0 && state->rx_tuna[3] == 0)		return 0;	state->decode_freq = ((state->rx_tuna[2] & 0x7f) << 8) + state->rx_tuna[3];	state->decode_lock = 1;	state->diseq_flags |= HAS_LOCK;	return 1;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a427de6f72bc0d83ebb1d87f9003c5e1009f21cd/dst.c/clean/drivers/media/dvb/bt8xx/dst.c