[GIT PULL FOR v5.5] imon & SPDX patches

2019-10-21 Thread Sean Young
5 III Nishad Kamdar (1): media: tuners: Use the correct style for SPDX License Identifier Sean Young (1): media: imon: invalid dereference in imon_touch_event drivers/media/rc/imon.c | 3 +-- drivers/media/tuners/

[PATCH v4l-utils] ir-keytable: bpf: improve rsc imon pointer decoder

2019-10-20 Thread Sean Young
Sometimes the remotes sends 4 bits rather than 5. This makes the pointer much more reliable. Signed-off-by: Sean Young --- utils/keytable/bpf_protocols/imon_rsc.c | 66 + 1 file changed, 35 insertions(+), 31 deletions(-) diff --git a/utils/keytable/bpf_protocols

Logilink VG0022A firmware/si2157 probe

2019-10-17 Thread Sean Young
Hi Antti, I have a Logilink VG0022A device which is an af9035.c type device (with ITE 9xxx frontned). The probe of the si2146 tuner fails and returns 0xffs. Now I would like to work on fixing this. Mauro suggested the firmware might be incorrect. Any tips on extracting the firmware? I can try and

[PATCH] media: imon: invalid dereference in imon_touch_event

2019-10-16 Thread Sean Young
The touch timer is set up in intf1. If the second interface does not exist, the timer and touch input device are not setup and we get the following error, when touch events are reported via intf0. Reported-by: syzbot+f49d12d34f2321cf4...@syzkaller.appspotmail.com Signed-off-by: Sean Young

[GIT PULL FOR v5.5] DVB/RC (II)

2019-10-15 Thread Sean Young
rate estimation function more generic media: cxd2841er: avoid too many status inquires Sean Young (1): media: imon_raw: simplify loop Thomas Voegtle (1): media: dvbsky: add support for eyeTV Geniatech T2 lite Vito Caputo (1): media: cxusb: detect cxusb_ctrl_msg error in

[PATCH v4l-utils] keytable: do not warn if keymap not found in IR_KEYTABLE_USER_DIR

2019-10-14 Thread Sean Young
The following error is logged even though imon_rsc.toml is found at /lib/udev/rc_keymaps/imon_rsc.toml: $ ir-keytable -a /etc/rc_maps.cfg /etc/rc_keymaps/imon_rsc.toml: error: cannot open: No such file or directory Signed-off-by: Sean Young --- utils/keytable/keytable.c | 78

[PATCH] media: imon_raw: simplify loop

2019-10-07 Thread Sean Young
The code for pulse and space is the same so remove duplication. Signed-off-by: Sean Young --- drivers/media/rc/imon_raw.c | 22 -- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/drivers/media/rc/imon_raw.c b/drivers/media/rc/imon_raw.c index d4aedcf76418

[PATCH v4l-utils] ir-ctl: report timeout when it cannot be modified

2019-10-03 Thread Sean Young
There are many IR devices which cannot modify their timeout, but do have a timeout which should be reported (e.g. mtk_cir). Signed-off-by: Sean Young --- utils/ir-ctl/ir-ctl.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl

[GIT PULL FOR v5.5] DVB & RC (I)

2019-10-02 Thread Sean Young
rect style for SPDX License Identifier media: usb: tm6000: Use the correct style for SPDX License Identifier Sean Young (6): media: saa7164: use debugfs rather than procfs for debugging file media: delete unused proc_fs.h include media: rc: mark input device as pointing s

Re: [PATCH] media: rc-map: Sort rc map name MACROs

2019-10-01 Thread Sean Young
Hello, On Fri, Aug 30, 2019 at 07:33:08AM +, Jisheng Zhang wrote: > Except RC_MAP_SU3000 and RC_MAP_HAUPPAUGE, others are alphabetically > sorted. Sort names alphabetically. > > Signed-off-by: Jisheng Zhang > --- > include/media/rc-map.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deleti

[PATCH] media: rc: mark input device as pointing stick

2019-09-30 Thread Sean Young
libinput refuses pointer movement from rc-core, since it believes it's not a pointer-type device: libinput error: event17 - Media Center Ed. eHome Infrared Remote Transceiver (1784:0008): libinput bug: REL_X/Y from a non-pointer device Cc: sta...@vger.kernel.org # 4.20+ Signed-off-by:

[PATCH v2 1/2] media: saa7164: use debugfs rather than procfs for debugging file

2019-09-26 Thread Sean Young
This moves /proc/saa7164 to /sys/kernel/debug/saa7164. Signed-off-by: Sean Young --- drivers/media/pci/saa7164/saa7164-core.c | 166 ++- 1 file changed, 105 insertions(+), 61 deletions(-) diff --git a/drivers/media/pci/saa7164/saa7164-core.c b/drivers/media/pci/saa7164

[PATCH v2 2/2] media: delete unused proc_fs.h include

2019-09-26 Thread Sean Young
procfs is no longer used anywhere in media. Signed-off-by: Sean Young --- drivers/media/pci/dm1105/dm1105.c | 1 - drivers/media/pci/smipcie/smipcie.h | 1 - drivers/media/usb/cx231xx/cx231xx-audio.c | 1 - drivers/media/usb/em28xx/em28xx-audio.c | 1 - 4 files changed, 4

