[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 <hans.verkuil@cisco.com> Acked-by: Sekhar Nori <nsekhar@ti.com> Acked-by: Lad, Prabhakar <prabhakar.lad@ti.com> Tested-by: Lad, Prabhakar <prabhakar.lad@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
33bf178660
commit
7aaad13124
@@ -1182,8 +1182,11 @@ static const struct vpif_input da850_ch0_inputs[] = {
|
||||
.index = 0,
|
||||
.name = "Composite",
|
||||
.type = V4L2_INPUT_TYPE_CAMERA,
|
||||
.capabilities = V4L2_IN_CAP_STD,
|
||||
.std = TVP514X_STD_ALL,
|
||||
},
|
||||
.input_route = INPUT_CVBS_VI2B,
|
||||
.output_route = OUTPUT_10BIT_422_EMBEDDED_SYNC,
|
||||
.subdev_name = TVP5147_CH0,
|
||||
},
|
||||
};
|
||||
@@ -1194,8 +1197,11 @@ static const struct vpif_input da850_ch1_inputs[] = {
|
||||
.index = 0,
|
||||
.name = "S-Video",
|
||||
.type = V4L2_INPUT_TYPE_CAMERA,
|
||||
.capabilities = V4L2_IN_CAP_STD,
|
||||
.std = TVP514X_STD_ALL,
|
||||
},
|
||||
.input_route = INPUT_SVIDEO_VI2C_VI1C,
|
||||
.output_route = OUTPUT_10BIT_422_EMBEDDED_SYNC,
|
||||
.subdev_name = TVP5147_CH1,
|
||||
},
|
||||
};
|
||||
@@ -1207,8 +1213,6 @@ static struct vpif_subdev_info da850_vpif_capture_sdev_info[] = {
|
||||
I2C_BOARD_INFO("tvp5146", 0x5d),
|
||||
.platform_data = &tvp5146_pdata,
|
||||
},
|
||||
.input = INPUT_CVBS_VI2B,
|
||||
.output = OUTPUT_10BIT_422_EMBEDDED_SYNC,
|
||||
.vpif_if = {
|
||||
.if_type = VPIF_IF_BT656,
|
||||
.hd_pol = 1,
|
||||
@@ -1222,8 +1226,6 @@ static struct vpif_subdev_info da850_vpif_capture_sdev_info[] = {
|
||||
I2C_BOARD_INFO("tvp5146", 0x5c),
|
||||
.platform_data = &tvp5146_pdata,
|
||||
},
|
||||
.input = INPUT_SVIDEO_VI2C_VI1C,
|
||||
.output = OUTPUT_10BIT_422_EMBEDDED_SYNC,
|
||||
.vpif_if = {
|
||||
.if_type = VPIF_IF_BT656,
|
||||
.hd_pol = 1,
|
||||
|
Reference in New Issue
Block a user