Re: [PATCH 0/8] rc-core: patches for 3.7

2012-09-03 Thread David Härdeman
On Thu, Aug 30, 2012 at 03:56:12PM -0400, Jarod Wilson wrote: >On Sat, Aug 25, 2012 at 11:46:47PM +0200, David Härdeman wrote: >> This is two minor winbond-cir fixes as well as the first six patches >> from my previous patchbomb. >> >> The latter have been modified so t

Re: [PATCHv3 2/9] ir-rx51: Handle signals properly

2012-09-03 Thread David Härdeman
written to the kfifo at all. That way we would avoid policy in kernel while still making it possible to kill a misbehaving user-space process by forcing it to drip feed long TX sequences. -- David Härdeman -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 8/8] rc-core: initialize rc-core earlier if built-in

2012-08-25 Thread David Härdeman
rc-core is a subsystem so it should be registered earlier if built into the kernel. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index ec7311f..8134bd8

[PATCH 7/8] rc-core: rename ir_input_class to rc_class

2012-08-25 Thread David Härdeman
The name is already misleading and will be more so in the future as the connection to the input subsystem is obscured away further. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/rc/rc

[PATCH 6/8] rc-core: merge rc5 and streamzap decoders

2012-08-25 Thread David Härdeman
that I've seen with e.g. Sony protocols). Signed-off-by: David Härdeman --- drivers/media/rc/Kconfig| 12 -- drivers/media/rc/Makefile |1 drivers/media/rc/ir-rc5-decoder.c | 51 ++ drivers/media/rc/ir-rc5-sz-decoder.c|

[PATCH 5/8] rc-core: use the full 32 bits for NEC scancodes

2012-08-25 Thread David Härdeman
"rc_keymap_entry" based ioctls. Signed-off-by: David Härdeman --- drivers/media/rc/ir-nec-decoder.c | 28 +++- drivers/media/rc/rc-main.c | 36 ++- drivers/media/usb/dvb-usb-v2/af9015.c | 22 +-- dri

[PATCH 2/8] winbond-cir: asynchronous tx

2012-08-25 Thread David Härdeman
Change winbond-cir's tx support to be asynchronous and not to mess with the TX buffer. Essentially the winbond-cir counterpart to the patch Sean Young sent for iguanair. Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c | 47 +++- 1

[PATCH 1/8] winbond-cir: correctness fix

2012-08-25 Thread David Härdeman
This is a minor correctness fix for the duration calculation in winbond-cir (the read value should be incremented by one). Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/winbond-cir.c b

[PATCH 0/8] rc-core: patches for 3.7

2012-08-25 Thread David Härdeman
This is two minor winbond-cir fixes as well as the first six patches from my previous patchbomb. The latter have been modified so that backwards compatibility is retained as much as possible (the format of the sysfs files do not change for example). --- David Härdeman (8): winbond-cir

Re: [PATCH] [media] rc: do not sleep when the driver blocks on IR completion

2012-08-25 Thread David Härdeman
On Sat, Aug 25, 2012 at 12:26:25AM +0100, Sean Young wrote: >On Sat, Aug 25, 2012 at 12:05:18AM +0200, David Härdeman wrote: >> On Thu, Aug 23, 2012 at 10:18:35PM +0100, Sean Young wrote: >> >Some drivers wait for the IR device to complete sending before >> >returning

Re: [media] rc-core: move timeout and checks to lirc

2012-08-24 Thread David Härdeman
on is duplicated in more than one driver >> (and would have to be duplicated in even more drivers as they gain TX >> support), it makes sense to move this timeout calculation to the lirc >> layer instead. >> >> At the same time, centralize some of the sanity ch

Re: [PATCH] [media] rc: fix buffer overrun

2012-08-24 Thread David Härdeman
On Thu, Aug 23, 2012 at 10:18:25PM +0100, Sean Young wrote: >"[media] rc-core: move timeout and checks to lirc" introduced a buffer >overrun by passing the number of bytes, rather than the number of samples, >to the transmit function. > >Signed-off-by: Sean Young Acked-by

Re: [PATCH] [media] rc: do not sleep when the driver blocks on IR completion

