public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Juergen Lock <nox@jelal.kn-bremen.de>
Cc: linux-media@vger.kernel.org, hselasky@c2i.net
Subject: Re: [PATCH] [media] af9015: setup rc keytable for LC-Power LC-USB-DVBT
Date: Mon, 13 Jun 2011 02:46:10 +0300	[thread overview]
Message-ID: <4DF54FC2.2020104@iki.fi> (raw)
In-Reply-To: <20110612230100.GA71756@triton8.kn-bremen.de>

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/

  reply	other threads:[~2011-06-12 23:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-12 20:25 [PATCH] [media] af9015: setup rc keytable for LC-Power LC-USB-DVBT Juergen Lock
2011-06-12 20:57 ` Antti Palosaari
2011-06-12 22:15   ` Juergen Lock
2011-06-12 22:24     ` Antti Palosaari
2011-06-12 22:34       ` Juergen Lock
2011-06-12 22:50         ` Antti Palosaari
2011-06-12 23:01           ` Juergen Lock
2011-06-12 23:46             ` Antti Palosaari [this message]
2011-06-13  0:38               ` Juergen Lock
2011-06-15 23:14                 ` Antti Palosaari
2011-06-20 17:03                   ` Juergen Lock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DF54FC2.2020104@iki.fi \
    --to=crope@iki.fi \
    --cc=hselasky@c2i.net \
    --cc=linux-media@vger.kernel.org \
    --cc=nox@jelal.kn-bremen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox