stv0299_set_voltage(fe, last ? SEC_VOLTAGE_13 : SEC_VOLTAGE_18);
stv0299_writeregI (state, 0x0c, reg0x0c | (last ? lv_mask : 0x50));
static int stv0299_send_legacy_dish_cmd(struct dvb_frontend* fe, u32 cmd){	u8 last = 1;	int i;	/* reset voltage at the end	if((0x50 & stv0299_readreg (i2c, 0x0c)) == 0x50)		cmd |= 0x80;	else		cmd &= 0x7F;	*/	cmd = cmd << 1;	dprintk("%s switch command: 0x%04x\n",__FUNCTION__, cmd);	stv0299_set_voltage(fe,SEC_VOLTAGE_18);	msleep(32);	for (i=0; i<9; i++) {		if((cmd & 0x01) != last) {			stv0299_set_voltage(fe, last ? SEC_VOLTAGE_13 : SEC_VOLTAGE_18);			last = (last) ? 0 : 1;		}		cmd = cmd >> 1;		if (i != 8)			msleep(8);	}	return 0;}