2012-08-24 Thread David Härdeman
er which device stops sending data > * @min_timeout: minimum timeout supported by device > * @max_timeout: maximum timeout supported by device >@@ -108,6 +109,7 @@ struct rc_dev { > u32 last_keycode; > u32 last_scancode; &g

Re: [media] rc-core: move timeout and checks to lirc

2012-08-21 Thread David Härdeman
On Tue, Aug 21, 2012 at 01:55:12PM +0100, Sean Young wrote: >On Mon, Aug 20, 2012 at 07:02:47PM -0300, Mauro Carvalho Chehab wrote: >> Em 20-08-2012 18:36, David Härdeman escreveu: >> > On Thu, Aug 16, 2012 at 08:12:34PM -0300, Mauro Carvalho Chehab wrote: >> >> E

Re: [media] rc-core: move timeout and checks to lirc

2012-08-21 Thread David Härdeman
ed to do an ioctl first to get the bitmask of supported modes. This would just be another TX mode. -- David Härdeman -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [media] rc-core: move timeout and checks to lirc

2012-08-21 Thread David Härdeman
On Mon, Aug 20, 2012 at 07:02:47PM -0300, Mauro Carvalho Chehab wrote: >Em 20-08-2012 18:36, David Härdeman escreveu: >> On Thu, Aug 16, 2012 at 08:12:34PM -0300, Mauro Carvalho Chehab wrote: >>> Em 16-08-2012 19:15, Sean Young escreveu: >>>> >>>>>

Re: [PATCH 3/3] [media] winbond-cir: Adjust sample frequency to improve reliability

2012-08-20 Thread David Härdeman
imitrov proposed (i.e. the Harmony fixups) and see if that makes any difference? Perhaps the harmony actually does manage to send some bogus data (of sufficiently short duration not to show up in the captured RX data)... -- David Härdeman -- To unsubscribe from this list: send the line "

Re: [media] rc-core: move timeout and checks to lirc

2012-08-20 Thread David Härdeman
gt; layer instead. >>> >>> At the same time, centralize some of the sanity checks. >>> >>> Signed-off-by: David Härdeman >>> Cc: Jarod Wilson >>> Signed-off-by: Mauro Carvalho Chehab >>> --- >>> drivers/media/rc/ir-lir

Re: [PATCH] [media] winbond-cir: Fix initialization

2012-08-18 Thread David Härdeman
On Tue, Jul 31, 2012 at 11:37:03AM +0100, Sean Young wrote: >The serial driver will detect the winbond cir device as a serial port, >since it looks exactly like a serial port unless you know what it is >from the PNP ID. > >Winbond CIR 00:04: Region 0x2f8-0x2ff already in use! >Winbond CIR 00:04: di

Re: [PATCH 3/3] [media] winbond-cir: Adjust sample frequency to improve reliability

2012-07-05 Thread David Härdeman
On Thu, 5 Jul 2012 17:39:18 +0300, Konstantin Dimitrov wrote: > excuse me for my ignorance, but don't you think adjusting the IR > receiver to universal remote control is fundamentally wrong, while the > whole point of universal remote control like Logitech Harmony is to be > adjusted to the IR re

Re: [PATCH 3/3] [media] winbond-cir: Adjust sample frequency to improve reliability

2012-07-05 Thread David Härdeman
On Thu, 5 Jul 2012 20:30:35 +1000, Anton Blanchard wrote: > I had a closer look. I dumped the RC6 debug, but I also printed the raw > data in the interrupt handler: > > printk("%x %d %d\n", irdata, rawir.pulse, rawir.duration); > ... > That should have been a pulse but it came out as a space

Re: [PATCH 2/3] [media] winbond-cir: Initialise timeout, driver_type and allowed_protos

2012-07-03 Thread David Härdeman
On Mon, Jul 02, 2012 at 11:58:52AM +1000, Anton Blanchard wrote: > >We need to set a timeout so we can go idle on no activity. This change Acked-by: David Härdeman >We weren't setting driver_type and allowed_protos, so fix that >up too. driver_type is set in the upstream tree

Re: [PATCH 3/3] [media] winbond-cir: Adjust sample frequency to improve reliability

2012-07-03 Thread David Härdeman
On Mon, Jul 02, 2012 at 11:59:37AM +1000, Anton Blanchard wrote: > >When using my Logitech Harmony remote I get regular dropped events >(about 1 in every 3). Adjusting the sample frequency to 6us so we >sample at a multiple of an RC-6 pulse (444us) fixes it. Sounds weird. The in-kernel RC6 decode

Re: [PATCH 1/3] [media] winbond-cir: Fix txandrx module info

2012-07-03 Thread David Härdeman
On Mon, Jul 02, 2012 at 11:58:00AM +1000, Anton Blanchard wrote: > >We aren't getting any module info for the txandx option because >of a typo: > >parm: txandrx:bool > >Signed-off-by: Anton Blanchard Acked-by: David Härdeman >--- > >Index: linux

[PATCH 39/43] rc-core: use struct rc_event to signal TX events from userspace

2012-05-23 Thread David Härdeman
Using struct rc_event as the data unit for writes from userspace provides more flexibility and easier future compatibility with future developments (e.g. if rc-core grew support for some very different transmission, such as RF transmission). Signed-off-by: David Härdeman --- drivers/media/rc

[PATCH 31/43] rc-core: allow empty keymaps

2012-05-23 Thread David Härdeman
Remove the RC_MAP_EMPTY hack and instead allow for empty keymaps. Signed-off-by: David Härdeman --- drivers/media/dvb/dvb-usb/af9015.c |4 drivers/media/dvb/dvb-usb/af9035.c |1 - drivers/media/dvb/dvb-usb/dvb-usb-remote.c |4 +--- drivers/media/dvb/dvb-usb

[PATCH 43/43] rc-core: make rc-core.h userspace friendly

2012-05-23 Thread David Härdeman
A few ifdef __KERNEL__ and some reorganisation to make rc-core.h usable from userspace programs. Signed-off-by: David Härdeman --- include/media/rc-core.h | 76 +-- 1 file changed, 54 insertions(+), 22 deletions(-) diff --git a/include/media/rc

[PATCH 21/43] rc-loopback: add RCIOCGIRTX ioctl support

2012-05-23 Thread David Härdeman
As an example, this patch adds support for the new RCIOCGIRRX ioctl to rc-loopback. Signed-off-by: David Härdeman --- drivers/media/rc/rc-loopback.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/media/rc/rc-loopback.c b/drivers/media/rc/rc-loopback.c

[PATCH 14/43] rc-core: allow chardev to be written

2012-05-23 Thread David Härdeman
Add write functionality to the rc chardev (for use in transmitting remote control commands on capable hardware). The data format of the TX data is probably going to have to be dependent on the rc_driver_type. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 68

[PATCH 08/43] rc-core: use a device table rather than an atomic number

2012-05-23 Thread David Härdeman
This patch changes rc-core to use a device table rather than atomic integers to assign unique numbers to each rc device. This is in preparation for introducing rc-core chardevs. Signed-off-by: David Härdeman --- drivers/media/rc/ir-raw.c |2 +- drivers/media/rc/rc-main.c | 41

[PATCH 11/43] mceusb: remove pointless kmalloc

2012-05-23 Thread David Härdeman
: David Härdeman --- drivers/media/rc/mceusb.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index f0f053d..9f546be 100644 --- a/drivers/media/rc/mceusb.c +++ b/drivers/media/rc/mceusb.c @@ -785,11 +785,7

[PATCH 20/43] rc-core: add an ioctl for getting IR TX settings

2012-05-23 Thread David Härdeman
t out. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 12 include/media/rc-core.h| 38 ++ 2 files changed, 50 insertions(+) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 390673c..e2b2e8c 100644

[PATCH 19/43] rc-loopback: add RCIOCSIRRX ioctl support

2012-05-23 Thread David Härdeman
As an example, this patch adds support for the new RCIOCSIRRX ioctl to rc-loopback and removes deprecated functions without a loss in functionality (as LIRC will automatically use the new functions). Signed-off-by: David Härdeman --- drivers/media/rc/rc-loopback.c | 84

[PATCH 27/43] rc-core: make the keytable of rc_dev an array

2012-05-23 Thread David Härdeman
This is another step towards allowing multiple keytables per rc_dev. struct rc_dev is changed to hold an array of keytables (used later for indexed access to keytables) as well as a list of the same keytables (used for iteration in fast paths). Signed-off-by: David Härdeman --- drivers/media

[PATCH 30/43] rc-core: make keytable RCU-friendly

2012-05-23 Thread David Härdeman
ATOMIC allocations can be avoided entirely at the cost of a couple of extra kmalloc() calls when changing a keytable (which is normally done once during boot). Signed-off-by: David Härdeman --- drivers/media/rc/rc-keytable.c | 671 +++- include/media/rc-

[PATCH 05/43] rc-core: merge rc5 and streamzap decoders

2012-05-23 Thread David Härdeman
that I've seen with e.g. Sony protocols). Signed-off-by: David Härdeman --- drivers/media/rc/Kconfig| 12 -- drivers/media/rc/Makefile |1 drivers/media/rc/ir-rc5-decoder.c | 51 ++ drivers/media/rc/ir-rc5-sz-decoder.c|

[PATCH 07/43] rc-core: initialize rc-core earlier if built-in

2012-05-23 Thread David Härdeman
rc-core is a subsystem so it should be registered earlier if built into the kernel. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 0e50a84..6e02314

[PATCH 37/43] rc-core: don't report scancodes via input devices

2012-05-23 Thread David Härdeman
The scancode that is reported via the input device(s) is now incomplete (missing the protocol) and redundant. Signed-off-by: David Härdeman --- drivers/media/rc/rc-keytable.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/drivers/media/rc/rc

[PATCH 12/43] redrat: cleanup debug functions

2012-05-23 Thread David Härdeman
In preparation for the next patches I had to understand the redrat driver (not an easy task). In the process I noticed that the debug printing functions look quite suspicious. This is a minimal attempt at cleaning them up (though more work remains to be done). Signed-off-by: David Härdeman

[PATCH 23/43] rc-loopback: add RCIOCSIRTX ioctl support

2012-05-23 Thread David Härdeman
As an example, this patch adds support for the new RCIOCSIRTX ioctl to rc-loopback and removes deprecated functions without a loss in functionality (as LIRC will automatically use the new functions). Signed-off-by: David Härdeman --- drivers/media/rc/rc-loopback.c | 59

[PATCH 10/43] rc-core: allow chardev to be read

2012-05-23 Thread David Härdeman
will add further events. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 134 +++- include/media/rc-core.h| 31 ++ 2 files changed, 163 insertions(+), 2 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc

[PATCH 13/43] rc-core: use a kfifo for TX data

2012-05-23 Thread David Härdeman
obfuscated and kmalloc-happy) and that the TX functionality in nuvoton-cir.c is, and was, probably broken before and after this patch. Signed-off-by: David Härdeman --- drivers/media/rc/ene_ir.c| 47 +++ drivers/media/rc/ene_ir.h|9 - drivers/media/rc/ir-lirc-codec.c | 57

