1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  *  cx18 video interface functions
4  *
5  *  Copyright (C) 2007  Hans Verkuil <hverkuil@xs4all.nl>
6  */
7 
8 #include "cx18-driver.h"
9 #include "cx18-video.h"
10 #include "cx18-cards.h"
11 
cx18_video_set_io(struct cx18 * cx)12 void cx18_video_set_io(struct cx18 *cx)
13 {
14 	int inp = cx->active_input;
15 
16 	v4l2_subdev_call(cx->sd_av, video, s_routing,
17 			cx->card->video_inputs[inp].video_input, 0, 0);
18 }
19