diff options
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/cx88/cx88-blackbird.c | 3 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-input.c | 3 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-core.c | 6 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-gpio.c | 8 | ||||
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 16 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-alsa.c | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-core.c | 2 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134.h | 7 | ||||
-rw-r--r-- | drivers/media/video/videodev.c | 6 |
9 files changed, 27 insertions, 26 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c index 99bfa3238294..5a7f940565cc 100644 --- a/drivers/media/video/cx88/cx88-blackbird.c +++ b/drivers/media/video/cx88/cx88-blackbird.c | |||
@@ -34,8 +34,7 @@ | |||
34 | #include "cx88.h" | 34 | #include "cx88.h" |
35 | 35 | ||
36 | MODULE_DESCRIPTION("driver for cx2388x/cx23416 based mpeg encoder cards"); | 36 | MODULE_DESCRIPTION("driver for cx2388x/cx23416 based mpeg encoder cards"); |
37 | MODULE_AUTHOR("Jelle Foks <jelle@foks.8m.com>"); | 37 | MODULE_AUTHOR("Jelle Foks <jelle@foks.8m.com>, Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); |
38 | MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); | ||
39 | MODULE_LICENSE("GPL"); | 38 | MODULE_LICENSE("GPL"); |
40 | 39 | ||
41 | static unsigned int mpegbufs = 32; | 40 | static unsigned int mpegbufs = 32; |
diff --git a/drivers/media/video/cx88/cx88-input.c b/drivers/media/video/cx88/cx88-input.c index e123367773b3..649bbf7bcc29 100644 --- a/drivers/media/video/cx88/cx88-input.c +++ b/drivers/media/video/cx88/cx88-input.c | |||
@@ -29,9 +29,8 @@ | |||
29 | #include <linux/module.h> | 29 | #include <linux/module.h> |
30 | #include <linux/moduleparam.h> | 30 | #include <linux/moduleparam.h> |
31 | 31 | ||
32 | #include <media/ir-common.h> | ||
33 | |||
34 | #include "cx88.h" | 32 | #include "cx88.h" |
33 | #include <media/ir-common.h> | ||
35 | 34 | ||
36 | /* ---------------------------------------------------------------------- */ | 35 | /* ---------------------------------------------------------------------- */ |
37 | 36 | ||
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c index 6d32bd64ce55..c0db0e9d2cea 100644 --- a/drivers/media/video/em28xx/em28xx-core.c +++ b/drivers/media/video/em28xx/em28xx-core.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | /* #define ENABLE_DEBUG_ISOC_FRAMES */ | 33 | /* #define ENABLE_DEBUG_ISOC_FRAMES */ |
34 | 34 | ||
35 | static unsigned int core_debug; | 35 | static unsigned int core_debug = 0; |
36 | module_param(core_debug,int,0644); | 36 | module_param(core_debug,int,0644); |
37 | MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); | 37 | MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); |
38 | 38 | ||
@@ -41,7 +41,7 @@ MODULE_PARM_DESC(core_debug,"enable debug messages [core]"); | |||
41 | printk(KERN_INFO "%s %s :"fmt, \ | 41 | printk(KERN_INFO "%s %s :"fmt, \ |
42 | dev->name, __FUNCTION__ , ##arg); } while (0) | 42 | dev->name, __FUNCTION__ , ##arg); } while (0) |
43 | 43 | ||
44 | static unsigned int reg_debug; | 44 | static unsigned int reg_debug = 0; |
45 | module_param(reg_debug,int,0644); | 45 | module_param(reg_debug,int,0644); |
46 | MODULE_PARM_DESC(reg_debug,"enable debug messages [URB reg]"); | 46 | MODULE_PARM_DESC(reg_debug,"enable debug messages [URB reg]"); |
47 | 47 | ||
@@ -50,7 +50,7 @@ MODULE_PARM_DESC(reg_debug,"enable debug messages [URB reg]"); | |||
50 | printk(KERN_INFO "%s %s :"fmt, \ | 50 | printk(KERN_INFO "%s %s :"fmt, \ |
51 | dev->name, __FUNCTION__ , ##arg); } while (0) | 51 | dev->name, __FUNCTION__ , ##arg); } while (0) |
52 | 52 | ||
53 | static unsigned int isoc_debug; | 53 | static unsigned int isoc_debug = 0; |
54 | module_param(isoc_debug,int,0644); | 54 | module_param(isoc_debug,int,0644); |
55 | MODULE_PARM_DESC(isoc_debug,"enable debug messages [isoc transfers]"); | 55 | MODULE_PARM_DESC(isoc_debug,"enable debug messages [isoc transfers]"); |
56 | 56 | ||
diff --git a/drivers/media/video/ir-kbd-gpio.c b/drivers/media/video/ir-kbd-gpio.c index de1385e5d05e..556da9ff128f 100644 --- a/drivers/media/video/ir-kbd-gpio.c +++ b/drivers/media/video/ir-kbd-gpio.c | |||
@@ -26,9 +26,8 @@ | |||
26 | #include <linux/input.h> | 26 | #include <linux/input.h> |
27 | #include <linux/pci.h> | 27 | #include <linux/pci.h> |
28 | 28 | ||
29 | #include <media/ir-common.h> | ||
30 | |||
31 | #include "bttv.h" | 29 | #include "bttv.h" |
30 | #include <media/ir-common.h> | ||
32 | 31 | ||
33 | /* ---------------------------------------------------------------------- */ | 32 | /* ---------------------------------------------------------------------- */ |
34 | 33 | ||
@@ -672,6 +671,8 @@ static int ir_probe(struct device *dev) | |||
672 | snprintf(ir->phys, sizeof(ir->phys), "pci-%s/ir0", | 671 | snprintf(ir->phys, sizeof(ir->phys), "pci-%s/ir0", |
673 | pci_name(sub->core->pci)); | 672 | pci_name(sub->core->pci)); |
674 | 673 | ||
674 | ir->input = input_dev; | ||
675 | ir->sub = sub; | ||
675 | ir_input_init(input_dev, &ir->ir, ir_type, ir_codes); | 676 | ir_input_init(input_dev, &ir->ir, ir_type, ir_codes); |
676 | input_dev->name = ir->name; | 677 | input_dev->name = ir->name; |
677 | input_dev->phys = ir->phys; | 678 | input_dev->phys = ir->phys; |
@@ -686,9 +687,6 @@ static int ir_probe(struct device *dev) | |||
686 | } | 687 | } |
687 | input_dev->cdev.dev = &sub->core->pci->dev; | 688 | input_dev->cdev.dev = &sub->core->pci->dev; |
688 | 689 | ||
689 | ir->input = input_dev; | ||
690 | ir->sub = sub; | ||
691 | |||
692 | if (ir->polling) { | 690 | if (ir->polling) { |
693 | INIT_WORK(&ir->work, ir_work, ir); | 691 | INIT_WORK(&ir->work, ir_work, ir); |
694 | init_timer(&ir->timer); | 692 | init_timer(&ir->timer); |
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 3cc1d6a6019b..caa0f58d149e 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -304,18 +304,20 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
304 | ir = kzalloc(sizeof(struct IR_i2c),GFP_KERNEL); | 304 | ir = kzalloc(sizeof(struct IR_i2c),GFP_KERNEL); |
305 | input_dev = input_allocate_device(); | 305 | input_dev = input_allocate_device(); |
306 | if (!ir || !input_dev) { | 306 | if (!ir || !input_dev) { |
307 | kfree(ir); | ||
308 | input_free_device(input_dev); | 307 | input_free_device(input_dev); |
308 | kfree(ir); | ||
309 | return -ENOMEM; | 309 | return -ENOMEM; |
310 | } | 310 | } |
311 | memset(ir,0,sizeof(*ir)); | ||
311 | 312 | ||
312 | ir->c = client_template; | 313 | ir->c = client_template; |
313 | ir->input = input_dev; | 314 | ir->input = input_dev; |
314 | 315 | ||
315 | i2c_set_clientdata(&ir->c, ir); | ||
316 | ir->c.adapter = adap; | 316 | ir->c.adapter = adap; |
317 | ir->c.addr = addr; | 317 | ir->c.addr = addr; |
318 | 318 | ||
319 | i2c_set_clientdata(&ir->c, ir); | ||
320 | |||
319 | switch(addr) { | 321 | switch(addr) { |
320 | case 0x64: | 322 | case 0x64: |
321 | name = "Pixelview"; | 323 | name = "Pixelview"; |
@@ -378,13 +380,15 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
378 | ir->c.dev.bus_id); | 380 | ir->c.dev.bus_id); |
379 | 381 | ||
380 | /* init + register input device */ | 382 | /* init + register input device */ |
381 | ir_input_init(input_dev, &ir->ir, ir_type, ir_codes); | 383 | ir_input_init(input_dev,&ir->ir,ir_type,ir->ir_codes); |
382 | input_dev->id.bustype = BUS_I2C; | 384 | input_dev->id.bustype = BUS_I2C; |
383 | input_dev->name = ir->c.name; | 385 | input_dev->name = ir->c.name; |
384 | input_dev->phys = ir->phys; | 386 | input_dev->phys = ir->phys; |
385 | 387 | ||
386 | /* register event device */ | 388 | /* register event device */ |
387 | input_register_device(ir->input); | 389 | input_register_device(ir->input); |
390 | printk(DEVNAME ": %s detected at %s [%s]\n", | ||
391 | ir->input->name,ir->input->phys,adap->name); | ||
388 | 392 | ||
389 | /* start polling via eventd */ | 393 | /* start polling via eventd */ |
390 | INIT_WORK(&ir->work, ir_work, ir); | 394 | INIT_WORK(&ir->work, ir_work, ir); |
diff --git a/drivers/media/video/saa7134/saa7134-alsa.c b/drivers/media/video/saa7134/saa7134-alsa.c index ade05f75fdb0..a7a6ab9298a9 100644 --- a/drivers/media/video/saa7134/saa7134-alsa.c +++ b/drivers/media/video/saa7134/saa7134-alsa.c | |||
@@ -20,13 +20,13 @@ | |||
20 | * | 20 | * |
21 | */ | 21 | */ |
22 | 22 | ||
23 | #include <sound/driver.h> | ||
24 | #include <linux/init.h> | 23 | #include <linux/init.h> |
25 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
26 | #include <linux/time.h> | 25 | #include <linux/time.h> |
27 | #include <linux/wait.h> | 26 | #include <linux/wait.h> |
28 | #include <linux/moduleparam.h> | 27 | #include <linux/moduleparam.h> |
29 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <sound/driver.h> | ||
30 | #include <sound/core.h> | 30 | #include <sound/core.h> |
31 | #include <sound/control.h> | 31 | #include <sound/control.h> |
32 | #include <sound/pcm.h> | 32 | #include <sound/pcm.h> |
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c index 21cb3d6be839..0bdbd99d0ae6 100644 --- a/drivers/media/video/saa7134/saa7134-core.c +++ b/drivers/media/video/saa7134/saa7134-core.c | |||
@@ -211,7 +211,7 @@ static int pending_call(struct notifier_block *self, unsigned long state, | |||
211 | return NOTIFY_DONE; | 211 | return NOTIFY_DONE; |
212 | } | 212 | } |
213 | 213 | ||
214 | static int pending_registered; | 214 | static int pending_registered=0; |
215 | static struct notifier_block pending_notifier = { | 215 | static struct notifier_block pending_notifier = { |
216 | .notifier_call = pending_call, | 216 | .notifier_call = pending_call, |
217 | }; | 217 | }; |
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h index 185115226b4b..2f28e83102fd 100644 --- a/drivers/media/video/saa7134/saa7134.h +++ b/drivers/media/video/saa7134/saa7134.h | |||
@@ -37,6 +37,9 @@ | |||
37 | #include <media/ir-common.h> | 37 | #include <media/ir-common.h> |
38 | #include <media/ir-kbd-i2c.h> | 38 | #include <media/ir-kbd-i2c.h> |
39 | #include <media/video-buf.h> | 39 | #include <media/video-buf.h> |
40 | #include <sound/driver.h> | ||
41 | #include <sound/core.h> | ||
42 | #include <sound/pcm.h> | ||
40 | #include <media/video-buf-dvb.h> | 43 | #include <media/video-buf-dvb.h> |
41 | 44 | ||
42 | #ifndef TRUE | 45 | #ifndef TRUE |
@@ -47,10 +50,6 @@ | |||
47 | #endif | 50 | #endif |
48 | #define UNSET (-1U) | 51 | #define UNSET (-1U) |
49 | 52 | ||
50 | #include <sound/driver.h> | ||
51 | #include <sound/core.h> | ||
52 | #include <sound/pcm.h> | ||
53 | |||
54 | /* ----------------------------------------------------------- */ | 53 | /* ----------------------------------------------------------- */ |
55 | /* enums */ | 54 | /* enums */ |
56 | 55 | ||
diff --git a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c index 6de5b0094b82..7df6a55dd59e 100644 --- a/drivers/media/video/videodev.c +++ b/drivers/media/video/videodev.c | |||
@@ -68,7 +68,8 @@ static void video_release(struct class_device *cd) | |||
68 | { | 68 | { |
69 | struct video_device *vfd = container_of(cd, struct video_device, class_dev); | 69 | struct video_device *vfd = container_of(cd, struct video_device, class_dev); |
70 | 70 | ||
71 | #if 1 /* needed until all drivers are fixed */ | 71 | #if 1 |
72 | /* needed until all drivers are fixed */ | ||
72 | if (!vfd->release) | 73 | if (!vfd->release) |
73 | return; | 74 | return; |
74 | #endif | 75 | #endif |
@@ -344,7 +345,8 @@ int video_register_device(struct video_device *vfd, int type, int nr) | |||
344 | class_device_create_file(&vfd->class_dev, | 345 | class_device_create_file(&vfd->class_dev, |
345 | &class_device_attr_name); | 346 | &class_device_attr_name); |
346 | 347 | ||
347 | #if 1 /* needed until all drivers are fixed */ | 348 | #if 1 |
349 | /* needed until all drivers are fixed */ | ||
348 | if (!vfd->release) | 350 | if (!vfd->release) |
349 | printk(KERN_WARNING "videodev: \"%s\" has no release callback. " | 351 | printk(KERN_WARNING "videodev: \"%s\" has no release callback. " |
350 | "Please fix your driver for proper sysfs support, see " | 352 | "Please fix your driver for proper sysfs support, see " |