diff options
Diffstat (limited to 'drivers/media/video/v4l2-common.c')
-rw-r--r-- | drivers/media/video/v4l2-common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c index ad92e07e74f7..bffe48275eb0 100644 --- a/drivers/media/video/v4l2-common.c +++ b/drivers/media/video/v4l2-common.c | |||
@@ -59,6 +59,7 @@ | |||
59 | #include <asm/io.h> | 59 | #include <asm/io.h> |
60 | #include <asm/div64.h> | 60 | #include <asm/div64.h> |
61 | #include <linux/video_decoder.h> | 61 | #include <linux/video_decoder.h> |
62 | #define __OLD_VIDIOC_ /* To allow fixing old calls*/ | ||
62 | #include <media/v4l2-common.h> | 63 | #include <media/v4l2-common.h> |
63 | 64 | ||
64 | #ifdef CONFIG_KMOD | 65 | #ifdef CONFIG_KMOD |
@@ -424,7 +425,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) | |||
424 | case TUNER_SET_TYPE_ADDR: | 425 | case TUNER_SET_TYPE_ADDR: |
425 | case TUNER_SET_STANDBY: | 426 | case TUNER_SET_STANDBY: |
426 | case TDA9887_SET_CONFIG: | 427 | case TDA9887_SET_CONFIG: |
428 | #ifdef __OLD_VIDIOC_ | ||
427 | case VIDIOC_OVERLAY_OLD: | 429 | case VIDIOC_OVERLAY_OLD: |
430 | #endif | ||
428 | case VIDIOC_STREAMOFF: | 431 | case VIDIOC_STREAMOFF: |
429 | case VIDIOC_G_OUTPUT: | 432 | case VIDIOC_G_OUTPUT: |
430 | case VIDIOC_S_OUTPUT: | 433 | case VIDIOC_S_OUTPUT: |
@@ -440,7 +443,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) | |||
440 | case VIDIOC_G_AUDIO: | 443 | case VIDIOC_G_AUDIO: |
441 | case VIDIOC_S_AUDIO: | 444 | case VIDIOC_S_AUDIO: |
442 | case VIDIOC_ENUMAUDIO: | 445 | case VIDIOC_ENUMAUDIO: |
446 | #ifdef __OLD_VIDIOC_ | ||
443 | case VIDIOC_G_AUDIO_OLD: | 447 | case VIDIOC_G_AUDIO_OLD: |
448 | #endif | ||
444 | { | 449 | { |
445 | struct v4l2_audio *p=arg; | 450 | struct v4l2_audio *p=arg; |
446 | 451 | ||
@@ -451,7 +456,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) | |||
451 | case VIDIOC_G_AUDOUT: | 456 | case VIDIOC_G_AUDOUT: |
452 | case VIDIOC_S_AUDOUT: | 457 | case VIDIOC_S_AUDOUT: |
453 | case VIDIOC_ENUMAUDOUT: | 458 | case VIDIOC_ENUMAUDOUT: |
459 | #ifdef __OLD_VIDIOC_ | ||
454 | case VIDIOC_G_AUDOUT_OLD: | 460 | case VIDIOC_G_AUDOUT_OLD: |
461 | #endif | ||
455 | { | 462 | { |
456 | struct v4l2_audioout *p=arg; | 463 | struct v4l2_audioout *p=arg; |
457 | printk ("%s: index=%d, name=%s, capability=%d, mode=%d\n", s, | 464 | printk ("%s: index=%d, name=%s, capability=%d, mode=%d\n", s, |
@@ -496,7 +503,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) | |||
496 | } | 503 | } |
497 | case VIDIOC_G_CTRL: | 504 | case VIDIOC_G_CTRL: |
498 | case VIDIOC_S_CTRL: | 505 | case VIDIOC_S_CTRL: |
506 | #ifdef __OLD_VIDIOC_ | ||
499 | case VIDIOC_S_CTRL_OLD: | 507 | case VIDIOC_S_CTRL_OLD: |
508 | #endif | ||
500 | { | 509 | { |
501 | struct v4l2_control *p=arg; | 510 | struct v4l2_control *p=arg; |
502 | printk ("%s: id=%d, value=%d\n", s, p->id, p->value); | 511 | printk ("%s: id=%d, value=%d\n", s, p->id, p->value); |
@@ -511,7 +520,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) | |||
511 | break; | 520 | break; |
512 | } | 521 | } |
513 | case VIDIOC_CROPCAP: | 522 | case VIDIOC_CROPCAP: |
523 | #ifdef __OLD_VIDIOC_ | ||
514 | case VIDIOC_CROPCAP_OLD: | 524 | case VIDIOC_CROPCAP_OLD: |
525 | #endif | ||
515 | { | 526 | { |
516 | struct v4l2_cropcap *p=arg; | 527 | struct v4l2_cropcap *p=arg; |
517 | /*FIXME: Should also show rect structs */ | 528 | /*FIXME: Should also show rect structs */ |
@@ -703,7 +714,9 @@ void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg) | |||
703 | } | 714 | } |
704 | case VIDIOC_G_PARM: | 715 | case VIDIOC_G_PARM: |
705 | case VIDIOC_S_PARM: | 716 | case VIDIOC_S_PARM: |
717 | #ifdef __OLD_VIDIOC_ | ||
706 | case VIDIOC_S_PARM_OLD: | 718 | case VIDIOC_S_PARM_OLD: |
719 | #endif | ||
707 | { | 720 | { |
708 | struct v4l2_streamparm *p=arg; | 721 | struct v4l2_streamparm *p=arg; |
709 | printk ("%s: type=%d\n", s, p->type); | 722 | printk ("%s: type=%d\n", s, p->type); |