The patch number 14384 was added via Douglas Schilling Landgraf 
<[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Hans de Goede  <[email protected]>
gspca_main: Allow use of input device creation code for non int. inputs


Allow use of the gspca core input device creation code by subdrivers which
have non interrupt driven camera buttons.

Priority: normal

Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Douglas Schilling Landgraf <[email protected]>


---

 linux/drivers/media/video/gspca/gspca.c |    2 +-
 linux/drivers/media/video/gspca/gspca.h |    3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff -r e504362d3351 -r 3dd46f8eee55 linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Thu Mar 04 00:37:07 2010 -0300
+++ b/linux/drivers/media/video/gspca/gspca.c   Thu Mar 04 00:40:46 2010 -0300
@@ -169,7 +169,7 @@
        int err = 0;
 
        dev->input_dev = NULL;
-       if (dev->sd_desc->int_pkt_scan)  {
+       if (dev->sd_desc->int_pkt_scan || dev->sd_desc->other_input)  {
                input_dev = input_allocate_device();
                if (!input_dev)
                        return -ENOMEM;
diff -r e504362d3351 -r 3dd46f8eee55 linux/drivers/media/video/gspca/gspca.h
--- a/linux/drivers/media/video/gspca/gspca.h   Thu Mar 04 00:37:07 2010 -0300
+++ b/linux/drivers/media/video/gspca/gspca.h   Thu Mar 04 00:40:46 2010 -0300
@@ -132,6 +132,9 @@
        cam_ident_op get_chip_ident;
 #ifdef CONFIG_INPUT
        cam_int_pkt_op int_pkt_scan;
+       /* other_input makes the gspca core create gspca_dev->input even when
+          int_pkt_scan is NULL, for cams with non interrupt driven buttons */
+       u8 other_input;
 #endif
 };
 


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/3dd46f8eee55b85bb021b74e0f15a9b6addef69e

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to