diff options
Diffstat (limited to 'drivers/media/video/bttv-driver.c')
-rw-r--r-- | drivers/media/video/bttv-driver.c | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/drivers/media/video/bttv-driver.c b/drivers/media/video/bttv-driver.c index 69a147b85f1a..f3de85251719 100644 --- a/drivers/media/video/bttv-driver.c +++ b/drivers/media/video/bttv-driver.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include <linux/interrupt.h> | 35 | #include <linux/interrupt.h> |
36 | #include <linux/kdev_t.h> | 36 | #include <linux/kdev_t.h> |
37 | #include "bttvp.h" | 37 | #include "bttvp.h" |
38 | #include <media/v4l2-common.h> | ||
38 | 39 | ||
39 | #include <linux/dma-mapping.h> | 40 | #include <linux/dma-mapping.h> |
40 | 41 | ||
@@ -1520,14 +1521,6 @@ static struct videobuf_queue_ops bttv_video_qops = { | |||
1520 | .buf_release = buffer_release, | 1521 | .buf_release = buffer_release, |
1521 | }; | 1522 | }; |
1522 | 1523 | ||
1523 | static const char *v4l1_ioctls[] = { | ||
1524 | "?", "CGAP", "GCHAN", "SCHAN", "GTUNER", "STUNER", "GPICT", "SPICT", | ||
1525 | "CCAPTURE", "GWIN", "SWIN", "GFBUF", "SFBUF", "KEY", "GFREQ", | ||
1526 | "SFREQ", "GAUDIO", "SAUDIO", "SYNC", "MCAPTURE", "GMBUF", "GUNIT", | ||
1527 | "GCAPTURE", "SCAPTURE", "SPLAYMODE", "SWRITEMODE", "GPLAYINFO", | ||
1528 | "SMICROCODE", "GVBIFMT", "SVBIFMT" }; | ||
1529 | #define V4L1_IOCTLS ARRAY_SIZE(v4l1_ioctls) | ||
1530 | |||
1531 | static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg) | 1524 | static int bttv_common_ioctls(struct bttv *btv, unsigned int cmd, void *arg) |
1532 | { | 1525 | { |
1533 | switch (cmd) { | 1526 | switch (cmd) { |
@@ -2216,22 +2209,9 @@ static int bttv_do_ioctl(struct inode *inode, struct file *file, | |||
2216 | unsigned long flags; | 2209 | unsigned long flags; |
2217 | int retval = 0; | 2210 | int retval = 0; |
2218 | 2211 | ||
2219 | if (bttv_debug > 1) { | 2212 | if (bttv_debug > 1) |
2220 | switch (_IOC_TYPE(cmd)) { | 2213 | v4l_print_ioctl(btv->c.name, cmd); |
2221 | case 'v': | 2214 | |
2222 | printk("bttv%d: ioctl 0x%x (v4l1, VIDIOC%s)\n", | ||
2223 | btv->c.nr, cmd, (_IOC_NR(cmd) < V4L1_IOCTLS) ? | ||
2224 | v4l1_ioctls[_IOC_NR(cmd)] : "???"); | ||
2225 | break; | ||
2226 | case 'V': | ||
2227 | printk("bttv%d: ioctl 0x%x (v4l2, %s)\n", | ||
2228 | btv->c.nr, cmd, v4l2_ioctl_names[_IOC_NR(cmd)]); | ||
2229 | break; | ||
2230 | default: | ||
2231 | printk("bttv%d: ioctl 0x%x (???)\n", | ||
2232 | btv->c.nr, cmd); | ||
2233 | } | ||
2234 | } | ||
2235 | if (btv->errors) | 2215 | if (btv->errors) |
2236 | bttv_reinit_bt848(btv); | 2216 | bttv_reinit_bt848(btv); |
2237 | 2217 | ||