[PATCH 22/43] rc-core: add an ioctl for setting IR TX settings

2012-05-23 Thread David Härdeman
functionality as an alternative to the old one and another bunch of operations in struct rc_dev are now deprecated. Signed-off-by: David Härdeman --- drivers/media/rc/ir-lirc-codec.c | 42 +- drivers/media/rc/rc-main.c | 13 include/media/rc

[PATCH 24/43] rc-core: leave the internals of rc_dev alone

2012-05-23 Thread David Härdeman
sure what the driver is trying to do, however, IR handling seems incomplete ATM so deleting the offending parts shouldn't affect funcationality Signed-off-by: David Härdeman --- drivers/media/rc/ati_remote.c |3 --- drivers/media/rc/ir-nec-decoder.c

[PATCH 41/43] rc-core: add keytable events

2012-05-23 Thread David Härdeman
Add separe rc device events on keytable addition/removal. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c |2 ++ include/media/rc-core.h|2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 6c8bc3a..b16dbf4

[PATCH 32/43] rc-core: split IR raw handling to a separate module

2012-05-23 Thread David Härdeman
() instead of: rc_register_device() rc_unregister_device() This allows scancode drivers to skip lots of unnecessary functionality. Signed-off-by: David Härdeman --- drivers/media/dvb/dvb-usb/Kconfig |2 drivers/media/dvb/dvb-usb/dvb-usb-remote.c |7 drivers

