13 Jan, 2012
1 commit
-
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.Acked-by: Mauro Carvalho Chehab
Signed-off-by: Rusty Russell
19 Nov, 2011
1 commit
-
This converts the drivers in drivers/media/* to use the
module_usb_driver() macro which makes the code smaller and a bit
simpler.Added bonus is that it removes some unneeded kernel log messages about
drivers loading and/or unloading.Cc: Mauro Carvalho Chehab
Cc: Luca Risolia
Cc: Jean-Francois Moine
Cc: Frank Zago
Cc: Olivier Lorin
Cc: Erik Andren
Cc: Hans de Goede
Cc: Brian Johnson
Cc: Leandro Costantino
Cc: Antoine Jacquet
Cc: Jarod Wilson
Cc: Florian Mickler
Cc: Antti Palosaari
Cc: Michael Krufky
Cc: "David Härdeman"
Cc: Florent Audebert
Cc: Sam Doshi
Cc: Manu Abraham
Cc: Olivier Grenie
Cc: Patrick Boettcher
Cc: "Igor M. Liplianin"
Cc: Derek Kelly
Cc: Malcolm Priestley
Cc: Steven Toth
Cc: "André Weidemann"
Cc: Martin Wilks
Cc: Tejun Heo
Cc: Jose Alberto Reguero
Cc: David Henningsson
Cc: Paul Gortmaker
Cc: Joe Perches
Cc: Jesper Juhl
Cc: Lucas De Marchi
Cc: Hans Verkuil
Cc: Alexey Khoroshilov
Cc: Anssi Hannula
Cc: Rafi Rubin
Cc: Dan Carpenter
Cc: Paul Bender
Cc: Devin Heitmueller
Cc: "Márcio A Alves"
Cc: Julia Lawall
Cc: Laurent Pinchart
Cc: Chris Rankin
Cc: Lee Jones
Cc: Andy Walls
Cc: Andrew Morton
Cc: Mike Frysinger
Cc: Dean Anderson
Cc: Pete Eberlein
Cc: Arvydas Sidorenko
Cc: Andrea Anacleto
Signed-off-by: Greg Kroah-Hartman
31 Jan, 2011
2 commits
-
The streamzap driver has relatively low sampling resolution, and any
delays in reporting events seem to cause some minor problems for the
likes of irw when using the lirc bridge driver, resulting in a single
keypress registering as multiple independent ones, rather than as a
single press with repeats. If we call ir_raw_event_handle() more
frequently and reset the rawir kfifo at end-of-signal, the behavior
improves quite a bit.Signed-off-by: Jarod Wilson
Signed-off-by: Mauro Carvalho Chehab -
Due to my own stupidity, some of the wrong time unit conversion macros
were being used inside some of the IR drivers I've been working on. Fix
that, and convert over some additional places to also use the macros.Signed-off-by: Jarod Wilson
Signed-off-by: Mauro Carvalho Chehab
29 Dec, 2010
6 commits
-
drivers/media/rc/streamzap.c: In function ‘streamzap_probe’:
drivers/media/rc/streamzap.c:460:2: warning: statement with no effectCc: Jarod Wilson
Signed-off-by: Mauro Carvalho Chehab -
When trying to create persistent device names for mceusb and streamzap
devices, I noticed that their respective drivers are not creating the rc
device as a child of the USB device. Rather it creates it as virtual
device. As a result, udev cannot use the USB device information to
create persistent device names for event and lirc devices associated
with the rc device. Not having persistent device names makes it moredifficult to make use of the devices in userspace as their names can
change.Forward-ported to media_tree staging/for_v2.6.38 and tested with
both streamzap and mceusb devices:
$ ll /dev/input/by-id/
...
lrwxrwxrwx. 1 root root 9 Nov 17 17:06 usb-Streamzap__Inc._Streamzap_Remote_Control-event-if00 -> ../event6
lrwxrwxrwx. 1 root root 9 Nov 17 17:05 usb-Topseed_Technology_Corp._eHome_Infrared_Transceiver_TS000BzY-event-if00 -> ../event5
Previously, nada.Signed-off-by: Paul Bender
Tested-by: Jarod Wilson
Signed-off-by: Jarod Wilson
Signed-off-by: Mauro Carvalho Chehab -
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,IR_TYPE,RC_TYPE,g a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_type,rc_type,g a && mv a $i; doneSigned-off-by: Mauro Carvalho Chehab
-
The Remote Controller subsystem is meant to be used not only by Infra Red
but also for similar types of Remote Controllers. The core is not specific
to Infra Red. As such, rename:
- ir-core.h to rc-core.h
- IR_CORE to RC_CORE
- namespace inside rc-core.c/rc-core.hTo be consistent with the other changes.
No functional change on this patch.
Signed-off-by: Mauro Carvalho Chehab
-
This patch merges the ir_input_dev and ir_dev_props structs into a single
struct called rc_dev. The drivers and various functions in rc-core used
by the drivers are also changed to use rc_dev as the primary interface
when dealing with rc-core.This means that the input_dev is abstracted away from the drivers which
is necessary if we ever want to support multiple input devs per rc device.The new API is similar to what the input subsystem uses, i.e:
rc_device_alloc()
rc_device_free()
rc_device_register()
rc_device_unregister()[mchehab@redhat.com: Fix compilation on mceusb and cx231xx, due to merge conflicts]
Signed-off-by: David Härdeman
Acked-by: Jarod Wilson
Tested-by: Jarod Wilson
Signed-off-by: Mauro Carvalho Chehab -
Signed-off-by: Mauro Carvalho Chehab