[PATCH 2/2] media: delete unused proc_fs.h include

2019-09-26 Thread Sean Young
procfs is no longer used anywhere in media. Signed-off-by: Sean Young --- drivers/media/pci/dm1105/dm1105.c | 1 - drivers/media/pci/smipcie/smipcie.h | 1 - drivers/media/usb/cx231xx/cx231xx-audio.c | 1 - drivers/media/usb/em28xx/em28xx-audio.c | 1 - 4 files changed, 4

[PATCH 1/2] media: saa7164: use debugfs rather than procfs for debugging file

2019-09-26 Thread Sean Young
This moves /proc/saa7164 to /sys/kernel/debug/saa7164. Signed-off-by: Sean Young --- drivers/media/pci/saa7164/saa7164-core.c | 159 ++- 1 file changed, 97 insertions(+), 62 deletions(-) diff --git a/drivers/media/pci/saa7164/saa7164-core.c b/drivers/media/pci/saa7164

Re: [PATCH] media: rc: Add support for another iMON 0xffdc device

2019-09-19 Thread Sean Young
Hi Flavius, Please make sure you label your patch with sequentially increasing versions. I think the last one was v3 and there is no v4. On Thu, Sep 19, 2019 at 06:13:58PM +0300, Flavius Georgescu wrote: > The device it's an iMON UltraBay (0x98 in config byte) with LCD, > IR and dual-knobs front

Re: [PATCH] media: em28xx: Add support for Magix Wideowandler 2

2019-09-11 Thread Sean Young
Hi Dominik, On Tue, Sep 10, 2019 at 10:59:49PM +0200, Dominik Danelski wrote: > W dniu nie, 01.09.2019 o godzinie 23∶27 +0200, użytkownik Dominik Danelski > napisał: > > Add support for Magix Wideowandler 2 - analog USB capture card > > > > Co-author: Cornelius Porosanu > > Signed-off-by: Domin

[PATCH v4l-utils] ir-ctl: support sending protocols decoded by BPF decoders

2019-09-06 Thread Sean Young
Encode keymaps using xbox-dvd, pulse_distance, pulse_length and manchester BPF decoders. The kernel has no idea how to encode them so this must be done in userspace. Signed-off-by: Sean Young --- utils/common/ir-encode.c | 26 ++- utils/common/keymap.c | 1 + utils/ir-ctl

[PATCH v4l-utils] keytable: ensure we have enough memlock pages

2019-09-04 Thread Sean Young
ng as root. systemd works around this problem by setting setrlimit(RLIMIT_MEMLOCK) to 64MB. Do the the same. Signed-off-by: Sean Young --- utils/keytable/keytable.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c index 70f

Re: ir-keytable compiler warnings

2019-09-02 Thread Sean Young
Hi Hans, On Mon, Sep 02, 2019 at 02:42:45PM +0200, Hans Verkuil wrote: > I get these compiler warnings: > > CC keymap.o > keytable.c:1832:76: warning: ‘struct toml_table_t’ declared inside parameter > list will not be visible outside of this definition or > declaration > 1832 | static v

[PATCH 1/2] media: rtl28xxu: set keymap for Astrometa DVB-T2

2019-08-31 Thread Sean Young
Thanks to Jan Pieter van Woerkom for providing the hardware. Signed-off-by: Sean Young --- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index

[PATCH 2/2] media: rtl28xxu: fix idle handling

2019-08-31 Thread Sean Young
{0,1} which is programmed to 0xc0). So, set the timeout to that value and rc-core will put the IR receiver into idle mode automatically. Thanks to Jan Pieter van Woerkom for providing the hardware. Signed-off-by: Sean Young --- drivers/media/usb/dvb-usb-v2/dvb_usb.h | 2 ++ drivers/media/usb

[PATCH v4l-utils] ir-ctl: warn if keycode has multiple definitions

2019-08-29 Thread Sean Young
Signed-off-by: Sean Young --- utils/ir-ctl/ir-ctl.c | 52 --- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c index 28d8d97a..e884b4f8 100644 --- a/utils/ir-ctl/ir-ctl.c +++ b/utils/ir-ctl/ir

[PATCH v4l-utils] ir-ctl: support raw format by default

2019-08-28 Thread Sean Young
his commit also add support for sending the same format. Signed-off-by: Sean Young --- utils/common/keymap.c| 8 +- utils/ir-ctl/ir-ctl.1.in | 36 +++--- utils/ir-ctl/ir-ctl.c| 241 --- 3 files changed, 228 insertions(+), 57 deletions(-) diff --g

[PATCH v4l-utils 2/2] toml: update to tomlc99 commit f12c8f00b457defaae1495773d76dfb9ff1bf4c8

2019-08-27 Thread Sean Young
The toml reader has a a slew of updates. Sync. Signed-off-by: Sean Young --- utils/common/toml.c | 1584 +++ utils/common/toml.h | 50 +- 2 files changed, 892 insertions(+), 742 deletions(-) diff --git a/utils/common/toml.c b/utils/common/toml.c index

[PATCH v4l-utils 1/2] rc_keymap: change raw format to much more common raw string

