From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.kapsi.fi ([217.30.184.167]:48053 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754717Ab1FLXqN (ORCPT ); Sun, 12 Jun 2011 19:46:13 -0400 Message-ID: <4DF54FC2.2020104@iki.fi> Date: Mon, 13 Jun 2011 02:46:10 +0300 From: Antti Palosaari MIME-Version: 1.0 To: Juergen Lock CC: linux-media@vger.kernel.org, hselasky@c2i.net Subject: Re: [PATCH] [media] af9015: setup rc keytable for LC-Power LC-USB-DVBT References: <20110612202512.GA63911@triton8.kn-bremen.de> <201106122215.p5CMF0Xr069931@triton8.kn-bremen.de> <4DF53CB6.109@iki.fi> <20110612223437.GB71121@triton8.kn-bremen.de> <4DF542CE.4040903@iki.fi> <20110612230100.GA71756@triton8.kn-bremen.de> In-Reply-To: <20110612230100.GA71756@triton8.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-ID: Sender: On 06/13/2011 02:01 AM, Juergen Lock wrote: > On Mon, Jun 13, 2011 at 01:50:54AM +0300, Antti Palosaari wrote: >> On 06/13/2011 01:34 AM, Juergen Lock wrote: >>> On Mon, Jun 13, 2011 at 01:24:54AM +0300, Antti Palosaari wrote: >>>> On 06/13/2011 01:15 AM, Juergen Lock wrote: >>>>>> About the repeating bug you mention, are you using latest driver >>>>>> version? I am not aware such bug. There have been this kind of incorrect >>>>>> behaviour old driver versions which are using HID. It was coming from >>>>>> wrong HID interval. >>>>>> >>>>>> Also you can dump remote codes out when setting debug=2 to >>>>>> dvb_usb_af9015 module. >>>>> >>>>> That doesn't seem to work here so maybe my version is really too old >>>>> to have that fix. (But the keytable patch should still apply I guess?) >>>> >>>> Could you send af9015.c file you have I can check? >>>> >>>> Your patch is OK, but I want to know why it repeats. >>> >>> Sent off-list. >> >> It was latest version. Still mystery why it repeats... Have you >> unplugged that device after booting from Windows? I wonder if there is >> HID remote codes uploaded to device by Windows driver and then you have >> "warm" booted to Linux... >> > Well at least I can't rule something like that out, will send details > off-list. (Btw where is debug=2 to print remote events handled in that > file? Or is that done somewhere else?) Few words about AF9015 remote. Chipset implements HID remote (~keyboard) which is used normally. Driver uploads HID mappings (remote keycode & keyboard keycode) to the chipset memory and chipset then outputs remote events as HID without driver help. But there seems to be bug in chipset which sets HID polling interval too short. Due to that interval Linux HID starts repeating keycodes. There is some quirks added to the HID drivers for that which are mapped device USB ID. Quirk prints to log: "Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7" Due to that bug and inflexible remote configuration of HID remote I implemented new way. Current code does not upload HID codes to chipset at all which makes HID remote as disabled. Instead, remote codes are read by polling directly from the chip memory. And it is very first time I hear this new method goes repeating loop. Drivers write to the system log. Typically it is called messages, message.log, syslog, etc. in /var/log/ directory. There is dmesg command which outputs same info. regards, Antti -- http://palosaari.fi/