diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-01 02:52:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:22 -0400 |
commit | f41737ece472cd803ffb24ac9f5d6fdd1d871341 (patch) | |
tree | 26ac526ec381e26c46a857f3ce44c84e75331b01 /drivers/media/video/ivtv | |
parent | cc26b076cf8b1040ccc514302ef9a24042272ec3 (diff) |
V4L/DVB (11370): v4l2-subdev: move s_std from tuner to core.
s_std didn't belong in the tuner ops. Stricly speaking it should be part of
the video ops, but it is used by audio and tuner devices as well, so it is
more efficient to make it part of the core ops.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ivtv')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.c | 2 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-gpio.c | 2 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index cfaacf6096d0..e212337c6513 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.c +++ b/drivers/media/video/ivtv/ivtv-fileops.c | |||
@@ -857,7 +857,7 @@ int ivtv_v4l2_close(struct file *filp) | |||
857 | /* Mark that the radio is no longer in use */ | 857 | /* Mark that the radio is no longer in use */ |
858 | clear_bit(IVTV_F_I_RADIO_USER, &itv->i_flags); | 858 | clear_bit(IVTV_F_I_RADIO_USER, &itv->i_flags); |
859 | /* Switch tuner to TV */ | 859 | /* Switch tuner to TV */ |
860 | ivtv_call_all(itv, tuner, s_std, itv->std); | 860 | ivtv_call_all(itv, core, s_std, itv->std); |
861 | /* Select correct audio input (i.e. TV tuner or Line in) */ | 861 | /* Select correct audio input (i.e. TV tuner or Line in) */ |
862 | ivtv_audio_set_io(itv); | 862 | ivtv_audio_set_io(itv); |
863 | if (itv->hw_flags & IVTV_HW_SAA711X) | 863 | if (itv->hw_flags & IVTV_HW_SAA711X) |
diff --git a/drivers/media/video/ivtv/ivtv-gpio.c b/drivers/media/video/ivtv/ivtv-gpio.c index 3321983d89e5..0dd5f53b7319 100644 --- a/drivers/media/video/ivtv/ivtv-gpio.c +++ b/drivers/media/video/ivtv/ivtv-gpio.c | |||
@@ -342,10 +342,10 @@ static const struct v4l2_subdev_core_ops subdev_core_ops = { | |||
342 | .g_ctrl = subdev_g_ctrl, | 342 | .g_ctrl = subdev_g_ctrl, |
343 | .s_ctrl = subdev_s_ctrl, | 343 | .s_ctrl = subdev_s_ctrl, |
344 | .queryctrl = subdev_queryctrl, | 344 | .queryctrl = subdev_queryctrl, |
345 | .s_std = subdev_s_std, | ||
345 | }; | 346 | }; |
346 | 347 | ||
347 | static const struct v4l2_subdev_tuner_ops subdev_tuner_ops = { | 348 | static const struct v4l2_subdev_tuner_ops subdev_tuner_ops = { |
348 | .s_std = subdev_s_std, | ||
349 | .s_radio = subdev_s_radio, | 349 | .s_radio = subdev_s_radio, |
350 | .g_tuner = subdev_g_tuner, | 350 | .g_tuner = subdev_g_tuner, |
351 | .s_tuner = subdev_s_tuner, | 351 | .s_tuner = subdev_s_tuner, |
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index 9a0424298af1..052fbe9cde86 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -1121,7 +1121,7 @@ int ivtv_s_std(struct file *file, void *fh, v4l2_std_id *std) | |||
1121 | IVTV_DEBUG_INFO("Switching standard to %llx.\n", (unsigned long long)itv->std); | 1121 | IVTV_DEBUG_INFO("Switching standard to %llx.\n", (unsigned long long)itv->std); |
1122 | 1122 | ||
1123 | /* Tuner */ | 1123 | /* Tuner */ |
1124 | ivtv_call_all(itv, tuner, s_std, itv->std); | 1124 | ivtv_call_all(itv, core, s_std, itv->std); |
1125 | 1125 | ||
1126 | if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) { | 1126 | if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT) { |
1127 | /* set display standard */ | 1127 | /* set display standard */ |