[PATCH 33/43] rc-ir-raw: simplify locking

2012-05-23 Thread David Härdeman
Simplify and improve the locking in rc-ir-raw by making better use of the existing kfifo functionality and by using RCU where possible. Signed-off-by: David Härdeman --- drivers/media/rc/rc-core-priv.h |6 +- drivers/media/rc/rc-ir-raw.c| 119 --- 2

[PATCH 17/43] rc-loopback: add RCIOCGIRRX ioctl support

2012-05-23 Thread David Härdeman
As an example, this patch adds support for the new RCIOCGIRRX ioctl to rc-loopback. Signed-off-by: David Härdeman --- drivers/media/rc/rc-loopback.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/media/rc/rc-loopback.c b/drivers/media/rc/rc-loopback.c

[PATCH 16/43] rc-core: add an ioctl for getting IR RX settings

2012-05-23 Thread David Härdeman
etting the appropriate flag as now) or not (in which case it should always be on). Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 28 +++ include/media/rc-core.h| 65 2 files changed, 93 insertions(+) diff --git a/driver

[PATCH 42/43] rc-core: move remaining keytable functions

2012-05-23 Thread David Härdeman
Move some more keytable related functionality over to rc-keytable.c which allows more implementational details to be obscured away. Signed-off-by: David Härdeman --- drivers/media/rc/rc-core-priv.h | 11 +- drivers/media/rc/rc-keytable.c | 213

[PATCH 34/43] rc-core: rename mutex

2012-05-23 Thread David Härdeman
Having a mutex named "lock" is a bit misleading. Signed-off-by: David Härdeman --- drivers/media/rc/rc-keytable.c |8 drivers/media/rc/rc-main.c | 22 +++--- include/media/rc-core.h|4 ++-- 3 files changed, 17 insertions(+), 17 deletion

[PATCH 38/43] rc-ir-raw: add various rc_events

