diff options
author | Andy Walls <awalls@radix.net> | 2008-06-21 07:36:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:10:43 -0400 |
commit | 3b6fe58f0f18880200969e813d0181d1bdab0966 (patch) | |
tree | e059efc521b5eeb2b0f022f7c7e56d3a8f3b7a86 /drivers/media/video/cx18/cx18-driver.c | |
parent | 1a05221bc45ccb1b5c583a87dc3639bfc10c4f10 (diff) |
V4L/DVB (8082): cx18: convert to video_ioctl2()
cx18: convert driver to use video_ioctl2(). Pushed down ioctl debug
messages and priority checks as well. Still left serialization lock in
place for now. #if 0'ed out sliced vbi ioctl code for now.
Patch heavily based on similar changes made to ivtv by Hans Verkuil.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx18/cx18-driver.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index d9178843e8d2..e9c7e07b9fed 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -818,6 +818,9 @@ int cx18_init_on_first_open(struct cx18 *cx) | |||
818 | int video_input; | 818 | int video_input; |
819 | int fw_retry_count = 3; | 819 | int fw_retry_count = 3; |
820 | struct v4l2_frequency vf; | 820 | struct v4l2_frequency vf; |
821 | struct cx18_open_id fh; | ||
822 | |||
823 | fh.cx = cx; | ||
821 | 824 | ||
822 | if (test_bit(CX18_F_I_FAILED, &cx->i_flags)) | 825 | if (test_bit(CX18_F_I_FAILED, &cx->i_flags)) |
823 | return -ENXIO; | 826 | return -ENXIO; |
@@ -869,13 +872,13 @@ int cx18_init_on_first_open(struct cx18 *cx) | |||
869 | 872 | ||
870 | video_input = cx->active_input; | 873 | video_input = cx->active_input; |
871 | cx->active_input++; /* Force update of input */ | 874 | cx->active_input++; /* Force update of input */ |
872 | cx18_v4l2_ioctls(cx, NULL, VIDIOC_S_INPUT, &video_input); | 875 | cx18_s_input(NULL, &fh, video_input); |
873 | 876 | ||
874 | /* Let the VIDIOC_S_STD ioctl do all the work, keeps the code | 877 | /* Let the VIDIOC_S_STD ioctl do all the work, keeps the code |
875 | in one place. */ | 878 | in one place. */ |
876 | cx->std++; /* Force full standard initialization */ | 879 | cx->std++; /* Force full standard initialization */ |
877 | cx18_v4l2_ioctls(cx, NULL, VIDIOC_S_STD, &cx->tuner_std); | 880 | cx18_s_std(NULL, &fh, &cx->tuner_std); |
878 | cx18_v4l2_ioctls(cx, NULL, VIDIOC_S_FREQUENCY, &vf); | 881 | cx18_s_frequency(NULL, &fh, &vf); |
879 | return 0; | 882 | return 0; |
880 | } | 883 | } |
881 | 884 | ||