diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-02 10:26:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:27 -0400 |
commit | 5325b4272a53b43f55b82cc369c310c2fcacdca1 (patch) | |
tree | f2a1491de3d05901152e0e271c0cb5ce381884c2 /drivers/media/video/vino.c | |
parent | c0ff29150d37615ac703802ab3edc775fd402491 (diff) |
V4L/DVB (11380): v4l2-subdev: change s_routing prototype
It is no longer needed to use a struct pointer as argument, since v4l2_subdev
doesn't require that ioctl-like approach anymore. Instead just pass the input,
output and config (new!) arguments directly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/vino.c')
-rw-r--r-- | drivers/media/video/vino.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 2fb745464311..43e0998adb53 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -2565,12 +2565,11 @@ static int vino_acquire_input(struct vino_channel_settings *vcs) | |||
2565 | int input; | 2565 | int input; |
2566 | int data_norm; | 2566 | int data_norm; |
2567 | v4l2_std_id norm; | 2567 | v4l2_std_id norm; |
2568 | struct v4l2_routing route = { 0, 0 }; | ||
2569 | 2568 | ||
2570 | input = VINO_INPUT_COMPOSITE; | 2569 | input = VINO_INPUT_COMPOSITE; |
2571 | 2570 | ||
2572 | route.input = vino_get_saa7191_input(input); | 2571 | ret = decoder_call(video, s_routing, |
2573 | ret = decoder_call(video, s_routing, &route); | 2572 | vino_get_saa7191_input(input), 0, 0); |
2574 | if (ret) { | 2573 | if (ret) { |
2575 | ret = -EINVAL; | 2574 | ret = -EINVAL; |
2576 | goto out; | 2575 | goto out; |
@@ -2656,10 +2655,9 @@ static int vino_set_input(struct vino_channel_settings *vcs, int input) | |||
2656 | if (vino_drvdata->decoder_owner == vcs->channel) { | 2655 | if (vino_drvdata->decoder_owner == vcs->channel) { |
2657 | int data_norm; | 2656 | int data_norm; |
2658 | v4l2_std_id norm; | 2657 | v4l2_std_id norm; |
2659 | struct v4l2_routing route = { 0, 0 }; | ||
2660 | 2658 | ||
2661 | route.input = vino_get_saa7191_input(input); | 2659 | ret = decoder_call(video, s_routing, |
2662 | ret = decoder_call(video, s_routing, &route); | 2660 | vino_get_saa7191_input(input), 0, 0); |
2663 | if (ret) { | 2661 | if (ret) { |
2664 | vino_drvdata->decoder_owner = VINO_NO_CHANNEL; | 2662 | vino_drvdata->decoder_owner = VINO_NO_CHANNEL; |
2665 | ret = -EINVAL; | 2663 | ret = -EINVAL; |