} case VIDIOC_QUERYSTD: { return vino_v4l2_querystd(vcs, arg); 
static int vino_do_ioctl(struct inode *inode, struct file *file,		      unsigned int cmd, void *arg){	struct video_device *dev = video_devdata(file);	struct vino_channel_settings *vcs = video_get_drvdata(dev);	switch (_IOC_TYPE(cmd)) {	case 'v':		dprintk("ioctl(): V4L1 unsupported (0x%08x)\n", cmd);		break;	case 'V':		dprintk("ioctl(): V4L2 %s (0x%08x)\n",			v4l2_ioctl_names[_IOC_NR(cmd)], cmd);		break;	default:		dprintk("ioctl(): unsupported command 0x%08x\n", cmd);	}	switch (cmd) {	/* TODO: V4L1 interface (use compatibility layer?) */	/* V4L2 interface */	case VIDIOC_QUERYCAP: {		vino_v4l2_querycap(arg);		break;	}	case VIDIOC_ENUMINPUT: {		return vino_v4l2_enuminput(vcs, arg);	}	case VIDIOC_G_INPUT: {		return vino_v4l2_g_input(vcs, arg);	}	case VIDIOC_S_INPUT: {		return vino_v4l2_s_input(vcs, arg);	}	case VIDIOC_ENUMSTD: {		return vino_v4l2_enumstd(vcs, arg);	}	case VIDIOC_G_STD: {		return vino_v4l2_g_std(vcs, arg);	}	case VIDIOC_S_STD: {		return vino_v4l2_s_std(vcs, arg);	}	case VIDIOC_ENUM_FMT: {		return vino_v4l2_enum_fmt(vcs, arg);	}	case VIDIOC_TRY_FMT: {		return vino_v4l2_try_fmt(vcs, arg);	}	case VIDIOC_G_FMT: {		return vino_v4l2_g_fmt(vcs, arg);	}	case VIDIOC_S_FMT: {		return vino_v4l2_s_fmt(vcs, arg);	}	case VIDIOC_CROPCAP: {		return vino_v4l2_cropcap(vcs, arg);	}	case VIDIOC_G_CROP: {		return vino_v4l2_g_crop(vcs, arg);	}	case VIDIOC_S_CROP: {		return vino_v4l2_s_crop(vcs, arg);	}	case VIDIOC_G_PARM: {		return vino_v4l2_g_parm(vcs, arg);	}	case VIDIOC_S_PARM: {		return vino_v4l2_s_parm(vcs, arg);	}	case VIDIOC_REQBUFS: {		return vino_v4l2_reqbufs(vcs, arg);	}	case VIDIOC_QUERYBUF: {		return vino_v4l2_querybuf(vcs, arg);	}	case VIDIOC_QBUF: {		return vino_v4l2_qbuf(vcs, arg);	}	case VIDIOC_DQBUF: {		return vino_v4l2_dqbuf(vcs, arg, file->f_flags & O_NONBLOCK);	}	case VIDIOC_STREAMON: {		return vino_v4l2_streamon(vcs);	}	case VIDIOC_STREAMOFF: {		return vino_v4l2_streamoff(vcs);	}	case VIDIOC_QUERYCTRL: {		return vino_v4l2_queryctrl(vcs, arg);	}	case VIDIOC_G_CTRL: {		return vino_v4l2_g_ctrl(vcs, arg);	}	case VIDIOC_S_CTRL: {		return vino_v4l2_s_ctrl(vcs, arg);	}	default:		return -ENOIOCTLCMD;	}	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a637a114f36b94a1ad8b9867f43bac0414958420/vino.c/buggy/drivers/media/video/vino.c