vcs->input = VINO_INPUT_COMPOSITE; vcs->data_norm = VINO_DATA_NORM_PAL; 
static int vino_acquire_input(struct vino_channel_settings *vcs){	int ret = 0;	dprintk("vino_acquire_input():\n");	spin_lock(&vino_drvdata->input_lock);	/* First try D1 and then SAA7191 */	if (vino_drvdata->camera.driver	    && (vino_drvdata->camera.owner == VINO_NO_CHANNEL)) {		if (i2c_use_client(vino_drvdata->camera.driver)) {			ret = -ENODEV;			goto out;		}		vino_drvdata->camera.owner = vcs->channel;		vcs->input = VINO_INPUT_D1;		vcs->data_norm = VINO_DATA_NORM_D1;	} else if (vino_drvdata->decoder.driver		   && (vino_drvdata->decoder.owner == VINO_NO_CHANNEL)) {		int saa7191_input;		int saa7191_norm;		if (i2c_use_client(vino_drvdata->decoder.driver)) {			ret = -ENODEV;			goto out;		}		vino_drvdata->decoder.owner = vcs->channel;		vcs->input = VINO_INPUT_COMPOSITE;		vcs->data_norm = VINO_DATA_NORM_PAL;		saa7191_input = vino_get_saa7191_input(vcs->input);		i2c_decoder_command(DECODER_SET_INPUT, &saa7191_input);		saa7191_norm = vino_get_saa7191_norm(vcs->data_norm);		i2c_decoder_command(DECODER_SAA7191_SET_NORM, &saa7191_norm);	} else {		vcs->input = (vcs->channel == VINO_CHANNEL_A) ?			vino_drvdata->b.input : vino_drvdata->a.input;		vcs->data_norm = (vcs->channel == VINO_CHANNEL_A) ?			vino_drvdata->b.data_norm : vino_drvdata->a.data_norm;	}	if (vcs->input == VINO_INPUT_NONE) {		ret = -ENODEV;		goto out;	}	if (vino_is_input_owner(vcs)) {		vino_set_default_clipping(vcs);		vino_set_default_framerate(vcs);	}	dprintk("vino_acquire_input(): %s\n", vino_inputs[vcs->input].name);out:	spin_unlock(&vino_drvdata->input_lock);	return ret;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a637a114f36b94a1ad8b9867f43bac0414958420/vino.c/buggy/drivers/media/video/vino.c