2012-05-23 Thread David Härdeman
Reporting pulse/space events via the /dev/rc/rcX device node is an important step towards having feature parity with LIRC. Signed-off-by: David Härdeman --- drivers/media/rc/rc-ir-raw.c | 11 +++ include/media/rc-core.h | 10 ++ 2 files changed, 21 insertions(+) diff

[PATCH 06/43] rc-core: rename ir_input_class to rc_class

2012-05-23 Thread David Härdeman
The name is already misleading and will be more so in the future as the connection to the input subsystem is obscured away further. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/rc/rc

[PATCH 36/43] rc-core: fix various sparse warnings

2012-05-23 Thread David Härdeman
Fix various sparse warnings under drivers/media/rc/*.c, mostly by making functions static. Signed-off-by: David Härdeman --- drivers/media/rc/ene_ir.c |2 +- drivers/media/rc/fintek-cir.c |4 ++-- drivers/media/rc/imon.c|8 drivers/media/rc/ite-cir.c

[PATCH 15/43] rc-core: add ioctl support to the rc chardev

2012-05-23 Thread David Härdeman
e ops. Signed-off-by: David Härdeman --- Documentation/ioctl/ioctl-number.txt |1 + drivers/media/rc/rc-main.c | 66 ++ include/media/rc-core.h | 19 ++ 3 files changed, 86 insertions(+) diff --git a/Documentation/ioctl/

[PATCH 18/43] rc-core: add an ioctl for setting IR RX settings

2012-05-23 Thread David Härdeman
several operations in struct rc_dev to be deprecated. Signed-off-by: David Härdeman --- drivers/media/rc/ir-lirc-codec.c | 53 +- drivers/media/rc/rc-core-priv.h |3 ++ drivers/media/rc/rc-main.c | 53 +- include

[PATCH 26/43] rc-core: do not take mutex on rc_dev registration

2012-05-23 Thread David Härdeman
in a call to input_dev->open() which might take the same mutex (to update the user count, see later patches). Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 95 ++-- include/media/rc-core.h|3 - 2 files changed, 40 insertion

[PATCH 29/43] rc-core: remove redundant spinlock

2012-05-23 Thread David Härdeman
Remove a redundant spinlock from struct rc_map. Signed-off-by: David Härdeman --- drivers/media/rc/rc-keytable.c | 43 +--- include/media/rc-core.h|4 ++-- include/media/rc-map.h |1 - 3 files changed, 20 insertions(+), 28 deletions

[PATCH 35/43] rc-ir-raw: atomic reads of protocols

2012-05-23 Thread David Härdeman
Use atomic reads to avoid having to take a mutex when getting the bitmask of supported protocols. Signed-off-by: David Härdeman --- drivers/media/rc/rc-core-priv.h |2 +- drivers/media/rc/rc-ir-raw.c| 12 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a

[PATCH 28/43] rc-core: add ioctls for adding/removing keytables from userspace

2012-05-23 Thread David Härdeman
As all the basics are now in place, we can finally add the ioctls for adding/removing keytables from userspace. Signed-off-by: David Härdeman --- drivers/media/rc/rc-core-priv.h |3 + drivers/media/rc/rc-keytable.c |6 ++- drivers/media/rc/rc-main.c | 82

[PATCH 04/43] rc-core: use the full 32 bits for NEC scancodes

2012-05-23 Thread David Härdeman
Using the full 32 bits for all kinds of NEC scancodes simplifies rc-core and the nec decoder without any loss of functionality. Signed-off-by: David Härdeman --- drivers/media/dvb/dvb-usb/af9015.c | 22 ++ drivers/media/dvb/dvb-usb/af9035.c | 20

[PATCH 00/43] rc-core: feature parity with LIRC

2012-05-23 Thread David Härdeman
t the most important part is the userspace<->kernel interface (i.e. the read/write/ioctl interface). Comments? --- David Härdeman (43): rc-core: move timeout and checks to lirc rc-core: add separate defines for protocol bitmaps and numbers rc-core: don't thr

[PATCH 09/43] rc-core: add chardev

2012-05-23 Thread David Härdeman
This patch lays the groundwork for adding a rc-core chardev. Signed-off-by: David Härdeman --- drivers/media/rc/rc-main.c | 211 include/media/rc-core.h|6 + 2 files changed, 196 insertions(+), 21 deletions(-) diff --git a/drivers/media/rc

[PATCH 01/43] rc-core: move timeout and checks to lirc

2012-05-23 Thread David Härdeman
of the sanity checks. Signed-off-by: David Härdeman --- drivers/media/rc/ir-lirc-codec.c | 33 + drivers/media/rc/mceusb.c| 18 -- drivers/media/rc/rc-loopback.c | 12 3 files changed, 29 insertions(+), 34 deletions

[PATCH] rc-core: set mode for winbond-cir

2012-04-08 Thread David Härdeman
Setting the correct mode is required by rc-core or scancodes won't be generated (which isn't very user-friendly). This one-line fix should be suitable for 3.4-rc2. Signed-off-by: David Härdeman Cc: sta...@kernel.org --- drivers/media/rc/winbond-cir.c |1 + 1 file changed, 1

Re: [PATCH 04/14] [media] winbond-cir: Use current logging styles

2011-08-25 Thread David Härdeman
Acked-by: David Härdeman On Sun, 21 Aug 2011 15:56:47 -0700, Joe Perches wrote: > Add pr_fmt, convert printks to pr_. > > Signed-off-by: Joe Perches > --- > drivers/media/rc/winbond-cir.c |6 -- > 1 files changed, 4 insertions(+), 2 deletions(-) -- To unsubscr

Re: [PATCH 05/10] rc-core: add separate defines for protocol bitmaps and numbers

2011-05-06 Thread David Härdeman
On Wed, 04 May 2011 11:56:17 -0300, Mauro Carvalho Chehab wrote: > Em 28-04-2011 12:13, David Härdeman escreveu: >> The RC_TYPE_* defines are currently used both where a single protocol is >> expected and where a bitmap of protocols is expected. This patch tries >> t

Re: [PATCH 08/10] rc-core: merge rc5 and streamzap decoders

2011-05-06 Thread David Härdeman
On Wed, 04 May 2011 12:19:12 -0300, Mauro Carvalho Chehab wrote: > Em 28-04-2011 12:13, David Härdeman escreveu: >> Now that the protocol is part of the scancode, it is pretty easy to merge >> the rc5 and streamzap decoders. An additional advantage is that the >> decoder >

Re: [PATCH 00/10] rc-core: my current patchqueue

2011-05-06 Thread David Härdeman
On Wed, 04 May 2011 12:13:49 -0300, Mauro Carvalho Chehab wrote: > Em 29-04-2011 05:08, David Härdeman escreveu: >> diff --git a/drivers/media/rc/keymaps/rc-videomate-s350.c >> b/drivers/media/rc/keymaps/rc-videomate-s350.c >> index 26ca260..2f0ec1f 100644 >> --- a/

Re: [PATCH 07/10] rc-core: use the full 32 bits for NEC scancodes

2011-05-06 Thread David Härdeman
On Wed, 04 May 2011 12:16:17 -0300, Mauro Carvalho Chehab wrote: > Em 28-04-2011 12:13, David Härdeman escreveu: >> Using the full 32 bits for all kinds of NEC scancodes simplifies rc-core >> and the nec decoder without any loss of functionality. > > This seems to be a good

Re: [PATCH 09/10] rc-core: lirc use unsigned int

2011-05-06 Thread David Härdeman
On Wed, 04 May 2011 12:23:03 -0300, Mauro Carvalho Chehab wrote: > Em 28-04-2011 12:13, David Härdeman escreveu: >> Durations can never be negative, so it makes sense to consistently use >> unsigned int for LIRC transmission. Contrary to the initial impression, >> this shou

Re: [PATCH 00/10] rc-core: my current patchqueue

2011-04-29 Thread David Härdeman
On Thu, 28 Apr 2011 21:13:22 +0100, Malcolm Priestley wrote: > On Thu, 2011-04-28 at 17:13 +0200, David Härdeman wrote: >> The following series is what's in my current patch queue for rc-core. >> >> It only been lightly tested so far and it's based on the "fo

[PATCH 10/10] rc-core: move timeout and checks to lirc

2011-04-28 Thread David Härdeman
support), it makes sense to move this timeout calculation to the lirc layer instead. At the same time, centralize some of the sanity checks. Signed-off-by: David Härdeman --- drivers/media/rc/ir-lirc-codec.c | 33 + drivers/media/rc/mceusb.c| 18

[PATCH 09/10] rc-core: lirc use unsigned int

2011-04-28 Thread David Härdeman
Durations can never be negative, so it makes sense to consistently use unsigned int for LIRC transmission. Contrary to the initial impression, this shouldn't actually change the userspace API. Signed-off-by: David Härdeman --- drivers/media/rc/ene_ir.c|4 ++-- drivers/med

[PATCH 08/10] rc-core: merge rc5 and streamzap decoders

2011-04-28 Thread David Härdeman
that I've seen with e.g. Sony protocols). Signed-off-by: David Härdeman --- drivers/media/rc/Kconfig| 12 -- drivers/media/rc/Makefile |1 drivers/media/rc/ir-rc5-decoder.c | 51 ++ drivers/media/rc/ir-rc5-sz-decoder.c|

[PATCH 07/10] rc-core: use the full 32 bits for NEC scancodes

2011-04-28 Thread David Härdeman
Using the full 32 bits for all kinds of NEC scancodes simplifies rc-core and the nec decoder without any loss of functionality. Signed-off-by: David Härdeman --- drivers/media/dvb/dvb-usb/af9015.c | 22 ++ drivers/media/rc/ir-nec-decoder.c | 28

[PATCH 04/10] rc-core: add trailing silence in rc-loopback tx

2011-04-28 Thread David Härdeman
ng silence after the end of TX data. Signed-off-by: David Härdeman --- drivers/media/rc/rc-loopback.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/media/rc/rc-loopback.c b/drivers/media/rc/rc-loopback.c index 49cee61..cc846b2 100644 --- a/drivers/media/rc

[PATCH 02/10] rc-core: add TX support to the winbond-cir driver

2011-04-28 Thread David Härdeman
This patch adds preliminary IR TX capabilities to the winbond-cir driver. Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c | 431 +--- 1 files changed, 356 insertions(+), 75 deletions(-) diff --git a/drivers/media/rc/winbond-cir.c b/drivers

[PATCH 03/10] rc-core: use ir_raw_event_store_with_filter in winbond-cir

2011-04-28 Thread David Härdeman
Using ir_raw_event_store_with_filter() saves about 20 lines of code. Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c | 63 +--- 1 files changed, 21 insertions(+), 42 deletions(-) diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media

[PATCH 01/10] rc-core: int to bool conversion for winbond-cir

2011-04-28 Thread David Härdeman
Using bool instead of an int helps readability a bit. Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index b0a5fdc..cdb5ef4

[PATCH 00/10] rc-core: my current patchqueue

2011-04-28 Thread David Härdeman
reason for the large number of lines changed in the combined diffstat (the number of lines changed would probably be in the hundreds rather than thousands if keymaps were excluded). Comments? --- David Härdeman (10): rc-core: int to bool conversion for winbond-cir rc-core: add TX su

[PATCH] rc-core: int to bool conversion for winbond-cir

2011-04-05 Thread David Härdeman
Using bool instead of an int helps readability a bit. Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc/winbond-cir.c b/drivers/media/rc/winbond-cir.c index b0a5fdc..cdb5ef4

[PATCH] rc-core: set mode and default keymap for winbond-cir

2011-04-05 Thread David Härdeman
Not having the correct mode and a default keymap is not very user-friendly (and rc-core won't allow it). Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/media/rc/winbond-cir.c b/drivers/med

[PATCH] rc-core: fix winbond-cir issues

2011-03-30 Thread David Härdeman
The conversion of winbond-cir to use rc-core seems to have missed a a few bits and pieces which were in my local tree. Kudos to Juan Jesús García de Soria Lucena for noticing. Signed-off-by: David Härdeman --- drivers/media/rc/winbond-cir.c | 20 +--- 1 files changed, 5

[PATCH] rc-core: add loopback driver

2010-11-25 Thread David Härdeman
e two receivers). TX data that is sent is fed back as input on the corresponding receiver, which allows for debugging of IR decoders, keymaps, etc. Signed-off-by: David Härdeman --- drivers/media/rc/Kconfig | 13 ++ drivers/media/rc/Makefile |1 drivers/media/rc/rc-loopback.c |

Re: [PATCH 09/10] mceusb: int to bool conversion

2010-11-22 Thread David Härdeman
On Mon, Nov 22, 2010 at 01:40:28PM -0500, Jarod Wilson wrote: >On Nov 22, 2010, at 12:42 PM, Mauro Carvalho Chehab wrote: > >> Em 19-11-2010 21:43, David Härdeman escreveu: >>> Convert boolean variables to use the corresponding data type. >>> >>> Signed-off

Re: [PATCH 06/10] saa7134: make module parameters boolean

2010-11-22 Thread David Härdeman
On Mon, Nov 22, 2010 at 03:40:13PM -0200, Mauro Carvalho Chehab wrote: >Em 19-11-2010 21:43, David Härdeman escreveu: >> int to bool conversion for module parameters which are truely boolean. >> >> Signed-off-by: David Härdeman >> --- >> drivers/media/vid

Re: [PATCH 05/10] saa7134: protect the ir user count

2010-11-22 Thread David Härdeman
On Mon, Nov 22, 2010 at 02:55:42PM -0200, Mauro Carvalho Chehab wrote: >Em 19-11-2010 21:43, David Härdeman escreveu: >> The use of the saa7134_card_ir->users seems racy, so protect the count with >> a spinlock. Also use proper data types as arguments to __saa7134

Re: [RFC PATCH 0/2] Apple remote support

2010-11-19 Thread David Härdeman
On Thu, Nov 18, 2010 at 06:59:43PM -0200, Mauro Carvalho Chehab wrote: >Em 18-11-2010 18:49, Jarod Wilson escreveu: >> On Thu, Nov 18, 2010 at 09:43:19PM +0100, David Härdeman wrote: >>> On Thu, Nov 18, 2010 at 11:33:04AM -0500, Jarod Wilson wrote: >>>> Mauro&#x

[PATCH 10/10] rc-core: fix some leftovers from the renaming patches

2010-11-19 Thread David Härdeman
Fix some minor comments etc which are leftover from the old naming scheme. Signed-off-by: David Härdeman --- drivers/media/rc/ir-raw.c |2 +- drivers/media/rc/rc-core-priv.h |6 +++--- drivers/media/rc/rc-main.c |2 +- include/media/rc-core.h | 12

[PATCH 06/10] saa7134: make module parameters boolean

2010-11-19 Thread David Härdeman
int to bool conversion for module parameters which are truely boolean. Signed-off-by: David Härdeman --- drivers/media/video/saa7134/saa7134-input.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video

[PATCH 07/10] bttv: rename struct card_ir to bttv_ir

2010-11-19 Thread David Härdeman
bttv_ir is more consistent with all other structs used in the same driver. Also, clean up the struct to remove commented out members and the work_struct which is unused. Signed-off-by: David Härdeman --- drivers/media/video/bt8xx/bttv-input.c | 27 +-- drivers/media

[PATCH 09/10] mceusb: int to bool conversion

2010-11-19 Thread David Härdeman
Convert boolean variables to use the corresponding data type. Signed-off-by: David Härdeman --- drivers/media/rc/mceusb.c | 62 +++-- 1 files changed, 26 insertions(+), 36 deletions(-) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c

[PATCH 05/10] saa7134: protect the ir user count

2010-11-19 Thread David Härdeman
The use of the saa7134_card_ir->users seems racy, so protect the count with a spinlock. Also use proper data types as arguments to __saa7134_ir_start() and __saa7134_ir_stop() to remove some unnecessary casts. Signed-off-by: David Härdeman --- drivers/media/video/saa7134/saa7134-input.c |

[PATCH 04/10] saa7134: merge saa7134_card_ir->timer and saa7134_card_ir->timer_end

2010-11-19 Thread David Härdeman
Both timers are used for a similar purpose. Merging them allows for some minor simplifications. Signed-off-by: David Härdeman --- drivers/media/video/saa7134/saa7134-input.c | 10 -- drivers/media/video/saa7134/saa7134.h |1 - 2 files changed, 4 insertions(+), 7 deletions

[PATCH 08/10] bttv: merge ir decoding timers

2010-11-19 Thread David Härdeman
Similarly to saa7134, bttv_ir has two timers, only one of which is used at a time and which serve the same purpose. Merge them. Signed-off-by: David Härdeman --- drivers/media/video/bt8xx/bttv-input.c |8 +++- drivers/media/video/bt8xx/bttvp.h |3 +-- 2 files changed, 4

[PATCH 03/10] saa7134: some minor cleanups

2010-11-19 Thread David Härdeman
Mostly using appropriate data types and constants (e.g. int -> bool). Signed-off-by: David Härdeman --- drivers/media/video/saa7134/saa7134-input.c | 49 ++- drivers/media/video/saa7134/saa7134.h |4 +- 2 files changed, 21 insertions(+), 32 deletions(-) d

[PATCH 02/10] saa7134: use full keycode for BeholdTV

2010-11-19 Thread David Härdeman
Using the full keycode for BeholdTV hardware makes another module parameter unnecessary. Signed-off-by: David Härdeman --- drivers/media/rc/keymaps/rc-behold.c| 70 ++- drivers/media/video/saa7134/saa7134-input.c | 19 +-- 2 files changed, 37 insertions

[PATCH 01/10] saa7134: remove unused module parameter

2010-11-19 Thread David Härdeman
ir_rc5_remote_gap is a leftover from ir-common, remove it. Signed-off-by: David Härdeman --- drivers/media/video/saa7134/saa7134-input.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134

[PATCH 00/10] rc-core: various cleanups

2010-11-19 Thread David Härdeman
Here's a set of smaller patches which performs various cleanups, mostly to the saa7134 and bttv driver. They are based on the media_tree.git repo (2.6.38 branch) on top of Mauro's recent renaming patches. --- David Härdeman (10): saa7134: remove unused module parameter sa

<    1   2   3   4   5   6   >