2019-08-27 Thread Sean Young
r-ctl -r" should output this format too, and support it for sending. As a first start, let's update the toml rc keymap format; the existing toml raw array has not been in a release. Signed-off-by: Sean Young --- contrib/lircd2toml.py | 16 ++--- utils/common/keymap.

[PATCH v4l-utils 1/2] keytable: move keymap parsing into its own file

2019-08-26 Thread Sean Young
We would like to reuse keymap parsing for transmitting IR based on keymap in ir-ctl. This also reduces the size of our huge keytable.c, and keeps knowledge toml localised to the keymap parser. Signed-off-by: Sean Young --- utils/keytable/Makefile.am| 2 +- utils/keytable/bpf_load.c

[PATCH v4l-utils 2/2] ir-ctl: send keys based on keymap

2019-08-26 Thread Sean Young
ir-ctl can now send keys based on rc keymaps. The keymap file must be specified and the keys to be sent: ir-ctl -k /lib/udev/rc_keymaps/hauppauge.toml -K KEY_VOLUMEUP Signed-off-by: Sean Young --- utils/common/keymap.c| 471 ++ utils/common/keymap.h| 39 + utils/common

[PATCH] media: rc: increase rc-mm tolerance and add debug message

2019-08-23 Thread Sean Young
Decoding often fails on e.g. redrat3 devices. The dev_dbg() helps with debugging when decoding does fail. Cc: Patrick Lerda Signed-off-by: Sean Young --- drivers/media/rc/ir-rcmm-decoder.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/rc/ir-rcmm

Re: [GIT PULL FOR v5.4] More DVB/RC changes

2019-08-21 Thread Sean Young
On Wed, Aug 21, 2019 at 01:16:59PM +, Jenkins wrote: > From: buil...@linuxtv.org > > Pull request: https://patchwork.linuxtv.org/patch/58337/ > Build log: https://builder.linuxtv.org/job/patchwork/12637/ > Build time: 00:00:00 > Link: > https://lore.kernel.org/linux-media/20190821130434.gh4dr

[GIT PULL FOR v5.4] More DVB/RC changes

2019-08-21 Thread Sean Young
Hi Mauro, This moves the MyGica T230 to dvbsky, like was previously done for the T230C model. Other than that some minor fixes and device tree update to yaml. Thanks Sean The following changes since commit d4e0f82ac840bf3d16b25d60f261b429603138a9: media: pixfmt-compressed.rst: improve H264/HE

[GIT PULL FOR v5.4] Various fixes DVB/RC

2019-08-19 Thread Sean Young
media: rc: add keymap for WeTek Hub remote media: rc: add keymap for WeTeK Play 2 remote media: rc: add keymap for HardKernel ODROID remote Marc Gonzalez (1): media: si2168: Refactor command setup code Sean Young (2): media: dvb-frontends: use ida for pll number

Re: MyGica T230 dvb-t2 data corruption since commit 5fa8815

2019-08-18 Thread Sean Young
Hi JP, James, On Tue, Aug 13, 2019 at 03:46:37PM +0200, JP wrote: > Thanks James, my tests on both DVB-T and DVB-C all went OK. > > So, with the t230 driver in cxusb broken for one hw version of > the device and both hw versions now working fine in dvbsky & > the driver in cxusb does not crash it

Re: [PATCH v1] [media] mceusb: fix (eliminate) TX IR signal length limit

2019-08-18 Thread Sean Young
all of them. Tested-by: Sean Young Thanks, Sean > An IR signal TX exceeding 306 pulse/space samples presently causes -EINVAL > return error. There's no such limitation nor error with the MCE device > hardware. And valid IR signals exist with more than 400 pulse/space for the > c

[PATCH] media: ttpci: unknown protocol is rc-mm-32

2019-08-17 Thread Sean Young
This protocol responds to a real philips rc-mm remote; it does not respond to IR encoded with the encoder in ir-rcmm-decoder.c. Signed-off-by: Sean Young --- drivers/media/pci/ttpci/av7110_ir.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/media/pci

Re: MyGica T230 dvb-t2 data corruption since commit 5fa8815

2019-08-15 Thread Sean Young
Hi JP, On Tue, Aug 13, 2019 at 03:46:37PM +0200, JP wrote: > Thanks James, my tests on both DVB-T and DVB-C all went OK. > > So, with the t230 driver in cxusb broken for one hw version of > the device and both hw versions now working fine in dvbsky & > the driver in cxusb does not crash itself an

[GIT PULL FOR v5.4] RC & DVB

2019-08-14 Thread Sean Young
/dvb: Use kmemdup rather than duplicating its implementation Luke Nowakowski-Krijger (1): media: dvb_frontend.h: Fix shifting signed 32-bit value problem Masahiro Yamada (1): media: rc: add include guard to rc-map.h Sean Young (6): media: imon_raw: simplify and explain bit

[PATCH] media: tm6000: double free if usb disconnect while streaming

2019-08-13 Thread Sean Young
/0x84 handle_edge_irq+0x108/0x3b0 handle_irq+0x2e/0x40 do_IRQ+0x83/0x1a0 Cc: sta...@vger.kernel.org Signed-off-by: Sean Young --- drivers/media/usb/tm6000/tm6000-dvb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/usb/tm6000/tm6000-dvb.c b/drivers/media/usb/tm6000/tm6000-

