struct saa7127_state *state = (struct saa7127_state *)i2c_get_clientdata(client); 
struct saa7127_state *state = i2c_get_clientdata(client); 
static int saa7127_set_output_type(struct i2c_client *client, int output){	struct saa7127_state *state = (struct saa7127_state *)i2c_get_clientdata(client);	switch (output) {	case SAA7127_OUTPUT_TYPE_RGB:		state->reg_2d = 0x0f;	/* RGB + CVBS (for sync) */		state->reg_3a = 0x13;	/* by default switch YUV to RGB-matrix on */		break;	case SAA7127_OUTPUT_TYPE_COMPOSITE:		state->reg_2d = 0x08;	/* 00001000 CVBS only, RGB DAC's off (high impedance mode) */		state->reg_3a = 0x13;	/* by default switch YUV to RGB-matrix on */		break;	case SAA7127_OUTPUT_TYPE_SVIDEO:		state->reg_2d = 0xff;	/* 11111111  croma -> R, luma -> CVBS + G + B */		state->reg_3a = 0x13;	/* by default switch YUV to RGB-matrix on */		break;	case SAA7127_OUTPUT_TYPE_YUV_V:		state->reg_2d = 0x4f;	/* reg 2D = 01001111, all DAC's on, RGB + VBS */		state->reg_3a = 0x0b;	/* reg 3A = 00001011, bypass RGB-matrix */		break;	case SAA7127_OUTPUT_TYPE_YUV_C:		state->reg_2d = 0x0f;	/* reg 2D = 00001111, all DAC's on, RGB + CVBS */		state->reg_3a = 0x0b;	/* reg 3A = 00001011, bypass RGB-matrix */		break;	case SAA7127_OUTPUT_TYPE_BOTH:		state->reg_2d = 0xbf;		state->reg_3a = 0x13;	/* by default switch YUV to RGB-matrix on */		break;	default:		return -EINVAL;	}	saa7127_dbg("Selecting %s output type\n", output_strs[output]);	/* Configure Encoder */	saa7127_write(client, 0x2d, state->reg_2d);	saa7127_write(client, 0x3a, state->reg_3a | state->reg_3a_cb);	state->output_type = output;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/419d4e753a5dbd6e19ad45cb4045ac213f15eac4/saa7127.c/clean/drivers/media/video/saa7127.c