[media] vpif_capture: move routing info from subdev to input

Routing information is a property of the input, not of the subdev.
One subdev may provide multiple inputs, each with its own routing
information.

Signed-off-by: Hans Verkuil <[email protected]>
Acked-by: Sekhar Nori <[email protected]>
Acked-by: Lad, Prabhakar <[email protected]>
Tested-by: Lad, Prabhakar <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Hans Verkuil 2012-09-20 09:06:25 -03:00 • committed by Mauro Carvalho Chehab
commit 7aaad13124
4 changed files with 19 additions and 12 deletions

View file

@ -37,8 +37,6 @@ struct vpif_interface {
struct vpif_subdev_info {
const char *name;
struct i2c_board_info board_info;
u32 input;
u32 output;
struct vpif_interface vpif_if;
};
@ -56,6 +54,8 @@ struct vpif_display_config {
struct vpif_input {
struct v4l2_input input;
const char *subdev_name;
u32 input_route;
u32 output_route;
};
struct vpif_capture_chan_config {