[PATCH] media: rc: imon-rsc keymap has incorrect mappings

2019-08-13 Thread Sean Young
KEY_MAX is not a key but designates the highest value a linux keycode can ever have. Signed-off-by: Sean Young --- drivers/media/rc/keymaps/rc-imon-rsc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/media/rc/keymaps/rc-imon-rsc.c b/drivers/media/rc/keymaps

Re: [PATCH] media: em28xx: modules workqueue not inited for 2nd device

2019-08-13 Thread Sean Young
Hi Brad, On Mon, Aug 12, 2019 at 10:21:39AM -0300, Ezequiel Garcia wrote: > On Sun, 2019-08-11 at 06:11 +0100, Sean Young wrote: > > syzbot reports an error on flush_request_modules() for the second device. > > This workqueue was never initialised so simply remove the offending lin

Re: [PATCH 3/3] selftests: ir: fix ir_loopback test failure

2019-08-13 Thread Sean Young
On Mon, Aug 12, 2019 at 08:25:41AM -0600, shuah wrote: > On 8/10/19 5:44 AM, Sean Young wrote: > > The decoder is called rc-mm, not rcmm. This was renamed late in the cycle > > so this bug crept in. > > > > Cc: Shuah Khan > > Signed-off-by: Sean Young > &g

Re: [PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-08-10 Thread Sean Young
Hi, On Sun, Jul 21, 2019 at 05:31:55PM -0400, A Sun wrote: > FYI, I'm in progress on another mceusb patch to fix, and eliminate, the > driver's > TX IR length limits. Limit causes -EINVAL errors for > ~300 pulse/space > samples and > I've seen reports (and patches for) of appliances with IR over

[PATCH 2/3] media: imon_raw: prevent "nonsensical timing event of duration 0"

2019-08-10 Thread Sean Young
space Signed-off-by: Sean Young --- drivers/media/rc/imon_raw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/imon_raw.c b/drivers/media/rc/imon_raw.c index e6723993b466..d4aedcf76418 100644 --- a/drivers/media/rc/imon_raw.c +++ b/drivers/media/rc/imon_raw.c

[PATCH 1/3] media: imon_raw: simplify and explain bit operations

2019-08-10 Thread Sean Young
This code needs some explanation. Signed-off-by: Sean Young --- drivers/media/rc/imon_raw.c | 43 + 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/drivers/media/rc/imon_raw.c b/drivers/media/rc/imon_raw.c index 25e56c5b13c0..e6723993b466

[PATCH 3/3] selftests: ir: fix ir_loopback test failure

2019-08-10 Thread Sean Young
The decoder is called rc-mm, not rcmm. This was renamed late in the cycle so this bug crept in. Cc: Shuah Khan Signed-off-by: Sean Young --- tools/testing/selftests/ir/ir_loopback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/ir

[PATCH v2 v4l-utils] keytable: add support for keymap with raw literals

2019-08-08 Thread Sean Young
codes support, so lircd2toml.py can also convert raw_codes lircd.conf files. This means that the vast majority of lircd files can now be converted. This feature requires loops in BPF programs so this is only supported in kernel 5.3 onwards. Signed-off-by: Sean Young --- contrib/lircd2toml.py

[PATCH v4l-utils] keytable: add support for keymap with raw literal strings

2019-08-07 Thread Sean Young
This adds support for converting lircd raw_codes remote definitions. This means that the vast majority of lircd files can be converted. This feature requires loops in BPF programs so this is only supported in kernel 5.3 onwards. Signed-off-by: Sean Young --- contrib/lircd2toml.py

[GIT PULL FOR v5.4] dvb/rc fixes, take #3

2019-08-03 Thread Sean Young
tion dt-bindings: media: sunxi-ir: Add A64 compatible dt-bindings: media: sunxi-ir: Add H6 compatible Oliver Neukum (1): media: iguanair: add sanity checks Sean Young (2): media: lirc: document BPF IR decoding media: rc: describe rc protocols and their scancodes Wo

[PATCH] media: dvb-frontends: use ida for pll number

2019-08-02 Thread Sean Young
89c9e600: 04 fa fa fa fa fa fa fa 04 fa fa fa fa fa fa fa 89c9e680: 04 fa fa fa fa fa fa fa 04 fa fa fa fa fa fa fa ====== Signed-off-by: Sean Young --- drivers/media/dvb-frontends/dvb-pll.c | 41 --- 1 f

Re: [ANN] Media summit in Lisbon at September

2019-08-01 Thread Sean Young
On Thu, Aug 01, 2019 at 09:34:00AM -0300, Mauro Carvalho Chehab wrote: > Em Sun, 30 Jun 2019 13:44:04 -0300 > Mauro Carvalho Chehab escreveu: > > > Hi all, > > > > We are organizing a media mini-summit in Lisbon to happen in September, > > at the same week as the Linux Plumber Conference and the

[GIT PULL FOR v5.4] dvb/rc fixes, take #2

2019-08-01 Thread Sean Young
mpatible dt-bindings: media: sunxi-ir: Add H6 compatible Oliver Neukum (1): media: iguanair: add sanity checks Sean Young (2): media: lirc: document BPF IR decoding media: rc: describe rc protocols and their scancodes Wolfram Sang (2): media: ir-kbd-i2c: co

[GIT PULL FOR v5.4] dvb/rc fixes

2019-07-31 Thread Sean Young
ia: rc: sunxi: Add A31 compatible media: rc: sunxi: Add RXSTA bits definition dt-bindings: media: sunxi-ir: Add A64 compatible dt-bindings: media: sunxi-ir: Add H6 compatible Oliver Neukum (1): media: iguanair: add sanity checks Sean Young (2): media: lirc: document BP

[PATCH v4l-utils] keytable: generate missing keys like KEY_ZOOM

2019-07-30 Thread Sean Young
The input-event-codes.h now contains lines like: Ensure these parsed correctly. Signed-off-by: Sean Young --- utils/keytable/Makefile.am | 40 + utils/keytable/gen_input_events.pl | 92 ++ utils/keytable/parse.h | 9 +++ 3 files

[PATCH v4l-utils] keytable: check keymaps

2019-07-30 Thread Sean Young
Signed-off-by: Sean Young --- utils/keytable/Makefile.am | 3 +++ utils/keytable/keytable.c | 40 +- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/utils/keytable/Makefile.am b/utils/keytable/Makefile.am index 148b9446..0a8f5936 100644

[PATCH 1/2] media: lirc: document BPF IR decoding

2019-07-27 Thread Sean Young
This is just a start. Signed-off-by: Sean Young --- .../media/uapi/rc/lirc-dev-intro.rst | 47 +++ 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/Documentation/media/uapi/rc/lirc-dev-intro.rst b/Documentation/media/uapi/rc/lirc-dev-intro.rst index

[PATCH 2/2] media: rc: describe rc protocols and their scancodes

2019-07-27 Thread Sean Young
Signed-off-by: Sean Young --- .../media/uapi/rc/lirc-dev-intro.rst | 10 +- Documentation/media/uapi/rc/lirc-read.rst | 3 +- Documentation/media/uapi/rc/lirc-write.rst| 3 +- Documentation/media/uapi/rc/rc-protos.rst | 461 ++ .../media/uapi/rc

[PATCH v4l-utils] ir-ctl: show user how scancodes should be presented

2019-07-23 Thread Sean Young
Currently ir-ctl just says the scancode is invalid, which is not very clear. Signed-off-by: Sean Young --- utils/common/ir-encode.c | 66 utils/common/ir-encode.h | 2 +- utils/ir-ctl/ir-ctl.c| 10 ++ 3 files changed, 56 insertions(+), 22

[GIT PULL FOR v5.4] RC & DVB fixes

2019-07-22 Thread Sean Young
wing USB clear halt error Arnd Bergmann (1): media: dib0700: fix link error for dibx000_i2c_set_speed Jan Pieter van Woerkom (2): media: si2168: add support for Mygica T230C v2 media: dvbsky: add support for Mygica T230C v2 Sean Young (4): media: mtk-cir: only allow proto

Re: scancodes identified as invalid (I found the problem)

2019-07-22 Thread Sean Young
hy "any" 32-bit code can't be entered, but in any > case, I'm able to control things now! > > Thank you for your support! Please keep it on the list and please don't top-post. Thanks Sean > > Kind regards,JohnG > > > On Sunday, July 21, 2019,

Re: scancodes identified as invalid

2019-07-21 Thread Sean Young
t says "invalid scancode" which is not helpful really. nec32:0x02FD48B7 can be simplified into nec:0x0248 so it does not accept it. I think ir-ctl should be much better on this. How about this patch. Thanks, Sean >From c94336a86c6f34315ffd934186b43e5524193b01 Mon Sep 17 00:0

Re: scancodes identified as invalid

2019-07-21 Thread Sean Young
Hi, On Fri, Jul 19, 2019 at 06:50:05AM -0500, JohnG wrote: > I have POWER_KEY scancodes, that work as RAW data with ir-ctl -s [file], but > are not working with ir-ctl -S: > >     0x20df10ef (POWER_KEY for my LG tv) >     0x02FD48B7 (POWER_KEY for my Toshiba tv) As you can see here https://www.s

Re: MyGica T230 dvb-t2 data corruption since commit 5fa8815

2019-07-21 Thread Sean Young
On Fri, Jul 19, 2019 at 08:35:42PM +0200, Jan Pieter van Woerkom wrote: > dvbsky: add MyGica T230. > Moved from cxusb driver as that driver can't handle FX2 FIFO issue. Well then it should be deleted from the cxusb driver. Also how well is this tested? Thanks Sean > > Signed-off-by: Jan Pieter

Re: [PATCH V3.6 2/2] linux-media: dvbsky: add support for Mygica T230C v2

2019-07-17 Thread Sean Young
On Wed, Jul 17, 2019 at 08:11:50PM +0200, Jan Pieter van Woerkom wrote: > The T230C v2 hardware needs a mode of the si2168 chip to be > set for which the si2168 driver previously had no support. > This patch uses a specific measure to configure this on the > T230C v2 hardware only - see the flag pa

Re: PATCH V3.5 1/2] dvbsky: add support for "Mygica T230C v2"

