diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-05-28 11:16:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:07:32 -0400 |
commit | 78b526a43561d7e5e702ba27948e422dfbc4bea1 (patch) | |
tree | 67c8b7150b51f6a82275af6f5baaedff4eaf40c0 /drivers/media/video/bt8xx | |
parent | 0e3bd2b9996dfa4105617e2369155823df6b389a (diff) |
V4L/DVB (7949): videodev: renamed the vidioc_*_fmt_* callbacks
The naming for the callbacks that handle the VIDIOC_ENUM_FMT and
VIDIOC_S/G/TRY_FMT ioctls was very confusing. Renamed it to match
the v4l2_buf_type name.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 44 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttv-vbi.c | 6 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttvp.h | 6 |
3 files changed, 28 insertions, 28 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 0165aac533bf..c4aa802494ff 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -2448,7 +2448,7 @@ pix_format_set_size (struct v4l2_pix_format * f, | |||
2448 | } | 2448 | } |
2449 | } | 2449 | } |
2450 | 2450 | ||
2451 | static int bttv_g_fmt_cap(struct file *file, void *priv, | 2451 | static int bttv_g_fmt_vid_cap(struct file *file, void *priv, |
2452 | struct v4l2_format *f) | 2452 | struct v4l2_format *f) |
2453 | { | 2453 | { |
2454 | struct bttv_fh *fh = priv; | 2454 | struct bttv_fh *fh = priv; |
@@ -2461,7 +2461,7 @@ static int bttv_g_fmt_cap(struct file *file, void *priv, | |||
2461 | return 0; | 2461 | return 0; |
2462 | } | 2462 | } |
2463 | 2463 | ||
2464 | static int bttv_g_fmt_overlay(struct file *file, void *priv, | 2464 | static int bttv_g_fmt_vid_overlay(struct file *file, void *priv, |
2465 | struct v4l2_format *f) | 2465 | struct v4l2_format *f) |
2466 | { | 2466 | { |
2467 | struct bttv_fh *fh = priv; | 2467 | struct bttv_fh *fh = priv; |
@@ -2472,7 +2472,7 @@ static int bttv_g_fmt_overlay(struct file *file, void *priv, | |||
2472 | return 0; | 2472 | return 0; |
2473 | } | 2473 | } |
2474 | 2474 | ||
2475 | static int bttv_try_fmt_cap(struct file *file, void *priv, | 2475 | static int bttv_try_fmt_vid_cap(struct file *file, void *priv, |
2476 | struct v4l2_format *f) | 2476 | struct v4l2_format *f) |
2477 | { | 2477 | { |
2478 | const struct bttv_format *fmt; | 2478 | const struct bttv_format *fmt; |
@@ -2532,7 +2532,7 @@ static int bttv_try_fmt_cap(struct file *file, void *priv, | |||
2532 | return 0; | 2532 | return 0; |
2533 | } | 2533 | } |
2534 | 2534 | ||
2535 | static int bttv_try_fmt_overlay(struct file *file, void *priv, | 2535 | static int bttv_try_fmt_vid_overlay(struct file *file, void *priv, |
2536 | struct v4l2_format *f) | 2536 | struct v4l2_format *f) |
2537 | { | 2537 | { |
2538 | struct bttv_fh *fh = priv; | 2538 | struct bttv_fh *fh = priv; |
@@ -2542,7 +2542,7 @@ static int bttv_try_fmt_overlay(struct file *file, void *priv, | |||
2542 | /* adjust_crop */ 0); | 2542 | /* adjust_crop */ 0); |
2543 | } | 2543 | } |
2544 | 2544 | ||
2545 | static int bttv_s_fmt_cap(struct file *file, void *priv, | 2545 | static int bttv_s_fmt_vid_cap(struct file *file, void *priv, |
2546 | struct v4l2_format *f) | 2546 | struct v4l2_format *f) |
2547 | { | 2547 | { |
2548 | int retval; | 2548 | int retval; |
@@ -2556,7 +2556,7 @@ static int bttv_s_fmt_cap(struct file *file, void *priv, | |||
2556 | if (0 != retval) | 2556 | if (0 != retval) |
2557 | return retval; | 2557 | return retval; |
2558 | 2558 | ||
2559 | retval = bttv_try_fmt_cap(file, priv, f); | 2559 | retval = bttv_try_fmt_vid_cap(file, priv, f); |
2560 | if (0 != retval) | 2560 | if (0 != retval) |
2561 | return retval; | 2561 | return retval; |
2562 | 2562 | ||
@@ -2591,7 +2591,7 @@ static int bttv_s_fmt_cap(struct file *file, void *priv, | |||
2591 | return 0; | 2591 | return 0; |
2592 | } | 2592 | } |
2593 | 2593 | ||
2594 | static int bttv_s_fmt_overlay(struct file *file, void *priv, | 2594 | static int bttv_s_fmt_vid_overlay(struct file *file, void *priv, |
2595 | struct v4l2_format *f) | 2595 | struct v4l2_format *f) |
2596 | { | 2596 | { |
2597 | struct bttv_fh *fh = priv; | 2597 | struct bttv_fh *fh = priv; |
@@ -2661,7 +2661,7 @@ static int bttv_querycap(struct file *file, void *priv, | |||
2661 | return 0; | 2661 | return 0; |
2662 | } | 2662 | } |
2663 | 2663 | ||
2664 | static int bttv_enum_fmt_vbi(struct file *file, void *priv, | 2664 | static int bttv_enum_fmt_vbi_cap(struct file *file, void *priv, |
2665 | struct v4l2_fmtdesc *f) | 2665 | struct v4l2_fmtdesc *f) |
2666 | { | 2666 | { |
2667 | if (0 != f->index) | 2667 | if (0 != f->index) |
@@ -2692,7 +2692,7 @@ static int bttv_enum_fmt_cap_ovr(struct v4l2_fmtdesc *f) | |||
2692 | return i; | 2692 | return i; |
2693 | } | 2693 | } |
2694 | 2694 | ||
2695 | static int bttv_enum_fmt_cap(struct file *file, void *priv, | 2695 | static int bttv_enum_fmt_vid_cap(struct file *file, void *priv, |
2696 | struct v4l2_fmtdesc *f) | 2696 | struct v4l2_fmtdesc *f) |
2697 | { | 2697 | { |
2698 | int rc = bttv_enum_fmt_cap_ovr(f); | 2698 | int rc = bttv_enum_fmt_cap_ovr(f); |
@@ -2703,7 +2703,7 @@ static int bttv_enum_fmt_cap(struct file *file, void *priv, | |||
2703 | return 0; | 2703 | return 0; |
2704 | } | 2704 | } |
2705 | 2705 | ||
2706 | static int bttv_enum_fmt_overlay(struct file *file, void *priv, | 2706 | static int bttv_enum_fmt_vid_overlay(struct file *file, void *priv, |
2707 | struct v4l2_fmtdesc *f) | 2707 | struct v4l2_fmtdesc *f) |
2708 | { | 2708 | { |
2709 | int rc; | 2709 | int rc; |
@@ -3362,18 +3362,18 @@ static struct video_device bttv_video_template = | |||
3362 | .fops = &bttv_fops, | 3362 | .fops = &bttv_fops, |
3363 | .minor = -1, | 3363 | .minor = -1, |
3364 | .vidioc_querycap = bttv_querycap, | 3364 | .vidioc_querycap = bttv_querycap, |
3365 | .vidioc_enum_fmt_cap = bttv_enum_fmt_cap, | 3365 | .vidioc_enum_fmt_vid_cap = bttv_enum_fmt_vid_cap, |
3366 | .vidioc_g_fmt_cap = bttv_g_fmt_cap, | 3366 | .vidioc_g_fmt_vid_cap = bttv_g_fmt_vid_cap, |
3367 | .vidioc_try_fmt_cap = bttv_try_fmt_cap, | 3367 | .vidioc_try_fmt_vid_cap = bttv_try_fmt_vid_cap, |
3368 | .vidioc_s_fmt_cap = bttv_s_fmt_cap, | 3368 | .vidioc_s_fmt_vid_cap = bttv_s_fmt_vid_cap, |
3369 | .vidioc_enum_fmt_overlay = bttv_enum_fmt_overlay, | 3369 | .vidioc_enum_fmt_vid_overlay = bttv_enum_fmt_vid_overlay, |
3370 | .vidioc_g_fmt_overlay = bttv_g_fmt_overlay, | 3370 | .vidioc_g_fmt_vid_overlay = bttv_g_fmt_vid_overlay, |
3371 | .vidioc_try_fmt_overlay = bttv_try_fmt_overlay, | 3371 | .vidioc_try_fmt_vid_overlay = bttv_try_fmt_vid_overlay, |
3372 | .vidioc_s_fmt_overlay = bttv_s_fmt_overlay, | 3372 | .vidioc_s_fmt_vid_overlay = bttv_s_fmt_vid_overlay, |
3373 | .vidioc_enum_fmt_vbi = bttv_enum_fmt_vbi, | 3373 | .vidioc_enum_fmt_vbi_cap = bttv_enum_fmt_vbi_cap, |
3374 | .vidioc_g_fmt_vbi = bttv_g_fmt_vbi, | 3374 | .vidioc_g_fmt_vbi_cap = bttv_g_fmt_vbi_cap, |
3375 | .vidioc_try_fmt_vbi = bttv_try_fmt_vbi, | 3375 | .vidioc_try_fmt_vbi_cap = bttv_try_fmt_vbi_cap, |
3376 | .vidioc_s_fmt_vbi = bttv_s_fmt_vbi, | 3376 | .vidioc_s_fmt_vbi_cap = bttv_s_fmt_vbi_cap, |
3377 | .vidioc_g_audio = bttv_g_audio, | 3377 | .vidioc_g_audio = bttv_g_audio, |
3378 | .vidioc_s_audio = bttv_s_audio, | 3378 | .vidioc_s_audio = bttv_s_audio, |
3379 | .vidioc_cropcap = bttv_cropcap, | 3379 | .vidioc_cropcap = bttv_cropcap, |
diff --git a/drivers/media/video/bt8xx/bttv-vbi.c b/drivers/media/video/bt8xx/bttv-vbi.c index bfdbc469e30f..68f28e5fa040 100644 --- a/drivers/media/video/bt8xx/bttv-vbi.c +++ b/drivers/media/video/bt8xx/bttv-vbi.c | |||
@@ -303,7 +303,7 @@ static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm, | |||
303 | return 0; | 303 | return 0; |
304 | } | 304 | } |
305 | 305 | ||
306 | int bttv_try_fmt_vbi(struct file *file, void *f, struct v4l2_format *frt) | 306 | int bttv_try_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) |
307 | { | 307 | { |
308 | struct bttv_fh *fh = f; | 308 | struct bttv_fh *fh = f; |
309 | struct bttv *btv = fh->btv; | 309 | struct bttv *btv = fh->btv; |
@@ -321,7 +321,7 @@ int bttv_try_fmt_vbi(struct file *file, void *f, struct v4l2_format *frt) | |||
321 | } | 321 | } |
322 | 322 | ||
323 | 323 | ||
324 | int bttv_s_fmt_vbi(struct file *file, void *f, struct v4l2_format *frt) | 324 | int bttv_s_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) |
325 | { | 325 | { |
326 | struct bttv_fh *fh = f; | 326 | struct bttv_fh *fh = f; |
327 | struct bttv *btv = fh->btv; | 327 | struct bttv *btv = fh->btv; |
@@ -369,7 +369,7 @@ int bttv_s_fmt_vbi(struct file *file, void *f, struct v4l2_format *frt) | |||
369 | } | 369 | } |
370 | 370 | ||
371 | 371 | ||
372 | int bttv_g_fmt_vbi(struct file *file, void *f, struct v4l2_format *frt) | 372 | int bttv_g_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) |
373 | { | 373 | { |
374 | struct bttv_fh *fh = f; | 374 | struct bttv_fh *fh = f; |
375 | const struct bttv_tvnorm *tvnorm; | 375 | const struct bttv_tvnorm *tvnorm; |
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h index 27da7b423275..955e6bcd8ae0 100644 --- a/drivers/media/video/bt8xx/bttvp.h +++ b/drivers/media/video/bt8xx/bttvp.h | |||
@@ -254,9 +254,9 @@ int bttv_overlay_risc(struct bttv *btv, struct bttv_overlay *ov, | |||
254 | /* ---------------------------------------------------------- */ | 254 | /* ---------------------------------------------------------- */ |
255 | /* bttv-vbi.c */ | 255 | /* bttv-vbi.c */ |
256 | 256 | ||
257 | int bttv_try_fmt_vbi(struct file *file, void *fh, struct v4l2_format *f); | 257 | int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); |
258 | int bttv_g_fmt_vbi(struct file *file, void *fh, struct v4l2_format *f); | 258 | int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); |
259 | int bttv_s_fmt_vbi(struct file *file, void *fh, struct v4l2_format *f); | 259 | int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); |
260 | 260 | ||
261 | extern struct videobuf_queue_ops bttv_vbi_qops; | 261 | extern struct videobuf_queue_ops bttv_vbi_qops; |
262 | 262 | ||