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/ivtv/ivtv-gpio.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/ivtv/ivtv-gpio.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-gpio.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/media/video/ivtv/ivtv-gpio.c b/drivers/media/video/ivtv/ivtv-gpio.c index 0dd5f53b7319..ceb05bdcaf62 100644 --- a/drivers/media/video/ivtv/ivtv-gpio.c +++ b/drivers/media/video/ivtv/ivtv-gpio.c | |||
@@ -248,15 +248,16 @@ static int subdev_s_std(struct v4l2_subdev *sd, v4l2_std_id std) | |||
248 | return 0; | 248 | return 0; |
249 | } | 249 | } |
250 | 250 | ||
251 | static int subdev_s_audio_routing(struct v4l2_subdev *sd, const struct v4l2_routing *route) | 251 | static int subdev_s_audio_routing(struct v4l2_subdev *sd, |
252 | u32 input, u32 output, u32 config) | ||
252 | { | 253 | { |
253 | struct ivtv *itv = sd_to_ivtv(sd); | 254 | struct ivtv *itv = sd_to_ivtv(sd); |
254 | u16 mask, data; | 255 | u16 mask, data; |
255 | 256 | ||
256 | if (route->input > 2) | 257 | if (input > 2) |
257 | return -EINVAL; | 258 | return -EINVAL; |
258 | mask = itv->card->gpio_audio_input.mask; | 259 | mask = itv->card->gpio_audio_input.mask; |
259 | switch (route->input) { | 260 | switch (input) { |
260 | case 0: | 261 | case 0: |
261 | data = itv->card->gpio_audio_input.tuner; | 262 | data = itv->card->gpio_audio_input.tuner; |
262 | break; | 263 | break; |
@@ -318,17 +319,18 @@ static int subdev_log_status(struct v4l2_subdev *sd) | |||
318 | return 0; | 319 | return 0; |
319 | } | 320 | } |
320 | 321 | ||
321 | static int subdev_s_video_routing(struct v4l2_subdev *sd, const struct v4l2_routing *route) | 322 | static int subdev_s_video_routing(struct v4l2_subdev *sd, |
323 | u32 input, u32 output, u32 config) | ||
322 | { | 324 | { |
323 | struct ivtv *itv = sd_to_ivtv(sd); | 325 | struct ivtv *itv = sd_to_ivtv(sd); |
324 | u16 mask, data; | 326 | u16 mask, data; |
325 | 327 | ||
326 | if (route->input > 2) /* 0:Tuner 1:Composite 2:S-Video */ | 328 | if (input > 2) /* 0:Tuner 1:Composite 2:S-Video */ |
327 | return -EINVAL; | 329 | return -EINVAL; |
328 | mask = itv->card->gpio_video_input.mask; | 330 | mask = itv->card->gpio_video_input.mask; |
329 | if (route->input == 0) | 331 | if (input == 0) |
330 | data = itv->card->gpio_video_input.tuner; | 332 | data = itv->card->gpio_video_input.tuner; |
331 | else if (route->input == 1) | 333 | else if (input == 1) |
332 | data = itv->card->gpio_video_input.composite; | 334 | data = itv->card->gpio_video_input.composite; |
333 | else | 335 | else |
334 | data = itv->card->gpio_video_input.svideo; | 336 | data = itv->card->gpio_video_input.svideo; |