2019-07-16 Thread Sean Young
On Tue, Jul 16, 2019 at 05:11:52AM +0200, JP wrote: > On 7/15/19 11:21 PM, Sean Young wrote: > > On Tue, Jul 09, 2019 at 08:39:32PM +0200, Jan Pieter van Woerkom wrote: > > > From: Jan Pieter van Woerkom > > > > > > Adds support for the "Mygica T230C v2

Re: PATCH V3.5 1/2] dvbsky: add support for "Mygica T230C v2"

2019-07-15 Thread Sean Young
ID in dvb-usb-ids.h . > > This is v3.5 of the proposed patch, based on feedback from Sean > Young and Antti Palosaari. > Tested by patch author on DVB(T/T2/C). > Tested by Frank Rysanek on a T230C v2: can tune into locally > available DVB-T and DVB-T2 muxes, video and audi

Re: [PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-07-15 Thread Sean Young
Hi, On Tue, Jun 25, 2019 at 05:29:02PM -0400, A Sun wrote: > > Hi again, > > On 6/25/2019 12:12 PM, Sean Young wrote: > > Hello, > > > > On Tue, Jun 25, 2019 at 11:01:32AM -0400, A Sun wrote: > >> On 6/25/2019 6:51 AM, Sean Young wrote: > >>&

[PATCH 2/3] media: rc: remove unused #define RC_PROTO_BIT_ALL

2019-07-12 Thread Sean Young
This lists all the protocols that the kernel knows about, however there are no users. Signed-off-by: Sean Young --- include/media/rc-map.h | 16 1 file changed, 16 deletions(-) diff --git a/include/media/rc-map.h b/include/media/rc-map.h index bebd3c4c6338..3a7f8728f6ec 100644

[PATCH 3/3] media: mtk-cir: lower de-glitch counter for rc-mm protocol

2019-07-12 Thread Sean Young
The rc-mm protocol can't be decoded by the mtk-cir since the de-glitch filter removes pulses/spaces shorter than 294 microseconds. Tested on a BananaPi R2. Signed-off-by: Sean Young --- drivers/media/rc/mtk-cir.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/r

[PATCH 1/3] media: mtk-cir: only allow protocols that have software decoders

2019-07-12 Thread Sean Young
RC_PROTO_BIT_ALL includes protocols like unknown and other that do not have IR decoders by definition. If these protocols are set in the allowed_protocols, they will show in the protocols sysfs file but cannot be enabled. Signed-off-by: Sean Young --- drivers/media/rc/mtk-cir.c | 2 +- 1 file

Re: [PATCH 1/2] dvbsky: add support for "Mygica T230C v2"

2019-07-08 Thread Sean Young
Hallo Jan-Pieter, > On 6/25/19 1:16 PM, Sean Young wrote: > > On Sun, Jun 16, 2019 at 02:39:29AM +0200, Jan Pieter van Woerkom wrote: > > > From: Jan Pieter van Woerkom > > > > > > Adds support for the "Mygica T230C v2" into the "dvbsky"

Re: [PATCH v3] keytable: Add keymap test

2019-07-04 Thread Sean Young
On Thu, Jul 04, 2019 at 03:24:54PM +0200, Bastien Nocera wrote: > This new test will try to parse all the ".toml" files in the directory > path passed to it, error'ing out on the first parsing problem. That is no longer true. It reads all files and does not error out after the first parse problem.

Re: [PATCH 1/2] keytable: Add source information in generated keymaps

2019-07-03 Thread Sean Young
On Mon, Jul 01, 2019 at 06:38:12PM +0200, Bastien Nocera wrote: > Add comments to mention that keymap files are generated, and that > they shouldn't be modified by hand. Also list which tool was used > to generate them and the kernel source filename. > > Signed-off-by: Bastien Nocera > --- > uti

[PATCH v4l-utils 2/2] gen_keytables.pl: remove duplicate scancodes from keymap

2019-07-03 Thread Sean Young
One scancode can only be mapped to one keycode. In addition, the toml is invalid so the keymap cannot be loaded. Cc: Bastien Nocera Signed-off-by: Sean Young --- utils/keytable/gen_keytables.pl | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/utils/keytable

[PATCH v4l-utils 1/2] gen_keytables.pl: strip comments from C files

2019-07-03 Thread Sean Young
Some keymaps contain mappings in comments which should have not been included. Cc: Bastien Nocera Signed-off-by: Sean Young --- utils/keytable/gen_keytables.pl | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/utils/keytable/gen_keytables.pl b/utils/keytable

Re: Keymap with duplicate entries

2019-07-03 Thread Sean Young
On Tue, Jul 02, 2019 at 11:29:58PM +0100, Malcolm Priestley wrote: > > Hey Malcolm, > > > > There seems to be a problem in the keymap you provided for inclusion > > in the kernel. > > > > In media/rc/keymaps/rc-it913x-v2.c, 2 keys are triggered by the same > > keycode: > > 53 ↦ { 0x866b18

Re: [PATCH 2/2] keytable: Remove comments before processing keymaps

2019-07-02 Thread Sean Young
On Tue, Jul 02, 2019 at 11:43:39AM +0200, Bastien Nocera wrote: > On Tue, 2019-07-02 at 10:08 +0100, Sean Young wrote: > > On Mon, Jul 01, 2019 at 06:38:13PM +0200, Bastien Nocera wrote: > > > Do our best to remove comments from each line we process from the > > > key

Re: [PATCH 2/2] keytable: Remove comments before processing keymaps

2019-07-02 Thread Sean Young
On Mon, Jul 01, 2019 at 06:38:13PM +0200, Bastien Nocera wrote: > Do our best to remove comments from each line we process from the keymap > sources, so as to avoid commented duplicates and false positives > sneaking in to the keymap definitions. > > Signed-off-by: Bastien Nocera > --- > utils/k

Re: [PATCH v3] keytable: Add keymap test

2019-07-01 Thread Sean Young
On Fri, Jun 28, 2019 at 11:45:29AM +0200, Bastien Nocera wrote: > This new test will try to parse all the ".toml" files in the directory > path passed to it, error'ing out on the first parsing problem. > > Run as "make check" in the keytable directory. > > Signed-off-by: Bastien Nocera > --- > C

Re: [ANN] Media summit in Lisbon at September

2019-07-01 Thread Sean Young
Hi Mauro, On Sun, Jun 30, 2019 at 01:44:04PM -0300, Mauro Carvalho Chehab wrote: > Hi all, > > We are organizing a media mini-summit in Lisbon to happen in September, > at the same week as the Linux Plumber Conference and the Kernel Summit. > > We're still discussing the details about that. > >

Re: [PATCH v2] keytable: Add keymap test

2019-06-27 Thread Sean Young
On Thu, Jun 27, 2019 at 10:13:56AM +0200, Bastien Nocera wrote: > This new test will try to parse all the ".toml" files in the directory > path passed to it, error'ing out on the first parsing problem. > > Run as "make check" in the keytable directory. Good catch, and I like your solution. It ne

[GIT PULL FOR v5.3] Minor dvb and rc fixes

2019-06-26 Thread Sean Young
Hi Mauro, These are the last changes for v5.3, I think. Thanks, Sean The following changes since commit 86d617d6c79d79288ca608b6fb0a2467b0e8ddbb: media: MAINTAINERS: Add maintainers for Media Controller (2019-06-24 15:07:51 -0400) are available in the Git repository at: git://linuxtv.org

Re: [PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-06-25 Thread Sean Young
Hello, On Tue, Jun 25, 2019 at 11:01:32AM -0400, A Sun wrote: > On 6/25/2019 6:51 AM, Sean Young wrote: > > On Wed, Jun 19, 2019 at 03:54:21AM -0400, A Sun wrote: > >> > > >> - dev_err(ir->dev, "Error: request urb status = %d (TX HALT)", >

[PATCH v4l-utils] ir-ctl: increase limit to match kernel

2019-06-25 Thread Sean Young
This changed in kernel v5.3. In earlier versions, EINVAL will be returned. Signed-off-by: Sean Young --- utils/ir-ctl/ir-ctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c index ad830612..03c2791d 100644 --- a/utils/ir-ctl

Re: [PATCH 1/2] dvbsky: add support for "Mygica T230C v2"

2019-06-25 Thread Sean Young
ID in dvb-usb-ids.h . > > This is v3.3 of the proposed patch, based on feedback from Sean > Young and Antti Palosaari. > Tested by patch author on a T230C v2. > Tested by Frank Rysanek on a T230C v2: can tune into locally > available DVB-T and DVB-T2 muxes, video and audio p

Re: [PATCH v2 2/3] [media] mceusb: Reword messages referring to "urb"

2019-06-25 Thread Sean Young
On Wed, Jun 19, 2019 at 03:54:21AM -0400, A Sun wrote: > > Clarify messages referencing "request urb" to mean "tx urb" > (host transmit/send (to mceusb device)). > Qualify messages referencing plain "urb" to mean "rx urb" > (host receive (from mceusb device)). > Add missing "couldn't allocate rx u

[GIT PULL FOR v5.3] Minor fixes

2019-06-13 Thread Sean Young
free on state object Sean Young (1): media: rc: IR signal for Panasonic air conditioner too long YueHaibing (1): media: ttpci: Fix build error without RC_CORE drivers/media/dvb-frontends/stv090x.c | 1 - drivers/media/pci/ttpci/Kconfig | 3 ++- drivers/media/rc/lirc_dev.c

[PATCH] media: rc: IR signal for Panasonic air conditioner too long sequences is too small

2019-06-13 Thread Sean Young
The IR signal to control the Panasonic ACXA75C00600 air conditioner has 439 pulse/spaces. Increase limit to make it possible to transmit signal. Reported-by: Takashi Kanamaru Signed-off-by: Sean Young --- drivers/media/rc/lirc_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: The restricted number (LIRCBUF_SIZE) of pulse-spaces in IR sequences is too small

2019-06-12 Thread Sean Young
Dear Takashi Kanamaru, On Wed, Jun 12, 2019 at 11:08:34PM +0900, Takashi Kanamaru wrote: > Dear all, > > When using kernel 4.19.X and sending IR commands with LIRC, > the number of pulse-spaces of IR sequence is restricted to be smaller than > 256. > > In kernel 4.19, this restriction is cause

Re: [PATCH v7 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-06-11 Thread Sean Young
LGDT3306a ATSC/QAM demod > - si2168 DVB-C/T/T2 demod > - si2177 tuner > - cx25840 decoder for analog tv/composite/s-video/audio > > Signed-off-by: Brad Love Reviewed-by: Sean Young > --- > Since v6: > - back off one checkpatch strict fix, causes discarded const compiler wa

Re: [PATCH] dvb_usb_dvbsky: Mygica T230C2 add support for T230C hw version 2

2019-06-08 Thread Sean Young
Hello Jan Pieter, On Sat, Jun 08, 2019 at 04:49:23AM +0200, JP wrote: > I made the Mygica T230c2 work on kernel 5.1.7, but I have no idea > > how to submit this. http://jpvw.nl/pub/test/dvb/linux-5.1.7-t230c2.patch > > > Please can someone help me out. It looks like the extra code in the > > d

Re: [PATCH v1 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-08 Thread Sean Young
ntion the difficulty obtaining even a single fault replication > (~ 1/month) and test cycle. OK, thank you. > Additional comments below... ..A Sun > > On 6/6/2019 5:53 AM, Sean Young wrote: > > On Sat, Jun 01, 2019 at 07:35:09PM -0400, A Sun wrote: -snip- >> Additional f

[GIT PULL FOR v5.3] rc/dvb fixes

2019-06-06 Thread Sean Young
) Sean Young (1): media: ttpci: use rc-core for the IR receiver Tobias Klausmann (2): media: stv6110x: Implement probe/remove for stv6110x media: stv090x: Implement probe/remove for stv090x drivers/media/dvb-frontends/stv090x.c | 198

Re: [PATCH v1 3/3] [media] mceusb: Show USB halt/stall error recovery

2019-06-06 Thread Sean Young
On Sat, Jun 01, 2019 at 07:35:09PM -0400, A Sun wrote: > Update dev_err() messages to report status (including success) for each > step of USB RX HALT and TX HALT error recovery. If error recovery fails, > show the message: > stuck RX HALT state requires USB Reset Device to clear > or >

[PATCH] media: ttpci: use rc-core for the IR receiver

2019-06-04 Thread Sean Young
marked RC_PROTO_UNKNOWN for now. This protocol not used by the remote for this device. Tested on Technotrend/Hauppauge WinTV Nexus-S rev2.1, which comes with a small black hauppauge remote. Signed-off-by: Sean Young --- drivers/media/pci/ttpci/av7110.c| 14 +- drivers/media/pci/ttpci

Re: [PATCH v6 0/4] Add Hauppauge HVR1955/1975 devices

2019-06-01 Thread Sean Young
y untested. Analog TV is > a work in progress, coming soon. Looks great! Reviewed-by: Sean Young > > HVR-1955: > - LGDT3306a ATSC/QAM demod > - si2177 tuner > - cx25840 decoder for analog tv/composite/s-video/audio > > HVR-1975 dual-frontend: > - LGDT3306a ATSC/QAM demo

Re: [PATCH v4 4/4] pvrusb2: Add Hauppauge HVR1955/1975 devices

2019-05-31 Thread Sean Young
lied inline to those. > > > On 05/04/2019 10.24, Sean Young wrote: > > On Wed, Feb 27, 2019 at 01:16:06PM -0600, Brad Love wrote: > >> Includes support to identify and use two Hauppauge device. > >> HVR-1955: > >> - LGDT3306a ATSC/QAM demod > >> - si

[GIT PULL FOR v5.3] Minor dvb/rc patches

2019-05-29 Thread Sean Young
you to fetch changes up to 29d9472e193bb3d6d53e964c4a3064b9cad20f84: media: cx231xx-dvb: fix memory leak in dvb_fini() (2019-05-29 16:29:46 +0100) Sean Young (3): media: em28xx: give RC device proper name media: em28xx

Re: log spammed from dvb_frontend_get_frequency_limits

2019-05-28 Thread Sean Young
On Tue, May 28, 2019 at 07:03:24PM +0200, Hans-Peter Jansen wrote: > Hi, > > my syslog is continuously spammed with: > > 2019-05-28T18:45:39.275180+02:00 kernel: [ 5666.337560] dvb_frontend: > dvb_frontend_get_frequency_limits: frequency interval: tuner: 0...0, > frontend: 3...23500

[PATCH v4l-utils 2/2] keytable: add xbox-dvd protocol to match kernel

2019-05-26 Thread Sean Young
Rename the bpf protocol to match. Now we can use the generated keymap for the XBox DVD remote. Signed-off-by: Sean Young --- utils/common/ir-encode.c | 1 + utils/keytable/bpf_protocols/Makefile.am | 2 +- .../bpf_protocols/{xbox.c => xbox-dvd.c} | 2 +- ut

[PATCH v4l-utils 1/2] keytable: load bpf protocol for unsupported protocols

2019-05-26 Thread Sean Young
though, this still needs to be done. Signed-off-by: Sean Young --- utils/keytable/keytable.c | 31 --- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c index 9384532b..daf82c0e 100644 --- a/utils/keytable

  1   2   3   4   5   6   7   8   9   10   >