From: Morvan Le Meut <mlemeut@gmail.com>
To: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Re: (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support
Date: Tue, 08 Sep 2009 18:18:05 +0200 [thread overview]
Message-ID: <4AA683BD.6070601@gmail.com> (raw)
In-Reply-To: <4AA63434.1010709@gmail.com>
Morvan Le Meut a écrit :
> Morvan Le Meut a écrit :
>> Samuel Rakitnican a écrit :
>>> On Tue, 08 Sep 2009 10:25:44 +0200, Morvan Le Meut
>>> <mlemeut@gmail.com> wrote:
>>>
>>>> Morvan Le Meut a écrit :
>>>>> Hello all
>>>>> This is an old card i bough by error ( wanted the DVB-T version )
>>>>> but i tried it and i see a small problem :
>>>>> The remote isn't supported. ( If it is, i wonder why my computer
>>>>> don't see it )
>>>>>
>>>>> I found an old patch to add remote support to it here :
>>>>>
>>>>> http://tfpsly.free.fr/Files/Instant_TV_PCI_remote/saa7134_patch_for_AdsInstantTVPCI.gz
>>>>> ( The webpage talking about it is
>>>>> http://tfpsly.free.fr/francais/index.html?url=http://tfpsly.free.fr/Files/Instant_TV_PCI_remote/index.html
>>>>> in french )
>>>>>
>>>>> But since i found out long ago that i shouldn't even think of
>>>>> altering a source file, could someone adapt that old patch to
>>>>> correct this ? ( should be quick, i guess )
>>>>>
>>>>> Thanks.
>>>>>
>>>>>
>>>>> -- To unsubscribe from this list: send the line "unsubscribe
>>>>> linux-media" in
>>>>> the body of a message to majordomo@vger.kernel.org
>>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>>>
>>>> Well, i'm trying it myself ( by hand, since the patch looks old ) :
>>>> adding
>>>> case SAA7134_BOARD_ADS_INSTANT_TV: at line 6659 in saa7134-cards.c
>>>> (before "dev->has_remote = SAA7134_REMOTE_GPIO;" )
>>>> is that correct ?
>>>> but from the diff file i should add what seems to be the remote
>>>> keycode in saa7134-input.c
>>>> "+static IR_KEYTAB_TYPE AdsInstantTvPci_codes[IR_KEYTAB_SIZE] = {
>>>> + // Buttons are in the top to bottom physical order
>>>> + // Some buttons return the same raw code, so they are
>>>> currently disabled
>>>> + [ 127] = KEY_FINANCE, // "release all keys" code - prevent
>>>> repeating enlessly a key
>>>> + + [ 27 ] = KEY_POWER,"
>>>> ( and so on )
>>>> Since i didn't see other keycodes for the other cards, i guess
>>>> this is wrong, so where should i add them ?
>>>> ( i barely understand what i am doing right now :p )
>>>>
>>>> Thanks
>>>
>>> Hi Morvan,
>>>
>>> I'm not a developer, however I've done someting similar in the past...
>>>
>>> This "keycodes" looks pretty strange to me, but then again I'm not a
>>> developer.
>>>
>>> Just add it by hand and compile it, and install it.
>>>
>>> After successful load of all new modules, you should get some
>>> response in terminal, or in dmesg output like "Unknown key..." if
>>> keymap table is wrong by pressing buttons on remote. If this gpio's
>>> are correct:
>>>
>>> + mask_keycode = 0xffffff;
>>> + mask_keyup = 0xffffff;
>>> + mask_keydown = 0xffffff;
>>> + polling = 50; // ms
>>>
>> Still working on it, i found out where thoses keycodes should go :
>> ir-keymaps.c
>> i'm not a developer either, but i tried to learn C a few years ago
>> so i'm not completly lost, i just can't understand what all that code
>> is doing ...
>> But it is strange that such an old card had this lack of remote
>> support go unnoticed.
>>
>> ( I really have no luck when it come to TV cards : first, my PC Basic
>> EC168 card ( tnt usb basic v5 ) doesn't work where it should, then my
>> HVR-1120 works but not with mythtv and now the remote i wanted to use
>> isn't supported :D )
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe
>> linux-media" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
> /home/momo/TNT/v4l-dvb/v4l/saa7134-input.c: In function
> 'saa7134_input_init1':
> /home/momo/TNT/v4l-dvb/v4l/saa7134-input.c:655: error:
> 'AdsInstantTvPci_codes' undeclared (first use in this function)
>
> guess i missed something, i'll have to wait for someone to correct it :)
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Since it doesn't work with thoses keycodes, i'm trying it with
"ir_codes_adstech_dvb_t_pci". I'm sure it won't work ( it would be toot
easy otherwise :D ) but since the remote looks the same ...
If by chance it work, i'll try to better document what i did for someone
to write a patch. ( Or at least, to serve as a reminder the next time
i'll encounter the problem :) )
next prev parent reply other threads:[~2009-09-08 16:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-07 16:59 ADS-Tech Instant TV PCI Morvan Le Meut
2009-09-08 8:25 ` (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support Morvan Le Meut
2009-09-08 9:51 ` Samuel Rakitnican
2009-09-08 10:04 ` Morvan Le Meut
2009-09-08 10:38 ` Morvan Le Meut
2009-09-08 16:18 ` Morvan Le Meut [this message]
2009-09-08 17:31 ` Samuel Rakitnican
2009-09-08 17:35 ` Morvan Le Meut
2009-09-08 17:46 ` Morvan Le Meut
2009-09-08 18:25 ` Morvan Le Meut
2009-09-09 8:31 ` Morvan Le Meut
2009-09-09 9:03 ` Morvan Le Meut
2009-09-09 9:04 ` semiRocket
2009-09-09 9:15 ` Morvan Le Meut
2009-09-09 9:33 ` Morvan Le Meut
2009-09-09 14:57 ` Morvan Le Meut
[not found] ` <op.uzzz96se6dn9rq@crni>
2009-09-09 17:09 ` Morvan Le Meut
2009-09-09 21:00 ` Morvan Le Meut
2009-09-10 8:38 ` Morvan Le Meut
2009-09-10 15:22 ` (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support, no idea what to try Morvan Le Meut
2009-09-11 7:54 ` Morvan Le Meut
2009-09-12 8:14 ` (Saa7134) Re: ADS-Tech Instant TV PCI, no remote support, giving up Morvan Le Meut
2009-09-13 4:15 ` hermann pitton
2009-09-13 21:59 ` Morvan Le Meut
2009-09-13 22:41 ` hermann pitton
2009-09-14 7:33 ` Morvan Le Meut
2009-11-18 9:55 ` Morvan Le Meut
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=4AA683BD.6070601@gmail.com \
--to=mlemeut@gmail.com \
--cc=linux-media@vger.kernel.org \
/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