linux/drivers/media/usb/dvb-usb
David Härdeman af3a4a9bbe [media] dib0700: NEC scancode cleanup
the RC RX packet is defined as:

        struct dib0700_rc_response {
		...
                                u8 not_system;
                                u8 system;
		...
                u8 data;
                u8 not_data;

The NEC protocol transmits in the order:
        system
        not_system
        data
        not_data

Note that the code defines the NEC extended scancode as:

        scancode = be16_to_cpu(poll_reply->system16) << 8 | poll_reply->data;

i.e.

        scancode = poll_reply->not_system << 16 |
                   poll_reply->system     << 8  |
                   poll_reply->data;

Which, if the order *is* reversed, would mean that the scancode that
gets defined is in reality:

        scancode = poll_reply->system     << 16 |
                   poll_reply->not_system << 8  |
                   poll_reply->data;

Which is the same as the order used in drivers/media/rc/ir-nec-decoder.c.

This patch changes the code to match my assumption (the generated scancode
should, however, not change).

[m.chehab@samsung.com: rebased and fixed the decoding error message]
Signed-off-by: David Härdeman <david@hardeman.nu>
CC: Patrick Boettcher <pboettcher@kernellabs.com>
Tested-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-07-23 21:26:08 -03:00
..
a800.c
af9005-fe.c
af9005-remote.c
af9005-script.h
af9005.c
af9005.h
az6027.c [media] az6027: Added the PID for a new revision of the Elgato EyeTV Sat DVB-S Tuner 2014-05-25 15:49:35 -03:00
az6027.h
cinergyT2-core.c
cinergyT2-fe.c
cinergyT2.h
cxusb.c [media] cxusb: increase buffer length to 80 bytes 2014-07-22 21:58:23 -03:00
cxusb.h [media] cxusb: TechnoTrend CT2-4400 USB DVB-T2/C tuner support 2014-07-14 21:07:07 -03:00
dib07x0.h
dib0700_core.c [media] dib0700: NEC scancode cleanup 2014-07-23 21:26:08 -03:00
dib0700_devices.c [media] dib0700: better document struct init 2014-07-07 09:56:37 -03:00
dib0700.h [media] dib0700: fix RC support on Hauppauge Nova-TD 2014-05-25 17:44:19 -03:00
dibusb-common.c [media] dibusb-common: Don't use dynamic static allocation 2013-11-08 09:45:44 -02:00
dibusb-mb.c
dibusb-mc.c
dibusb.h
digitv.c
digitv.h
dtt200u-fe.c
dtt200u.c
dtt200u.h
dtv5100.c
dtv5100.h
dvb-usb-common.h
dvb-usb-dvb.c
dvb-usb-firmware.c
dvb-usb-i2c.c
dvb-usb-init.c
dvb-usb-remote.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
dvb-usb-urb.c
dvb-usb.h
dw2102.c [media] dw2102: Geniatech T220 init fixed 2014-07-22 09:48:12 -03:00
dw2102.h
friio-fe.c
friio.c
friio.h
gp8psk-fe.c
gp8psk.c
gp8psk.h
Kconfig [media] cxusb: TechnoTrend CT2-4400 USB DVB-T2/C tuner support 2014-07-14 21:07:07 -03:00
m920x.c [media] rc: allowed_protos now is a bit field 2013-07-30 17:01:13 -03:00
m920x.h
Makefile
nova-t-usb2.c
opera1.c
pctv452e.c [media] stb0899: remove commented value from IQ_SWAP_ON/OFF usages 2013-05-21 08:54:37 -03:00
technisat-usb2.c [media] technisat-sub2: Fix stream curruption on high bitrate 2014-06-26 09:20:18 -03:00
ttusb2.c
ttusb2.h
umt-010.c
usb-urb.c
vp702x-fe.c
vp702x.c
vp702x.h
vp7045-fe.c
vp7045.c
vp7045.h